PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 6th, 2004, 08:40 AM
TheDude TheDude is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 6 TheDude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question _GET problem

I have been progging PHP for about 4 months now, and I'm working on a large project with alot of code. I havent updated PHP nor Apache in those 4 months, so I dicided to do that about a week ago. Now I'm having a nasty problem. with the old server I could do this:

When I called an file like this
Code:
<a href='index.php?page=main'>


and in that file

Code:
<?PHP

echo($page);

?>


but with this new server, I have to add this:

Code:
<?PHP

$page = $_GET['page'];
echo($page);

?>


As I have thousands of lines of code, I cant update my whole project.
What I'm hoping is that I forgot to enable a options somewhere in the PHP settings that enables automatic parsing of those variables! Please help me!

Reply With Quote
  #2  
Old November 6th, 2004, 09:42 AM
pocketsized pocketsized is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Brunei
Posts: 26 pocketsized User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Change register_globals in the php.ini file. It's been set to off by default for security reasons. Change it to on.

Reply With Quote
  #3  
Old November 6th, 2004, 06:08 PM
TheDude TheDude is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 6 TheDude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks alot. I'll slowly begin with adding al the _GETS because I read the sticky and the comments before the register_globals. But still thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > _GET problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT