Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP pre 4.2 VS. PHP post 4.2

Chris
Guest
 
Posts: n/a
#1: Jul 17 '05
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

Agelmar
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP pre 4.2 VS. PHP post 4.2


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:[color=blue]
> 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[/color]


Closed Thread