PHP 8.5.0 Alpha 2 available for testing

Voting

: seven minus one?
(Example: nine)

The Note You're Voting On

cnoelker at softpearls dot de
22 years ago
Hi,
some tips for using a system()-call for batch files on a windows computer:
* Write the path to the executable with double back-slashes, like so:
C:\\path\\to\\prog.exe
* If you are refering to other pathes, e.g. as a parameter, one back-slash works fine.
* Do not use SET for declaring parameters - this does not work! Example:
SET PATH="C:\path\to\lib"
echo path is %PATH%
This works fine when started from the comand line, but when called from PHP, the variable is just empty.

<< Back to user notes page

To Top