RSS Feed
Knowledgebase : Programming & Languages > PHP
Ideally you should create a custom php.ini with just the custom limits in very directory you need it changed. or If you need set just for a particular php page, you may add at the top of the php page, the required custom limits, like: <?php ini_set(&q...
Core files or Core dumps are actually snapshot images of the memory your PHP script used, at the moment of crash. This is produced as apache is compiled in the server with the debugging option. They are usually produced when one uses software packages t...
If you only want particular PHP scripts (not a cgi scripts) to use a specific timezone, set the timezone environmental variable in your PHP code like so:<? echo "Original Time: ". date("h:i:s")."\n"; putenv("TZ=US/Eas...
Add the following code in your .htaccess fileAddHandler application/x-httpd-php .htm
Getting a constant '500 Internal server error' please check, (a) Do you have have any php_value or php_flag directives in your .htaccess? If yes, please remove or mark them as remarks. The same can be set via a custom php.ini in your script director...
The following php functions are disabled on servers, to provide better security;
/usr/bin/php
PhpSuExec is a Security module that protects your website and data from a security hole of PHP. On most Apache servers, PHP runs as an Apache Module. As such, it runs directly in the user Nobody, but doesn't require the execute flag...
Question: I need to increase the PHP scripts maximum memory limit to say 32 Meg. Answer: Please create a php.ini in your public_html directory with the folllowing statement, memory_limit = 32M; This will raise the limit for your domain acco...
Yes, we have PHP extension "iconv" enabled and compiled with PHP.
PHP has disabled register_globals as it is a serious security risk, more information is available at http://php.net/manual/en/security.globals.php . This feature has been used by many for sql injection attacks, more information is available at http://ph...
I see this topic come up a lot with users who migrate to one of our servers or to their own setup with cPanel and suPHP. The user or their customers will install a PHP script such as wordpress, concrete5, etc… Upon testing their installation they will ...
The valid file extensions for PHP scripts are listed below: .php .php5 These file extensions must be used in order for your PHP scripts to run properly.
On Linux Servers, PHP5 is installed and running concurrently on all servers. Just rename php files with "php5" extension and they will be interpreted by PHP5 or to set PHP5 as default for domain (files with "php" extension will b...
This sample uses the Pear Mail package. The package is already in the INCLUDE path. http://pear.php.net/package/Mail <? include_once("Mail.php"); $recipients = 'mail_to@domain.mail'; $headers["From"] = 'mail_from@domain.mail'; $headers["To...
If you use php scripts, then the odds are you may need to consider using a custom php.ini file at some point. Normally, everyone should ensure at least two php settings: register_globals = Off session.use_trans_sid = 0 But some older or not well wr...