|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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]) |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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! |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Using POST and GET??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|