Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Environment path for CMD and php shell might not be the same. You either have to give entire path of the file, or <code>export</code> the path of <code>chrome.exe</code> in php first</p> <p>Also, I believe that <code>chrome.exe</code> opening a page requires XServer, php can't open graphical interfaces in shell. These commands are not passed to actual shell as a parent, so php file can't "launch" applications for you.</p> <p>Please read specifics of the exec function: <a href="http://php.net/manual/en/function.exec.php" rel="nofollow">PHP <code>exec</code> Reference</a></p> <p>Also try adding <code>2&gt; errors.txt</code> to see what are the errors if any in the execution of the programme. </p> <p>--</p> <p>The program needs to know what X server to connect to, and it needs to have permissions to connect to that server. You specify the X server with the DISPLAY environment variable; this will usually be set automatically if you are running the PHP program from a terminal in X, or from a GNOME panel or something similar; however, if you are running the PHP script in some other manner, it likely won't know what X server to connect to.</p> <p>X has various ways of specifying permission to connect to a server, but the most common one is using a file called ".Xauthority" in the users home directory. Because only the user who is logged in at the X server can read this file, they are the only user who can run GUI programs. So, if you start the PHP user as the same user who is logged in at the X server, you shouldn't have any problem with permissions. However, if the PHP program is running as a different user, you will have to give that user permission to access the X server.</p> <p>Reference: <a href="http://bytes.com/topic/php/answers/838364-cant-launch-graphical-apps-php-exec-ubuntu-8-04-system" rel="nofollow">http://bytes.com/topic/php/answers/838364-cant-launch-graphical-apps-php-exec-ubuntu-8-04-system</a> (I know that link is for linux and won't have exact same solution for Windows, but <code>exec()</code> still needs to know which X interface to refer to)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload