Results 1 to 21 of 21
Apr 2, 2009, 07:49 #1
- Join Date
- Sep 2008
- 0 Post(s)
- 0 Thread(s)
how to set register_globals ON on HOST?
i developed a small website, in which a query sends an email to an user containing href link with 2 parameters(userid, key).
i'm getting the parameters into my php file and matching them with DB..
it is working smoothly, when i test on my localhost, but i'm getting a warning when i upload the same files to my server.. here's the error:
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
), i did the same, but still i can see the above warning..
how can we set it manually in php code?
ini_set("register_golbals=1"); is this correct one?
please let me know..
thanks,.PHP Professional turned ASP.NET Professional