|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On 5/3/08, opc@orenses.com <opc@orenses.com> wrote:
> > Hi all > > > I try write a code to execute service in my server from web browser > > I write next > > /var/www/html/squidup.html Should it be... squidup.php? > <? > exec ('/usr/bin/squid/sbin/squid') > echo "Squid UP" > ?> > > but, don't work from web browser. > > What is wrong > > Thanks, > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -Casey |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Hi all I try write a code to execute service in my server from web browser I write next /var/www/html/squidup.html <? exec ('/usr/bin/squid/sbin/squid') echo "Squid UP" ?> but, don't work from web browser. What is wrong Thanks, |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Well, you're missing a semi-colin after the exec() statement, and the echo.
If it wasn't the syntax error, make sure the program exists with file_exists(); - Craige On Sat, May 3, 2008 at 11:28 PM, <opc@orenses.com> wrote: > > Hi all > > > I try write a code to execute service in my server from web browser > > I write next > > /var/www/html/squidup.html > <? > exec ('/usr/bin/squid/sbin/squid') > echo "Squid UP" > ?> > > but, don't work from web browser. > > What is wrong > > Thanks, > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > |
|
![]() |
| Outils de la discussion | |
|
|