Connecting Tech Pros Worldwide Help | Site Map

PHP pre 4.2 VS. PHP post 4.2

  #1  
Old July 17th, 2005, 05:58 AM
Chris
Guest
 
Posts: 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
  #2  
Old July 17th, 2005, 05:59 AM
Agelmar
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
strange POST vs GET behaviour flits@flats.nl answers 2 December 28th, 2006 03:15 AM
a pre-beginner's question: what is the pros and cons of .net, compared to ++ lester answers 44 July 21st, 2005 09:44 PM
addslashes vs. mysql_real_escape_string leegold2 answers 1 July 17th, 2005 10:03 AM
Cannot read information from form using POST or GET ($_Post is empty) Kevin answers 4 July 17th, 2005 07:51 AM