Gamenati
05-06-2003, 03:29 PM
I was wondering how i would use php on my computer... all i want to do is:
say i made a document like:
doc.php
<?
echo "hello"
?>
how would i get "hello" to appear on my browser?
right now it just asks if i want to download...
MDJ2000
05-06-2003, 03:42 PM
Installing php (http://php.net) would probably be a good start.
Gamenati
05-06-2003, 03:43 PM
please be more specific, like what to download on Windows XP, i have no idea at all
FW-Mike
05-06-2003, 04:40 PM
http://sourceforge.net/projects/phptriad
Should get you up and running!
Gamenati
05-06-2003, 05:30 PM
i installed it, what now?
jb4mt
05-06-2003, 05:57 PM
Originally posted by Gamenati
i installed it, what now?
First of all when it was recommended you download and install PhpTriad, it was assumed you wanted PHP to serve web pages. A fairly safe assumption, but there is now a command line interface as well.
Sticking with PHP for serving webpages, you might not have needed PhpTriad if you had Microsoft's IIS web server installed on your XP system, though it typically only comes with XP profesionnal rather than XP home.
Since you have PHPTriad installed, you need to start the Apache component of that package. I don't have PHPTriad at present so you may have to check the documentation. If it installs Apache as a service it may already be running with no installation required.
Once you have Apache running, there will typically be a directory for web documents, PHP and otherwise, inside the folder where you installed PHPTriad. It is called "htdocs", and it might even be under an "apache" subfolder under PhpTriad.
Save your doc.php there and, if Apache is running properly, you can try typing the following as the location with your web browser:
http://localhost/doc.php
CSD_Hosting
05-06-2003, 05:58 PM
make the page:
<?php
//file hello.php
echo "hello world";
?>
upload to your website, and do 'http://mydomain.com/hello.php'
it should print out 'hello world'
Gamenati
05-06-2003, 06:29 PM
thank you so much jb, its finally working!