amigaeager Posted March 11, 2006 Share Posted March 11, 2006 I have downloaded a highscore php script that I tried to install on my server which has php 4.3 and mysql 4.x... well, all stuff on my system is ok and everything works, I can install any other php scripts.. these script work on [a href=\"http://www.egoant.com/tutorials/tut1.php\" target=\"_blank\"]http://www.egoant.com/tutorials/tut1.php[/a] , there's a link to it there.This scrip works on lycos.com and they have the same version of php as I do....What could be wrong?? maybe I need to change something in my php.ini file? Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 11, 2006 Share Posted March 11, 2006 The link you left doesn't work (for me).Best guess is that the script works when register_globals is ON (bad practice). The best solution would be to recode the script to run with register_globals OFF (the more secure setting). The sloppy solution would be to look at the extract() function to retrieve form or URL-passed variables around your scripts. The awful solution would be to change the setting of register_globals.All that's assuming that register_globals really is the problem, of course. Quote Link to comment Share on other sites More sharing options...
amigaeager Posted March 19, 2006 Author Share Posted March 19, 2006 [!--quoteo(post=353981:date=Mar 11 2006, 02:28 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Mar 11 2006, 02:28 PM) [snapback]353981[/snapback][/div][div class=\'quotemain\'][!--quotec--]The link you left doesn't work (for me).Best guess is that the script works when register_globals is ON (bad practice). The best solution would be to recode the script to run with register_globals OFF (the more secure setting). The sloppy solution would be to look at the extract() function to retrieve form or URL-passed variables around your scripts. The awful solution would be to change the setting of register_globals.All that's assuming that register_globals really is the problem, of course.[/quote]yepp, thats was the problem, is it hard to make script working with register_globals off?here are a link to the source I'm using:[a href=\"http://www.egoant.com/tutorials/files/tutorial_1.zip\" target=\"_blank\"]http://www.egoant.com/tutorials/files/tutorial_1.zip[/a]please help, Im a total noob on php. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.