note 54836 added to ref.exec
| From: | drenintell at osu1 dot php dot net | Date: | Sun, 17 Jul 2005 01:42:10 +0000 |
| Subject: | note 54836 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92064@lists.php.net to get a copy of this message | ||
For those having a problem executing an exe on Windows, try changing the current working directory
to the executable's directory.
<?php
chdir($executable_directory_path);
// Once you have changed the directory try calling exec, system... etc.
exec($cmd);
?>
Regards,
drenintell
----
Manual Page -- http://www.php.net/manual/en/ref.exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54836
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54836&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54836&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54836&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54836&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54836&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54836&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54836&report=yes
Search -- http://master.php.net/manage/user-notes.php