What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-16 04:43:15
composer update ubuntu 20.04
First, update the package manager cache by running: sudo apt update Next, run the following command to install the required packages: sudo apt install php-cli unzip Make sure you’re in your home directory, then retrieve the installer using curl... Add solution -
Other 2021-11-14 03:37:19
composer download
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo '... 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 -
-
PHP 2021-11-11 13:09:08
sudo apt-get install php7.0-gd
#check php verison first using: $php -v #It will give version number suppose your version is 7.0.1 then use this command to install GD Library $sudo yum install php70-gd #OR use this command depending upon server specification $sudo apt-get install p... Add solution -
-
-
PHP 2021-11-06 13:03:14
auto remove .php extension using .htaccess
#This code will automatically remove .php extention #ex: it remmoves www.eample.com/xyz.php to www.example.com/xyz RewriteEngine on RewriteBase / RewriteRule ^(.+)\.php$ /$1 [R,L] RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*?)/?$ /$1.php [NC,EN... Add solution