cron job var passing?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pingu
Forum Newbie
Posts: 1
Joined: Sun Sep 12, 2010 1:20 am

cron job var passing?

Post 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. :)
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: cron job var passing?

Post 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?
Post Reply