What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-15 04:40:09
could not find driver (SQL: PRAGMA foreign_keys = ON;)
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-10-15 02:03:05
chart.js - getting data from database using mysql and php
Please place your php code into another file called api.php and use $.ajax to get these data with JSON format. To convert data into JSON format data you should use json_encode() php function. I have set sample example you can see here. Please refer belo... Add solution -
PHP 2021-10-14 13:37:08
python to php
Depending on what you are doing, system() or popen() may be perfect. Use system() if the Python script has no output, or if you want the Python script's output to go directly to the browser. Use popen() if you want to write data to the Python script's sta... Add solution -
-
PHP 2021-10-13 07:18:10
add values to array dynamically php
There are quite a few ways to work with dynamic arrays in PHP. Initialise an array: $array = array(); Add to an array: $array[] = "item"; // for your $arr1 $array[$key] = "item"; // for your $arr2 array_push($array, "item"... Add solution -
Other 2021-10-13 02:46:03
mail() function in php not working
CONFIGURE THESE SETUPS: in your php.ini: SMTP=smtp.gmail.com smtp_port=587 sendmail_from = [email protected] sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" in your sendmail.ini smtp_server=smtp.gmail.com smtp_port=587 e... Add solution -
PHP 2021-10-12 12:28:09
enable mcrypt in php ini in xampp php.ini
First, you should download the suitable version for your system from here: https://pecl.php.net/package/mcrypt/1.0.3/windows Then, you should copy php_mcrypt.dll to ../xampp/php/ext/ and then enable the extension by adding extension=mcrypt to your xampp... Add solution