What do you want to save?
Add Code snippet
New code examples
-
-
Shell/Bash 2022-03-17 08:30:02
install magento 2.4.2
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition ./ php bin/magento setup:install \ --admin-firstname=John \ --admin-lastname=Doe \ [email protected] \ --admin-user=admin \ --admin-pa... Add solution -
PHP 2022-03-17 06:35:44
download file zip from subdirectory using php
<?php // Create ZIP file if(isset($_POST['create'])){ $zip = new ZipArchive(); $filename = "./myzipfile.zip"; if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) { exit("cannot open <$filename>\n"); } $di... Add solution -
PHP 2022-03-17 05:45:16
checking php version
<?php echo 'PHP version: ' . phpversion(); ?> Add solution -
SQL 2022-03-17 01:45:08
SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'
I finally found the solutions a days ago and I remembered this post. In the "config/database.php" file in mysql tag, the sql modes should be added in order to skip this error. https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sql-mode-fu... Add solution