Skip to content

Category Archives: php

upload_max_filesize post_max_size

06-Feb-10

You should set post_max_size to double what you set upload_max_filesize to. This means you can upload 2 files of your maximum limit for each POST and seems like a good middle ground.
The memory_limit directive should also be set above the value of post_max_size so your server can handle the uploads.
There are 2 ways you can [...]

Reconfigure PHP5 on cPanel Server for XSL

23-Nov-09

Requirements
This extension uses libxslt which can be found at ยป http://xmlsoft.org/XSLT/. libxslt version 1.1.0 or greater is required.
CUSTOM_PHP_FLAGS=”–with-xsl” /scripts/easyapache
http://in3.php.net/manual/en/xsl.installation.php
On debian –
sudo apt-get install php5-xsl

How to change the time zone within a php script

06-Nov-09

How to change the time zone within a php script
You can change the time zone within a php script. Here is a sample code:

You can set the timezone in .htaccess as well. Add the line:
SetEnv TZ America/Indianapolis
List of timezones is here: http://us.php.net/manual/en/timezones.php