Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't run PHP file in console
    text
    copied!<p>Using command: </p> <pre><code>$output = shell_exec("/usr/bin/php /path/to/my/file.php"); echo $output; </code></pre> <p>Getting this result: </p> <pre><code> string(1208) "Content-type: text/html string(1165) "Content-type: text/html string(1122) "Content-type: text/html string(1079) "Content-type: text/html string(1036) "Content-type: text/html string(994) "Content-type: text/html string(952) "Content-type: text/html string(910) "Content-type: text/html string(868) "Content-type: text/html string(826) "Content-type: text/html string(784) "Content-type: text/html string(742) "Content-type: text/html string(700) "Content-type: text/html string(658) "Content-type: text/html string(616) "Content-type: text/html string(574) "Content-type: text/html string(532) "Content-type: text/html string(490) "Content-type: text/html string(448) "Content-type: text/html string(406) "Content-type: text/html string(364) "Content-type: text/html string(322) "Content-type: text/html string(280) "Content-type: text/html Warning: shell_exec() [function.shell-exec]: Unable to execute '/usr/bin/php /home/zumblemo/public_html/ad/../test.php' in /home/zumblemo/public_html/ad/test.php on line 5 bool(false) " " " " " " " " " " " " " " </code></pre> <p>It should just output the word "Test" for now.<br/> I don't get it. When I launch Python files like this it works. <br/> Hosting support says that same should work with PHP files.<br/></p> <p>Paths are 100% correct (when they are incorrect - it just gives NULL result like it should)</p> <p>PS: Great! php-cli worked. Thanks!</p>
 

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