|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Please Help?!
Hi, I used a free recipe script that I found online and am using a free host. My user registration/login/ recipe submission, etc will not work. I've come to the conclusion that I need to turn register globals on....I've emailed my host several times asking how do I do this and they will not respond. Could someone please explain how to do this for a desperate person who does not know php? |
|
#2
|
||||
|
||||
|
The reason your host probably has not responded is because register globals were a huge blunder that opened security holes in code using things like session variables. Register globals were turned off by default in PHP4.2, some time in the year 2002. No new code, tutorials, books... written after that point in time should have relied on register globals being on. Register globals have been eliminated in PHP6, so even if you do get your code to work by turning on register globals, it will stop working at some point in the future.
If your host supports .htaccess files and they have not specifically prevented register globals from being turned on, you can place the following line in a .htaccess file - Code:
php_flag register_globals on |
|
#3
|
|||
|
|||
|
Darn. :(
Gee that really sucks but I really appreciate that you let me know that. Now I can take a different approach with this.
Thanks, Jody tasteful approach .com |
|
#4
|
|||
|
|||
|
I will probably get bashed for this but if you're desperate you can use extract() to emulate register_globals. This is not a solution and should only be used as a temporary fix.
At the beginning of the script... extract($_GET, EXTR_SKIP); extract($_POST, EXTR_SKIP); |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP Globals |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|