What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-18 13:49:08
string to lowercase accentuation hyphenated
<?php /** * Converts string to SEO-friendly form (lowercase hyphenated alphanumeric words) * * @param $string * @return string */ function seoUrl($string) { // qv stackoverflow.com/questions/11330480, stackoverflow.com/questions/1017599 ... Add solution -
PHP 2021-10-18 07:04:06
php remove extension from url
//put this piece of code in the root file .htaccess RewriteEngine on #remove extension html RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html [NC,L] #remove extension php RewriteCond %{REQUEST_FILENAM... Add solution -
PHP 2021-10-17 19:10:15
Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/Cellar/composer/1.9.1/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223 mac
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 -
SQL 2021-10-14 07:18:03
sql example
-- SQL examples --------------------------------------------------------------------------------------------------- -- http://inf-schule-db.informatik.uni-kl.de/SQLterra1.php -------------------------------------------------------- -- https://www.inf-sch... Add solution -
Shell/Bash 2021-10-10 03:03:03
install compser
# The following method has been tested on Ubuntu 20.04 # But i think it should work fine with any other distribution # Ensure you're on Desktop, to prevent issues with permissions cd ~/Desktop # Download the installer script php -r "copy('https://g... Add solution -
Other 2021-10-09 06:38:05
installing composer command line
Installing composer commandline php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46... Add solution