note 45203 added to ref.exec
| From: | sijmen at digitized dot nl | Date: | Sun, 29 Aug 2004 18:36:05 +0000 |
| Subject: | note 45203 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75583@lists.php.net to get a copy of this message | ||
When you don't get the result from command line calls in PHP, check if the full path to the
executable is set. So if this works in SSH
convert bla.jpg
and doesn't in PHP
exec('convert bla.jpg')
locate the exact path to the executable in SSH with:
whereis convert
and use that path in PHP
exec("/usr/bin/local/convert bla.jpg");
very basic i know, but it might help not-used-to-linux developers
----
Manual Page -- http://www.php.net/manual/en/ref.exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45203
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45203&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45203&report=yes
Search -- http://master.php.net/manage/user-notes.php