PHP as usual all languages has a set of rules (known as Operator Precedence) that decide how complicated expressions are processed. $myVar = 2 * 10 – 1; Should $myVar be 19 or 18? If you cannot decide why there are two possibilities, break them up using parentheses like this $myVar =…
If you upgraded your PHP version to PHP 5.3.x, you will get few warnings or deprecated function messages like function ereg() is deprecated in php 5.3.x. You can find the full list of functions that are deprecated by following URL Deprecated features in PHP 5.3.x ereg family functions are deprecated in PHP 5.3.0 or later,as…
PHP 5.3.0 introduces two new error levels named as E_DEPRECATED and E_USER_DEPRECATED. The E_DEPRECATED error level is used to indicate that a function or feature has been deprecated. The E_USER_DEPRECATED level is intended for indicating deprecated features in user code, similarly to the E_USER_ERROR and E_USER_WARNING levels. The following is a list…
How to figure out whether PHP extension is loaded or not on your page? Usually in phpinfo() doesn’t show you all the loaded extensions in one location, it has got a separate section for each loaded extension where it shows all of its variables, file paths, etc so if there is no section for…
PHP cURL functions with example cURL is stand for client URL It is a library (libcurl) which allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl supports http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP…