Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Cheap LAMP shared server; How to run a .SH setup script for an app?

  • Subject: Re: Cheap LAMP shared server; How to run a .SH setup script for an app?
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Fri, 10 Feb 2006 04:08:05 +0000
  • Newsgroups: alt.www.webmaster
  • Organization: schestowitz.com / MCC / Manchester University
  • References: <dsfu5l$phc$1@panix5.panix.com> <6vssb3-65t.ln1@ophelia.g5n.co.uk>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [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

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index