You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my php file is being executed from my E:\ drive to a command running on my C:\ drive, it doesn't work since the cd is happening on the wrong drive.
I fixed it by doing the following: $drive = substr($command, 0, 2); $command = sprintf($drive . ' && cd %s && %s', escapeshellarg(dirname($command)), basename($command));
So $command becomes:
C: && cd "C:\Program Files\wkhtmltopdf\bin" && wkhtmltopdf.exe
The text was updated successfully, but these errors were encountered:
@DomiQ As you're also on Windows, maybe you can also confirm that this change doesn't break anything? Also it should work with both, a full path like C:\\foo\bar.exe and a relative path like bar.exe if this is in your search path.
If my php file is being executed from my E:\ drive to a command running on my C:\ drive, it doesn't work since the cd is happening on the wrong drive.
I fixed it by doing the following:
$drive = substr($command, 0, 2);
$command = sprintf($drive . ' && cd %s && %s', escapeshellarg(dirname($command)), basename($command));
So $command becomes:
C: && cd "C:\Program Files\wkhtmltopdf\bin" && wkhtmltopdf.exe
The text was updated successfully, but these errors were encountered: