By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,828 Members | 1,409 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,828 IT Pros & Developers. It's quick & easy.

PHP pre 4.2 VS. PHP post 4.2

P: n/a
My local PHP install (for development/learning) is 4.3, but my hosting
service uses 4.0.6. Without turning on registered globals, is there a
common way these two versions can handle form data? 4.0.6 doesn't have
import_request_variable(), $_POST, or $_REQUEST, and 4.3 chokes on
$HTTP_POST_VARS[].

Thanks

Chris
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
4.3 shouldn't choke on HTTP_POST_VARS - one thing you have to watch out for,
however, is that HTTP_POST_VARS is not superglobal, so if you use it in a
function, you still have to say
global $HTTP_POST_VARS; etc... perhaps this is the reason it 'chokes'?

Chris wrote:
My local PHP install (for development/learning) is 4.3, but my hosting
service uses 4.0.6. Without turning on registered globals, is there a
common way these two versions can handle form data? 4.0.6 doesn't have
import_request_variable(), $_POST, or $_REQUEST, and 4.3 chokes on
$HTTP_POST_VARS[].

Thanks

Chris

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.