can not get PHP to fully connect
Posted by: David Pate (---.hsv.bellsouth.net)
Date: December 22, 2005 06:01AM

Multiple attempts with the same problem.
Basic html works using localhost with the following code

<h1> hello in PHP </h1>

that is, "hello in PHP" prints with the browser

, but the following code is ignored in the html:
<?php
print "hello from php";
phpinfo();
?>

phpinfo.php works

I have tried on 3 machines, and used Apache 1.3 and Apache 2.

Thanks,
David


Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: Romain Bourdon (---.w193-251.abo.wanadoo.fr)
Date: December 22, 2005 09:26AM

Are you double clicking on your files or accessing them througt [localhost] ?

Romain

Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: David Pate (---.ascensionhealth.org)
Date: December 22, 2005 08:38PM

accessing through localhost

Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: David Pate (---.ascensionhealth.org)
Date: December 25, 2005 10:25PM

I still cannot get Apache "to see" PHP. There must be something preventing this as I have made every change and modification under the sun to make it work. What other programs or processes could interfere?
thanks,
David

Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: Romain Bourdon (---.w193-251.abo.wanadoo.fr)
Date: December 26, 2005 11:34AM

Givbe us more info like :

- the name of your page
- its contents
- the adress you acess to see it

romain

Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: David Pate (---.ascensionhealth.org)
Date: December 26, 2005 07:17PM

name of page: test.html

contents:
html>
<head>
<title>PHP Test</title>
</head>
<body>
<h1> hello from Html </h1>
<?php Print "hello from PHP";
phpinfo(); ?>
</body>
</html>

address: [10.60.162.51]

I can see the "hello from Html", but not the php part. Using "localhost" gives the same thing. I have used several different addresses, but all give the same result. When I look at the source through Firefox the <?...?> is grayed out. I have tried both IE and Firefox with the same results.

Thanks,
David

Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: Romain Bourdon (---.w193-251.abo.wanadoo.fr)
Date: December 27, 2005 11:49AM

You must name your page with a .php extension if you want iot to be redirected to php by apache...

Romain

Options: ReplyQuote
Re: can not get PHP to fully connect
Posted by: David Pate (---.ascensionhealth.org)
Date: December 27, 2005 04:03PM

That works.

Thanks,
David

Options: ReplyQuote


Sorry, only registered users may post in this forum.