What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-20 02:45:23
how to embed mailchimp on custom form
Log in to your A2 Hosting account using SSH. At the command prompt, type the following commands: cd ~ git clone https://bitbucket.org/mailchimp/mailchimp-api-php.git After the git clone command completes, there is a new mailchimp-api-php directory. Type ... Add solution -
PHP 2021-11-19 18:07:11
php How do you remove an array element in a foreach loop?
Instead of doing foreach() loop on the array, it would be faster to use array_search() to find the proper key. On small arrays, I would go with foreach for better readibility, but for bigger arrays, or often executed code, this should be a bit more optima... Add solution -
PHP 2021-11-18 01:29:27
enable socket in php
This answer assumes you do have a php_sockets.dll extension file accessible (in your PHP installation extension directory or where required); If you're using windows, just uncomment the following line in your php.ini file: ;extension=php_sockets.dll If... Add solution -
-
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