Page 1 of 1

cron job var passing?

Posted: Sun Sep 12, 2010 1:24 am
by pingu
Hey. I want to update something on the hour, on a site i dont own, so i dont know the php code. manually going to the following URL does just fine and updates it as i want it to: http://runetracker.org/updateUser.php?&user=zezima

however i cant get a cron job to work properly. i kee pgetting a message back saying it wasnt given a username to search for. after looking around the net, i ended up having tried 3 different commands, none of which worked.

wget -O - -q http://runetracker.org/updateUser.php?&user=zezima
wget -O - -q http://runetracker.org/updateUser.php zezima
wget -O - -q http://runetracker.org/updateUser.php user=zezima

Do you guys have any idea as to what else i can try to try and get the parameter to be passed onto the script properly? thanks. :)

Re: cron job var passing?

Posted: Sun Sep 12, 2010 7:28 am
by requinix
Put single quotes around the URL.

And question: should this thing be accessible to anyone on the Internet who knows about it? "No"? Then why is it accessible to anyone on the Internet who knows about it?