> But is there a way to make one of my root scripts run by sending it a
> command to do so from the DSO version of PHP like with system command
> or something like that. Or some roundabout way to make it think root is
> asking the script run.
> I hope you understand what I am asking.

There possibly is, depending on your operating system (which you didn't
mention) but you should probably consider doing it a different way - create
a database table which contains jobs to do and have the apache side of php
insert entries into that table, then have your root php script (running at
intervals determined by you), check that table and perform the tasks set in
the database table.

If any of the commands you execute from the root php script take
user-submitted data from the database and pass it to the command line, be
sure to check it for naughty stuff - there's sections in the online php
manual about security, and passing data to the command line


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to