How to enable PHP short tags -If you don’t have access to the php.ini you can try to enable them trough the .htaccess file
PHP
PHP – Hypertext Preprocessor is a widely used, server-side scripting language but also a general-purpose scripting language that is most suited for web development. The original PHP project, as invented by Rasmus Lerdorf, stood for Personal Home Page. Nowadays, it stands for the recursive acronym PHP: Hypertext Preprocessor.
nginx error connect to php5-fpm.sock failed (13: Permission denied) we update nginx to 1.4.7 and php to 5.5.12, After that I
exec() vs system() vs passthru() exec — Execute an external program passthru — Execute an external program and display raw output
List of Big-O for PHP functions After using PHP for a while now, we noticed that not all PHP built in functions as fast
How do we check with PHP if directory exists – Both would return true on Unix systems – in Unix is a file, including directories
php shell_exec() vs exec() With exec(), you can pass an optional param variable which will receive an array of output lines.
PROBLEM: When a PHP application makes a database connection it of course generally needs to pass a login and password. If you are using a single, minimum-permission login for my…
PROBLEM: When downloading a JSON file from an online source and it runs through the loop getting this error: Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\temp\fetch.php…
SOLUTION :1 We generally use when working with transactions looks like this (semi-pseudo-code): [ad type=”banner”] Note that, with this idea, if a query fails, an Exception must be thrown: PDO…
PROBLEM we are trying to get the php_printer.dll extension to work. we run PHP 5.2.8 with Apache 2.2 on a windows XP platform. When we start Apache it fails to…