php-windows Digest 23 May 2006 19:53:03 -0000 Issue 2968

Topics (messages 26919 through 26926):

Re: Configuration problem?
        26919 by: Alf Stockton
        26920 by: Rick Emery
        26921 by: Daniel Anderson
        26922 by: George Pitcher
        26926 by: trystano.aol.com

Apache 2.2 and PHP-5.1.4
        26923 by: giwrgos
        26924 by: Aaron Kenney
        26925 by: giwrgos

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Bill Angus wrote:
> 
> I was able to enter phpinfo in the zend debugger, and I noticed that the info 
> returned was NOT the same as the settings in the php.ini file in my 
> C:/php/php.ini file.
> 
Have you checked to see how many copies of php.ini you have on that machine?
A blank screen has usually meant to me that there is an error in your
script.

-- 
Regards,
Alf Stockton            www.stockton.co.za

You will always get the greatest recognition for the job you least like.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Quoting Bill Angus <[EMAIL PROTECTED]>:

I have php installed and a working copy of phpMyAdmin, MySQL and Apache2.0.58 on a windows2k box.

phpMyAdmin works fine, as do a couple of other php scripts. However, when I go to try to code in php myself, I get a blank screen.

Make sure display_errors is turned on in php.ini (you may already have it turned on, but the correct php.ini file isn't being read; see below). There's probably an error in the script that isn't being displayed.

I downloaded zend-studio to try to see if I could trace the fault with my setup. The studio shows that I can do simple echo scripts -- but that I get the following error when I try to connect to the mySQL database

Debug Error: C:\Homepage\psychtest\private\search.htm line 13 - Call to undefined function mysql_pconnect()

the following call (from your php tutorial) also returns nothing.
echo $_SERVER['HTTP_USER_AGENT'];

The zend studio debugger returns the following message...

Notice: C:\Homepage\psychtest\private\search.htm line 10 - Undefined index: HTTP_USER_AGENT

Am I supposed to insert a reference to a library of functions somewhere at the start of my code?

I was able to enter phpinfo in the zend debugger, and I noticed that the info returned was NOT the same as the settings in the php.ini file in my C:/php/php.ini file.

The first thing I usually do after a new PHP install is create a page that calls phpinfo, then browse to it. That page will tell you where the php file is located from which it's obtaining its configuration.

On Windows servers, I usually set up a the PHPRC environment variable to point to the php.ini file; take a look at this page (php manual):

http://us3.php.net/manual/en/install.windows.manual.php

Thanks in advance for any ideas or suggestions you can provide. Have a great day!

Hope this helps,
Rick
--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
                                              -- Leonardo Da Vinci

--- End Message ---
--- Begin Message ---
PHP uses the settings from: C:\Windows\php.ini, not C:\PHP\php.ini

Have you ensured you've allowed Apache to parse HTML files to act as PHP Files?

----- Original Message ----- From: "Bill Angus" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 22, 2006 7:29 PM
Subject: [PHP-WIN] Configuration problem?


I have php installed and a working copy of phpMyAdmin, MySQL and Apache2.0.58 on a windows2k box.

phpMyAdmin works fine, as do a couple of other php scripts. However, when I go to try to code in php myself, I get a blank screen. I downloaded zend-studio to try to see if I could trace the fault with my setup. The studio shows that I can do simple echo scripts -- but that I get the following error when I try to connect to the mySQL database

Debug Error: C:\Homepage\psychtest\private\search.htm line 13 - Call to undefined function mysql_pconnect()

the following call (from your php tutorial) also returns nothing.
echo $_SERVER['HTTP_USER_AGENT'];

The zend studio debugger returns the following message...

Notice: C:\Homepage\psychtest\private\search.htm line 10 - Undefined index: HTTP_USER_AGENT

Am I supposed to insert a reference to a library of functions somewhere at the start of my code?

I was able to enter phpinfo in the zend debugger, and I noticed that the info returned was NOT the same as the settings in the php.ini file in my C:/php/php.ini file.

Thanks in advance for any ideas or suggestions you can provide. Have a great day!

Bill Angus, MA
http://www.psychtest.com
--- End Message ---
--- Begin Message ---
Daniel,

It may use C:\Windows\php.ini on your box, but mine is definitely using
C:\PHP\php.ini.

On my NT boxes, I have the following at the end of httpd.conf:

# configure the path to php.ini
PHPIniDir "C:/php"

But no reference at all on my XP box.

George in Oxford

> -----Original Message-----
> From: Daniel Anderson [mailto:[EMAIL PROTECTED]
> Sent: 23 May 2006 2:13 pm
> To: [email protected]
> Subject: Re: [PHP-WIN] Configuration problem?
>
>
> PHP uses the settings from: C:\Windows\php.ini, not C:\PHP\php.ini
>
> Have you ensured you've allowed Apache to parse HTML files to act as PHP
> Files?
>
> ----- Original Message -----
> From: "Bill Angus" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, May 22, 2006 7:29 PM
> Subject: [PHP-WIN] Configuration problem?
>
>
> I have php installed and a working copy of phpMyAdmin, MySQL and
> Apache2.0.58 on a windows2k box.
>
> phpMyAdmin works fine, as do a couple of other php scripts.
> However, when I
> go to try to code in php myself, I get a blank screen. I downloaded
> zend-studio to try to see if I could trace the fault with my setup. The
> studio shows that I can do simple echo scripts -- but that I get the
> following error when I try to connect to the mySQL database
>
> Debug Error: C:\Homepage\psychtest\private\search.htm line 13 - Call to
> undefined function mysql_pconnect()
>
> the following call (from your php tutorial) also returns nothing.
> echo $_SERVER['HTTP_USER_AGENT'];
>
> The zend studio debugger returns the following message...
>
> Notice: C:\Homepage\psychtest\private\search.htm line 10 -
> Undefined index:
> HTTP_USER_AGENT
>
> Am I supposed to insert a reference to a library of functions
> somewhere at
> the start of my code?
>
> I was able to enter phpinfo in the zend debugger, and I noticed that the
> info returned was NOT the same as the settings in the php.ini file in my
> C:/php/php.ini file.
>
> Thanks in advance for any ideas or suggestions you can provide.
> Have a great
> day!
>
> Bill Angus, MA
> http://www.psychtest.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message --- Checkout the link below to see the order in which PHP looks for the configuration file.

http://www.php.net/manual/en/configuration.php#configuration.file

Then, as someone suggested, search you HD for php.ini.

I remember I had this problem before and got in aright knot as I wanted php5, and 4.2.3 on the same machine and they were all using the wrong config files :)

Tryst

-----Original Message-----
From: George Pitcher <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tue, 23 May 2006 14:29:42 +0100
Subject: RE: [PHP-WIN] Configuration problem?

 Daniel,

It may use C:\Windows\php.ini on your box, but mine is definitely using
C:\PHP\php.ini.

On my NT boxes, I have the following at the end of httpd.conf:

# configure the path to php.ini
PHPIniDir "C:/php"

But no reference at all on my XP box.

George in Oxford

-----Original Message-----
From: Daniel Anderson [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 2:13 pm
To: [email protected]
Subject: Re: [PHP-WIN] Configuration problem?


PHP uses the settings from: C:\Windows\php.ini, not C:\PHP\php.ini

Have you ensured you've allowed Apache to parse HTML files to act as
PHP
Files?

----- Original Message -----
From: "Bill Angus" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 22, 2006 7:29 PM
Subject: [PHP-WIN] Configuration problem?


I have php installed and a working copy of phpMyAdmin, MySQL and
Apache2.0.58 on a windows2k box.

phpMyAdmin works fine, as do a couple of other php scripts.
However, when I
go to try to code in php myself, I get a blank screen. I downloaded
zend-studio to try to see if I could trace the fault with my setup.
The
studio shows that I can do simple echo scripts -- but that I get the
following error when I try to connect to the mySQL database

Debug Error: C:\Homepage\psychtest\private\search.htm line 13 - Call
to
undefined function mysql_pconnect()

the following call (from your php tutorial) also returns nothing.
echo $_SERVER['HTTP_USER_AGENT'];

The zend studio debugger returns the following message...

Notice: C:\Homepage\psychtest\private\search.htm line 10 -
Undefined index:
HTTP_USER_AGENT

Am I supposed to insert a reference to a library of functions
somewhere at
the start of my code?

I was able to enter phpinfo in the zend debugger, and I noticed that
the
info returned was NOT the same as the settings in the php.ini file in
my
C:/php/php.ini file.

Thanks in advance for any ideas or suggestions you can provide.
Have a great
day!

Bill Angus, MA
http://www.psychtest.com

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Hi!
I tried to install Apache 2.2 and PHP-5.1.4 as a module but i failed.
The reason is that apache cannot load the php5apache2.dll. The file
exists. So, i was wondering if PHP isn't supporting apache2.2. If there
is any help, that would be great!
Btw,i am using WinXP Pro.

--- End Message ---
--- Begin Message ---
The indication that I get from the documentation is that PHP 5 isn't
compatible with Apache versions higher than 2.0.58, at least in
Windows. Eventually I am sure that the PHP people will get this
working. It just takes some time to do a release.

I have PHP 5 running on IIS on a Windows 2003 server, but I also have
PHP 5 running on Apache 2.2.0 on a Fedora Core 5 server. So I know
that PHP5/Apache 2.2.x does work on Fedora Linux when installed
through yum. If you have the capability, perhaps you'd like to go that
route if you must use this combination.

Otherwise, I can try installing this combination on my Windows XP Pro
test PC at the next possible moment.
-Aaron Kenney

On 5/23/06, giwrgos <[EMAIL PROTECTED]> wrote:
Hi!
I tried to install Apache 2.2 and PHP-5.1.4 as a module but i failed.
The reason is that apache cannot load the php5apache2.dll. The file
exists. So, i was wondering if PHP isn't supporting apache2.2. If there
is any help, that would be great!
Btw,i am using WinXP Pro.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message --- Thanx for the info. It seems as if u have worked with both IIS and apache. What are the advantages and the disadvantages and in general what would u recommend.

Aaron Kenney wrote:
The indication that I get from the documentation is that PHP 5 isn't
compatible with Apache versions higher than 2.0.58, at least in
Windows. Eventually I am sure that the PHP people will get this
working. It just takes some time to do a release.

I have PHP 5 running on IIS on a Windows 2003 server, but I also have
PHP 5 running on Apache 2.2.0 on a Fedora Core 5 server. So I know
that PHP5/Apache 2.2.x does work on Fedora Linux when installed
through yum. If you have the capability, perhaps you'd like to go that
route if you must use this combination.

Otherwise, I can try installing this combination on my Windows XP Pro
test PC at the next possible moment.
-Aaron Kenney

On 5/23/06, giwrgos <[EMAIL PROTECTED]> wrote:
Hi!
I tried to install Apache 2.2 and PHP-5.1.4 as a module but i failed.
The reason is that apache cannot load the php5apache2.dll. The file
exists. So, i was wondering if PHP isn't supporting apache2.2. If there
is any help, that would be great!
Btw,i am using WinXP Pro.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---

Reply via email to