Page 1 of 1

How to view PHP, besides the browser?

Posted: Fri Jul 19, 2002 12:30 pm
by Gath
I dont really know GTK, so it may do what i'm asking. If it does, i want to know other ways...

To view PHP pages (in my own computer, not on a server) i need to have Apache, PHP (doh!), and MySQL (not necessary, just the database). And some browser.
Is there a way to see them without Apache (or anyother server) installed?

I assume that PHP interacts directly with MySQL, so i'm trying to loose the Apache (and the browser, if possible) ... can i?

Thanks.

Posted: Fri Jul 19, 2002 1:32 pm
by enygma
well, you can compile a PHP-CGI version of it all and just use that.

then, in your scripts, you'd have it like:

#!/path/to/php
<?php
echo "hello world!";
?>

Posted: Fri Jul 19, 2002 2:10 pm
by protokol
don't forget to do:

chmod +x script.php

Otherwise you won't be able to execute the shell script