What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-20 16:08:05
php magic methods
/* The following function names are magical in PHP classes. You cannot have functions with these names in any of your classes unless you want the magic functionality associated with them. */ __construct(), __destruct(), __call(), __callStatic(), __... Add solution -
PHP 2021-10-18 21:28:03
get user ip in php
The simplest way to collect the Client/Visitor IP address using PHP is the REMOTE_ADDR. Pass the 'REMOTE_ADDR' in PHP $_SERVER variable. It will return the IP address of the visitor who is currently viewing the webpage. Get the IP address of the website ... Add solution -
Other 2021-10-18 10:35:10
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate
1. Download the certificate bundle. 2. Put it somewhere. In my case, that was c:\wamp\ directory (if you are using Wamp 64 bit then it's c:\wamp64\). 3. Enable mod_ssl in Apache and php_openssl.dll in php.ini (uncomment them by removing ; at the beg... Add solution -
PHP 2021-10-17 04:22:05
Notice: Array to string conversion php
Using implode() function in Php ----------------------- Syntax implode(separator,array); Example <?php //assigning value to the array $dummyArr = array("Hello","Greppers,","Ankur","here !"); echo impl... Add solution -
SQL 2021-10-14 18:27:05
how to check history of database in phpmyadmin
To view the past queries simply run this query in phpMyAdmin. SELECT * FROM `general_log` if it is not enabled, run the following two queries before running it. SET GLOBAL log_output = 'TABLE'; SET GLOBAL general_log = 'ON'; 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