[PHP] How are variables called in current php?

2003-09-14 Thread Wei Wang
hi, all, I have a piece of code stuck at the point of if (($REQUEST_METHOD=='post')). var_dump($REQUEST_METHOD); shows that the variable doesn't exist. Since I grabbed the code from a 2001 update, is there any chance that this is already obsolete? I checked the documentation but didn't find

Re: [PHP] How are variables called in current php?

2003-09-14 Thread Jason Sheets
Looks like that code depends on register globals being enabled which have been off for some time. You can either turn register globals on in php.ini (not recommended) or with an .htaccess file (better than using php.ini not as good as changing the code if that is possible). Information about

Re: [PHP] How are variables called in current php?

2003-09-14 Thread Raditha Dissanayake
Wei Wang wrote: hi, all, I have a piece of code stuck at the point of if (($REQUEST_METHOD=='post')). var_dump($REQUEST_METHOD); shows that the variable should be $REQUEST_METHOD == 'POST' why don't you just use the $_REQUEST array instead? -- http://www.radinks.com/upload Drag and Drop File