Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created June 21, 2012 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/2964933 to your computer and use it in GitHub Desktop.
Save silv3rm00n/2964933 to your computer and use it in GitHub Desktop.
a.php ---
$a = shell_exec('php-cgi /var/www/test.php');
echo $a;
test.php ---
echo "Hello World";
opening http://localhost/a.php makes the browser loading forever , why ?
php sapi is cgi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment