View Single Post
  #2 (permalink)  
Old 06-25-2008, 07:20 AM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee is just really niceLee is just really niceLee is just really niceLee is just really nice
Quote:
Originally Posted by sarel View Post
I need some help with executing a shell using PHP.
c:\tools\bin\ogr.exe

<?php $cmd = command string ; shell_exec($cmd); ?>

I have not done this before but wouldn't the command string be the path?

So:
PHP Code:
<?php
$cmd 
"c:\tools\bin\ogr.exe";
shell_exec($cmd); 
?>

Last edited by Lee : 06-25-2008 at 10:19 AM.
The Following User Says Thank You to Lee For This Useful Post:
sarel (06-27-2008)