What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 17:50:07
nginx redirect http to https cloudflare
server { listen 80 default_server; listen [::]:80 default_server; server_name mydomain.com www.mydomain.com; if ($http_x_forwarded_proto = "http") { return 301 https://$server_name$request_uri; } root /var/www/html; index ... Add solution -
SQL 2022-01-23 13:00:33
import large .sql files into lampp
->/opt/lampp/etc/php.ini 1)increase them accordingly post_max_size=500M upload_max_filesize=500M max_input_time = 600 memory_limit=900M max_execution_time=-1 ->in opt/lampp/etc/my.cnf max_allowed_packet=1000 innodb_log_file_size = 50M ->phpMy... Add solution -
CSS 2022-01-23 00:56:07
PHP executable not found. Install PHP 7 and add it to your PATH
Step 1 : copy php.exe file locaton (Exp. C:\xampp\php) Step 2 : Right click on This Pc -> Click on Properties Step 3 : Click on Advance System setting -> Environment Veriabl Step 4 : Doubble clik on path -> New Step 5 : Paste php.exe path -> ... Add solution -
PHP 2022-01-22 03:57:03
install php fpm windows
Here how to setup php-fpm on Windows: Download the .zip file from http://windows.php.net/download/. The .zip file should be VC9 which has the FastCGI file (php-cgi.exe). Don't download VC6, and don't download the .msi file because it requires that you ha... Add solution -
Other 2022-01-22 01:00:44
date format in php
To convert the date-time format PHP provides strtotime() and date() function. We change the date format from one format to another. Change YYYY-MM-DD to DD-MM-YYYY <? php. $currDate = "2020-04-18"; $changeDate = date("d-m-Y", strto... Add solution