Hi:  I am new and having the same problem - when I view my "test.php" file 
in my browser by typing in:  http://localhost/test.php  all I get is a view 
of the code itself which is:

<?php
phpinfo()
?>

All the documentation I find says that this indicates a problem with the 
Apache server configuration, but when I simply type in http://localhost  I 
get the correct Apache page stating that the installation was correct.  I 
can't get any further than that.  Help?
Thanks!
Mary

"Richard Ray Harris" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> I'm having similar issues. (Newbie here.)  Running
> program from my browser, titled test.php:
>
> <html?
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <p>This is an HTML line
> <p>
> <?php
>    echo "This is a PHP line";
> ?>
> </body></html>
>
> ...the output is "This is an HTML line" and nothing
> else.  I'm *reasonably* sure I have everything
> configured to spec, but obviously there's some "DOH!"
> mistake I've made along the way.  Help!  Been at this
> all day.
>
> --Richard
>
>
> --- [EMAIL PROTECTED] wrote:
>> Sounds right to me. Have you tried uploading a .php
>> and opening it in your browser? Try this one:
>>
>> phpinfo.php:
>>
>> <?php
>> phpinfo()
>> ?>
>>
>> -----Original Message-----
>> From: Plantier, Spencer
>> [mailto:[EMAIL PROTECTED]
>> Posted At: Tuesday, April 19, 2005 12:40 PM
>> Posted To: list_PHP_Config
>> Conversation: Getting apache to run the php page
>> Subject: [PHP-INSTALL] Getting apache to run the php
>> page
>>
>>
>> I have php installed but when I start hpptd and then
>> https://localhost I
>> just get the default apache page. What did I do
>> wrong?
>>
>> Thanks
>>
>> Spencer Plantier
>> System Network Administrator
>>
>> 301 Gregson Dr
>> Cary, NC  27511
>> Office 919-379-8513
>> Cell    919-272-8833
>> [EMAIL PROTECTED]
>>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com 

Reply via email to