For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2004 > Php page does not load after installing PHPTriad?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Php page does not load after installing PHPTriad?
Jack

2004-09-26, 9:06 am

Hi there,

I just installed PHPTriad all went good. I started apache and MySql
services.

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:

<?php
echo "Hello World!";
?>
and
<?php
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.
Jack.



Polaris

2004-09-26, 9:06 am

Just a guess, did you install php itself ?

"Jack" <no@mail.com> schreef in bericht
news:cj61fj$f05$1@news3.zwoll1.ov.home.nl...
> Hi there,
>
> I just installed PHPTriad all went good. I started apache and MySql
> services.
>
> 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:
>
> <?php
> echo "Hello World!";
> ?>
> and
> <?php
> 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.
> Jack.
>
>
>



Mr. Foo

2004-09-26, 3:55 pm


"Polaris" <ask4polaris@hotmail.com> wrote in message
news:4156a687$0$44077$5fc3050@dreader2.news.tiscali.nl...
> Just a guess, did you install php itself ?
>
> "Jack" <no@mail.com> schreef in bericht
> news:cj61fj$f05$1@news3.zwoll1.ov.home.nl...
>
>






Type http://127.0.0.1/firstphp.php not C:\apache\htdocs\firstphp.php
make sure apache is on with phptraid once in awhile I need to restart apache
from some reason to get it running again.


Jack

2004-09-27, 8:55 am


"Jack" <no@mail.com> wrote in message
news:cj61fj$f05$1@news3.zwoll1.ov.home.nl...
> Hi there,
>
> I just installed PHPTriad all went good. I started apache and MySql
> services.
>
> 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:
>
> <?php
> echo "Hello World!";
> ?>
> and
> <?php
> 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.
> Jack.
>




Thanks all thats it, i got it working now :-)


Manfred Leikermoser

2004-09-27, 8:55 am

Hi Jack,

try this:

http://localhost/firstphp.php
with apache running!

greets
Manfred



"Jack" <no@mail.com> wrote in message
news:cj61fj$f05$1@news3.zwoll1.ov.home.nl...
> Hi there,
>
> I just installed PHPTriad all went good. I started apache and MySql
> services.
>
> 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:
>
> <?php
> echo "Hello World!";
> ?>
> and
> <?php
> 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.
> Jack.
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com