Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
September 26, 2004, 4:10 pm
rate this thread
I just installed PHPTriad all went good. I started Apache and MySql
If i do http://127.0.0.1 . (same as: C:\apache\htdocs) in by browser i get
the welcome page of PHPTriad so this looks good.
Now i want to open a php file so i do this: C:\apache\htdocs\firstphp.php
What happens next: Homesite opens and shows me the code:
echo "Hello World!";
print ("Hello World!");
If i want to open this in IE i also just see the code, does anyone know what
i did wrong and why the php file is not loading properly? What did i miss?
Thanks for responding.
Re: Php page does not load after installing PHPTriad?
If you access http://127.0.0.1 in your browser and the "Welcome to Apache"
page shows up, then you have set everything up correctly.
If you then want to access a PHP script in you C:\apache\htdocs folder what
you do NOT do is enter the address "C:\apache\htdocs" in your browser as
this will not go through Apache. The correct address is
http://127.0.0.1/script.php If your script exists in
C:\apache\htdocs\folder1 then you access it using
Simply pointing your browser at a PHP file will not get it executed - you
must go through the Apache web server via http://127.0.0.1 . The web server
will then process it before passing the results to the web browser.