|
Posted by Steve on 02/07/07 09:08
On Wed, 07 Feb 2007 20:29:51 +1300, Justin wrote:
> rfhurley wrote:
>> On Feb 6, 7:24 pm, "Benjamin" <musiccomposit...@gmail.com> wrote:
>>> On Feb 6, 3:32 pm, "rfhurley" <rfhur...@yahoo.com> wrote:> How do I run a .php program? (I'm starting with the "hello world"
>>>> script)
>>> Well, put your .php file in the document root of the webserver (eg. c:
>>> \Program Files\Apache Software Foundation\Apache2.2\htdocs) and typehttp://localhost/youfilename.phpinto a web browser.
>>
>> Benjamin,
>> Thank you for responding. OK, I put the php doc in the correct folder,
>> where localhost is able to fid it, but it just reads out the code. Do
>> I have to configure the PHP in a certain way for the script to work?
>> btw, the script reads: "<?php phpinfo(); ?>" (quotation marks mine)
>>
>
>
> sounds like you haven't told apache what to do with .php files.
>
> Re read the installation details for php and what you need to put in the
> hpptd.conf file to get Apache processing php files.
>
> Regards
>
> Justin
You need to add php support to apache as well... pretty simple to do, but
specific to OS. The manual is pretty helpful at this point.
[Back to original message]
|