Re: re: Getting apache to run the php page
| From: | Mary Hayes | Date: | Thu, 21 Apr 2005 06:28:19 +0000 |
| Subject: | Re: re: Getting apache to run the php page | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-16021@lists.php.net to get a copy of this message | ||
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" <gaygolfassociation@yahoo.com> wrote in message
news:20050420231138.64778.qmail@web61206.mail.yahoo.com...
> 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
>
>
> --- jmartinez@controlaircorp.com 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:spencer.plantier@stratech.com]
>> 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
>> spencer.plantier@stratech.com
>>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com