Jump to content


Photo

Need help with php or mysql, something's wrong...


  • Please log in to reply
2 replies to this topic

#1 amigaeager

amigaeager
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 March 2006 - 06:42 PM

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?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 11 March 2006 - 07:28 PM

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.
Legend has it that reading the manual never killed anyone.
My site

#3 amigaeager

amigaeager
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 19 March 2006 - 01:07 PM

[!--quoteo(post=353981:date=Mar 11 2006, 02:28 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Mar 11 2006, 02:28 PM) View Post[/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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users