Connecting Tech Pros Worldwide Help | Site Map

PHP pre 4.2 VS. PHP post 4.2

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:58 AM
Chris
Guest
 
Posts: n/a
Default PHP pre 4.2 VS. PHP post 4.2

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, 04:59 AM
Agelmar
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.