$_SERVER['CONTENT_LENGTH']

A place for users and developers of the Xataface to discuss and receive support.

$_SERVER['CONTENT_LENGTH']

Postby kevinwen » Fri Mar 05, 2010 3:27 pm

I know when a post request is submitted, $_SERVER['CONTENT_LENGTH'] is available as well. If I want to check if the content length of the post request exceeds the post_max_size using this variable in my application ( or inside the delegate class), where and how should I get this done? Thanks.
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm

Re: $_SERVER['CONTENT_LENGTH']

Postby shannah » Tue Mar 09, 2010 8:43 am

You could check it in your index.php file or in the beforeHandleRequest() method.

Code: Select all
if ( $_POST and $_SERVER['CONTENT_LENGTH'] > xxxxxx ) ....
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 39 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved