What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-14 06:17:10
Maximum upload file size: 2 MB
Step 1: find php.ini file in /etc folder by running below cmd: grep -rl "post_max_size" | xargs ls -lrth Here I have used post_max_size keyword to search php.ini file as might be we have to change the same on other file , It can vary ... Add solution -
PHP 2021-11-13 17:19:11
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 119541600 bytes) in C:\xampp\htdocs\backup-vice.php on line 67
php --ini nano /etc/php5/cli/php.ini (it could be different for you) Search for memory_limit by (ctrl + w) make memory_limit to -1 or 2G (depending on what you can increase to) save by (ctrl + x) then enter Add solution -
Other 2021-11-12 21:43:20
increase PHP Memory
/* To increase the PHP memory limit setting, edit your PHP.ini file found under /usr/local/etc/php/7.4/. Increase the default value (example: Maximum amount of memory a script may consume = 128MB) of the PHP memory limit line in php.ini. */ memory_limit ... Add solution -
PHP 2021-11-10 22:07:08
wamp php version update
For someone who need to update the PHP version in WAMP, I can recommend this http://wampserver.aviatechno.net/ I had a problems with updating too, but on this website are Wampserver addons like new php version (php 7.1.4 etc.) And you don't have to manua... Add solution -
PHP 2021-11-08 09:25:23
php cant upload gif
Check your file size limit. If you use XAMPP, open your "php.ini" file and search (CTRL+F) for "filesize", then change the limit to whatever you want. save the changes and restart apache. You now should be able to upload bigger files. Add solution -
Other 2021-11-07 21:09:15
php.ini file location in xampp
Write the following inside phpini_path.php( or AnyNameAsYouLike.php) and run it in the browser. <?php phpinfo();?> Among various other parameters you'll get Loaded Configuration File parameter which value is the path of php.ini on the server. The ... Add solution -
PHP 2021-11-06 18:58:08
illuminate database queryexception could not find driver laravel
You might need to comment out the following in your php.ini file. ;extension=pdo_mysql.so ############# OR ############## Other solution might be you may have a missing dependency If you can, run : composer update composer require doctrine/dbal Add solution -
PHP 2021-11-05 21:44:14
php save image from url to folder
You should be able to use file_get_contents for this one. In order to use an URL with file_get_contents make sure allow_url_fopen is enabled in you php.ini file. define('DIRECTORY', '/home/user/uploads'); $content = file_get_contents('http://anothersite... Add solution