FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > PHP, Perl, Python and/or MySQL
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-10-2008, 06:39 AM   Postid: 170743
anthony
Site Owner
 
anthony's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Dec 2000
Location: Rome
Posts: 224
$post and $get

Hi I have an local app that is not online and I upgrade to the new php. Is there a way to put some command in the header file or changing the php.ini file without having to go and change all of the information that is sent from the forms in the apps with $username = $_POST['username']; or
$username = $_GETT['username'];

this app is not on the web
__________________
Fight MS
Ride to finish
http://www.youtube.com/watch?v=7Mj0Fgg2bt4
anthony is offline   Reply With Quote
Old 10-10-2008, 07:43 AM   Postid: 170746
 Arthur
Developer
 
Arthur's Avatar
 
Join Date: Nov 2000
Location: The Netherlands
Posts: 2,212
Re: $post and $get

If I'm understanding your question correctly, you are looking for register_globals, which is ON by default in PHP4 and OFF by default in PHP5 and higher. You can turn it on through a .htaccess file or in php.ini (see link above).

-Arthur
__________________
http://www.FutureQuest.net/
Arthur is offline   Reply With Quote
Old 10-10-2008, 08:39 AM   Postid: 170747
anthony
Site Owner
 
anthony's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Dec 2000
Location: Rome
Posts: 224
Re: $post and $get

thanks a
did that in the php.ini and it worked
tony
__________________
Fight MS
Ride to finish
http://www.youtube.com/watch?v=7Mj0Fgg2bt4
anthony is offline   Reply With Quote
Old 10-10-2008, 06:23 PM   Postid: 170761
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,672
Re: $post and $get

Please don't turn on register_globals unless you absolutely have to, and only then for a very short time until you can refactor the parts that need it on...

No application should ever depend on register_globals, and all outside input SHOULD be fully validated to prevent your site from being cracked...

It is better to do this now, as register_globals will be completely removed from PHP 6.x...

--
Terra
__________________
--
Terra
sysAdmin
FutureQuest, Inc.
http://www.FutureQuest.net
Terra is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:59 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.