How to view PHP, besides the browser?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gath
Forum Newbie
Posts: 20
Joined: Wed May 15, 2002 8:36 pm

How to view PHP, besides the browser?

Post 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.
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post 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!";
?>
User avatar
protokol
Forum Contributor
Posts: 353
Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:

Post by protokol »

don't forget to do:

chmod +x script.php

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