How do I use relative paths in exec command?
How can I run an external program from PHP with a command exec
using relative paths?
<?php
exec('program_name ......');
?>
This only works if it program_name.exe
is in the same directory as the PHP script. For example, it exec('something/program_name ......');
doesn't work if the php script is not in the directory something.
+2
source to share