script in root of WP...
Category: Php
php: save PHP variables to a text file
Writing $text to a file:...
Protected: PHP: Check me quickly
There is no excerpt because this is a protected post....
Changing PHP Memory Limit : 3 ways
If you have seen an error like ”Fatal Error: __PHP Allowed Memory Size Exhausted” in apache logs or in your browser, this means that PHP has exhausted the maximum memory limit. This post will show 3 different ways on how you can increase the php memory limit and also explain when you should use...
PHP: How to log errors and warnings into a file?
Use the following code: ini_set("log_errors", 1); ini_set("error_log", "/tmp/php-error.log"); error_log( "Hello, errors!" );...
How to Get Your php.ini Path with SuPHP
You can specify which php.ini file is used within a certain directory if you have multiple php.ini files. To do this, edit your .htaccess file located in the directory you wish to use and add the following .htaccess code:...
Installation SuPHP/phpSuExec on Apache server with Plesk extension.
SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”....
How to turn off php safe_mode off for a particular directory in a shared hosting environment?
Your service provider might have forgot to tell you that you need to enable your user defined php.ini configuration by adding this line in the .htaccess file that you find in your public_html folder:...
Tips: execute shell commands in php on Linux server
Php has multiple functions to do this task. Lets take a look at each of these 1. system...