__/ [Toby Inkster] on Thursday 09 February 2006 22:40 \__
> Al Dykes wrote:
>
>> How do I execute this script on a host that doesn't give me a Unix
>> shell?
>
> <?php
> system("sh /path/to/script.sh");
> ?>
>
> Upload that; load the page in your browser... once; delete it.
Good solution! "Safe Mode" hosts (or PHP) might forbid that operation though.
Having said that, the same rules apply to php-shell, I suspect. There are
still many things the user cannot do, even in command-line mode.
Roy
--
Roy S. Schestowitz
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
4:05am up 23 days 23:21, 11 users, load average: 0.47, 0.53, 0.66
http://iuron.com - Open Source knowledge engine project
|
|