Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$CGI::POST_MAX

Status
Not open for further replies.

Masali

Programmer
Jun 19, 2002
143
SE
Hi,

Is there any similar command in PHP that works like Perl's $CGI::pOST_MAX?

Best regards

Masali
 
It makes so you cannot post more than e.g. 100kb to the script: $CGI::pOST_MAX=100*1024;
 
There is no function which sets that. It's set by the php.ini configuration directive post_max_size. On Apache, this can be set in httpd.conf or on a per-directory basis in .htaccess files. On Win32, I'm not sure where it can be set other than php.ini.

If you're looking to limit file uploads, there is another php.ini configuration directive, upload_max_filesize, which limits the size of an uploaded file.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
what do you type in the htaccess to make this work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top