Image

Imageadcott wrote in Imagephp n00b

Listens: Mr Scruff - So long

exec()

Hello all, I'm in a rather pathetic newbie-ish dilemma:

My current webhost does not allow much administrative control from my end, so whenever I want to add a cron job for a new script I've made or something I have to send them a whiney email asking them to do it for me.
My idea of getting around this annoyance is to have a single update script which in turn executes everything else. I'd only have to ask them to cron that and I can then add/remove to my hearts content, I could control how often they are executed by using rudementary counters stored in text files.

My problem is however that I have absolutely *zero* knowledge of PHP from the command line (or command line anything really :P), and thus I have no idea what to do with the exec() function.

The Windows user in me wants to write exec("path/to/filename.php"), but things just aren't that simple are they?

...can someone please educate me? I'm pathetic.


Sorry to waste everyone's time, I've now been informed that I cannot run any PHP files via the command line becuase of PHP not being compiled as a seperate module.