SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old April 9th, 2004, 12:39 PM
pacergh pacergh is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 pacergh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Using POST and GET???

I am new to configuring Linux, Apahe and PHP myself, having usually opted to contract out for that to hosting companies, but I am running into a bit of a problem: PHP code that worked on a contracted out server does not work on the new Linux server we set up in the office.

I have fiddled with Linux, Apahe and PHP at home some, and I distinctly remember running into this problem before. For the life of me, I can not remember what it was exactly I did to fix it.

It seems that getting the results from forms is different and far more strict on our office server than the virtual host the PHP code worked on previous.

I believe there is a part in the PHP config file which deals with this, and I am going to go rummage around my Linux system looking for this in a bit, but in case I am wrong I was hoping someone here might shed some light on the topic.

Here are the symptons: Forms that once submitted data and inserted it into a database no longer seem to be passing the variables from the Form fields and into the PHP code. That is: I no longer get the information from the form directly put into corresponding variables.

I know there is a more strict and secure way to access form information, but a good deal of code has already been written and I would prefer not to rewrite it. Furthermore, this will be an internal network server only, so security is not a huge concern.

Any help would be appreciate! Now to start rummaging around for the PHP config file....

P.S. I am running the Red Hat 9.0 Linux distribution with everything set to the default when you first install Red Hat. (We're all still learning the whole networking/Linux thing... [G])

Reply With Quote
  #2  
Old April 9th, 2004, 01:26 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: Using POST and GET???

The most probable problem is that your virtual host probably has register_globals turned on and your server does not. Look in your php.ini file.

I'm willing to bet you do not use $_POST, $_GET, or $_REQUEST to access your form variables - you should. It's a pain to change legacy code, but it is more secure. Take a look at this page for more information about register_globals.

Reply With Quote
  #3  
Old April 9th, 2004, 02:34 PM
pacergh pacergh is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 pacergh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Using POST and GET???

Ahhhh... I thought it was something like that, but I just could not remember the specifics.

And yes, it is more secure to go the other way, but we are trying to develop this quickly and this way is the one I am more familiar with. On top of that, it is on a local network with limited access so security is not nearly as high of a concern. (Thankfully, I do not think I am ready to run a completely secure server accessible worldwide.... yikes! Hehe.)

Thanks so much for the help!

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Using POST and GET???


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 1 hosted by Hostway