php windows installation help

I have installed apache 2.0.61 and php 5.2.5 on my XP computer.
I have apache running and followed the installation instructions by Matthew
Phillips on www.devarticles.com.
Apache seems to be working but I can't get php scripts to work.
I may be missing server api but I have not been able to find it.
darrell [ Fr, 30 November 2007 04:37 ] [ ID #1882917 ]

Re: php windows installation help

Darrell wrote:
> I have installed apache 2.0.61 and php 5.2.5 on my XP computer.
> I have apache running and followed the installation instructions by Matthew
> Phillips on www.devarticles.com.
> Apache seems to be working but I can't get php scripts to work.
> I may be missing server api but I have not been able to find it.
>
>
>

Those instructions are over 4 years old and is written for PHP 4. A lot
has changed since then.

Why not just install WAMP or XAMP. You get Apache, PHP and MySQL, all
in one nice package.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Jerry Stuckle [ Fr, 30 November 2007 12:56 ] [ ID #1882920 ]

Re: php windows installation help

OK, I uninstalled apache and php and installed WAMP2.0a which has apache
2.2.6, php5.2.5 and mysql 5.0.45.
The index.html file in C:\wamp\bin\apache\apache2.2.6\htdocs runs and the
screen says "It works".
When I run test.php that contains the following

<?php
echo 'PHP is working.<br>';
echo phpinfo();
?>

I get

'; echo phpinfo(); ?>

so it looks like php is not working. This is the same problem I had before.
What now?


"Jerry Stuckle" <jstucklex [at] attglobal.net> wrote in message
news:1PydnYosBuccZ9LanZ2dnUVZ_smnnZ2d [at] comcast.com...
> Darrell wrote:
>> I have installed apache 2.0.61 and php 5.2.5 on my XP computer.
>> I have apache running and followed the installation instructions by
>> Matthew Phillips on www.devarticles.com.
>> Apache seems to be working but I can't get php scripts to work.
>> I may be missing server api but I have not been able to find it.
>
> Those instructions are over 4 years old and is written for PHP 4. A lot
> has changed since then.
>
> Why not just install WAMP or XAMP. You get Apache, PHP and MySQL, all in
> one nice package.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex [at] attglobal.net
> ==================
>
darrell [ Fr, 30 November 2007 19:39 ] [ ID #1882924 ]

Re: php windows installation help

Darrell wrote:
> OK, I uninstalled apache and php and installed WAMP2.0a which has apache
> 2.2.6, php5.2.5 and mysql 5.0.45.
> The index.html file in C:\wamp\bin\apache\apache2.2.6\htdocs runs and the
> screen says "It works".
> When I run test.php that contains the following
>
> <?php
> echo 'PHP is working.<br>';
> echo phpinfo();
> ?>
>
> I get
>
> '; echo phpinfo(); ?>
>
> so it looks like php is not working. This is the same problem I had before.
> What now?
>
>
> "Jerry Stuckle" <jstucklex [at] attglobal.net> wrote in message
> news:1PydnYosBuccZ9LanZ2dnUVZ_smnnZ2d [at] comcast.com...
>> Darrell wrote:
>>> I have installed apache 2.0.61 and php 5.2.5 on my XP computer.
>>> I have apache running and followed the installation instructions by
>>> Matthew Phillips on www.devarticles.com.
>>> Apache seems to be working but I can't get php scripts to work.
>>> I may be missing server api but I have not been able to find it.
>> Those instructions are over 4 years old and is written for PHP 4. A lot
>> has changed since then.
>>
>> Why not just install WAMP or XAMP. You get Apache, PHP and MySQL, all in
>> one nice package.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex [at] attglobal.net
>> ==================
>>
>
>
>

Well, first of all you don't echo phpinfo(). It produces the page all
by itself. You should only have:

<?php
phpinfo();
?>

What does your page source look like?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex [at] attglobal.net
==================
Jerry Stuckle [ Fr, 30 November 2007 20:30 ] [ ID #1882925 ]

Re: php windows installation help

OK, I think I found it. The file has to be in a folder under C:\wamp\www to
work.

Darrell

"Darrell" <darrell [at] > wrote in message
news:FMOdnYERus23xM3anZ2dnUVZ_oOnnZ2d [at] comcast.com...
> OK, I uninstalled apache and php and installed WAMP2.0a which has apache
> 2.2.6, php5.2.5 and mysql 5.0.45.
> The index.html file in C:\wamp\bin\apache\apache2.2.6\htdocs runs and the
> screen says "It works".
> When I run test.php that contains the following
>
> <?php
> echo 'PHP is working.<br>';
> echo phpinfo();
> ?>
>
> I get
>
> '; echo phpinfo(); ?>
>
> so it looks like php is not working. This is the same problem I had
> before.
> What now?
>
>
> "Jerry Stuckle" <jstucklex [at] attglobal.net> wrote in message
> news:1PydnYosBuccZ9LanZ2dnUVZ_smnnZ2d [at] comcast.com...
>> Darrell wrote:
>>> I have installed apache 2.0.61 and php 5.2.5 on my XP computer.
>>> I have apache running and followed the installation instructions by
>>> Matthew Phillips on www.devarticles.com.
>>> Apache seems to be working but I can't get php scripts to work.
>>> I may be missing server api but I have not been able to find it.
>>
>> Those instructions are over 4 years old and is written for PHP 4. A lot
>> has changed since then.
>>
>> Why not just install WAMP or XAMP. You get Apache, PHP and MySQL, all in
>> one nice package.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex [at] attglobal.net
>> ==================
>>
>
>
darrell [ Fr, 30 November 2007 21:28 ] [ ID #1882926 ]
PHP » alt.php » php windows installation help

Vorheriges Thema: What is the difference between exceptions and simple error handling
Nächstes Thema: PHP Positions in South Africa