php-install Digest 6 May 2002 18:05:36 -0000 Issue 822
Topics (messages 6866 through 6880):
empty db queries with 4.2.0.
6866 by: Jeffrey_N_Dyke.Keane.com
Just installed new version of php
6867 by: Demi Vitalis
6870 by: hyper
empty db queries with 4.2.0...fix found, but....
6868 by: Jeffrey_N_Dyke.Keane.com
6871 by: Jim Thome
6872 by: Rick Watts
6875 by: Jeffrey_N_Dyke.Keane.com
Re: Php 4.12 and Apche 2.0.35 on WIN 98 - Help
6869 by: hyper
Re: Cannot Install PHP4 on apache2 for windows
6873 by: Mike P
Re: Problem Installing DOM XML Support
6874 by: Mike P
php4.2 configure script failure using apxs2 (apache-2.0.35)
6876 by: Andy
6878 by: Jim Thome
PHP + Apache, chrooted not resolving names
6877 by: Oliver Schlag
php random error!
6879 by: tovar
unsuscribed me
6880 by: CTC
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 ---
Hello. I have had a few versions of PHP installed starting with 4.06 and
most recently 4.1.2. I have now tried to upgrade to 4.2.0 and some of the
database querys come out empty. Ones that have been working for sometime on
all other versions. Luckily, this is simply on the development server and
i have not built this on production. I did a make clean and then installed
as usual. This only seems to be when php is sending variables in the URL
to be used in the query. Straight database queries come back fine. I have
error_reporting(E_ALL) set on all pages....and no errors at all.
Has anyone expierenced this? Did something change, should i have added a
new argument to the configure command? Is this in PHP.ini?
Any help is appreciated. Luckily it is very easy to go back to 4.1.2 where
all scripts work, but doesn't eveyone like to upgrade ;)
Thanks.
Jeff
oh and thanks for your comments on the winXP/Apache/php question. for
anyone thinking of it. i installed
Apache2.035/php4.2.0/Tomcat4.0/jsdk1.4/mysql3.23 on XP without a hitch.
--- End Message ---
--- Begin Message ---
Hey everyone, I just installed the new version of php… and after having to
re-write some code because of all the changes, I finally got everything
going.
I need to add the php_imap.dll file to my stuff and the old one that I had
for 4.06 will not work with the new version of php. I am running php on a
win32 system (Windows 2000 server). How can I get that dll… and if I have to
compile something… how do I do that? I wrote a cool program that uses imap
but now I cant use it because I no longer have imap support.
--- End Message ---
--- Begin Message ---
Good question. What happened to the php_imap.dll for Windows?
[ h y p e r ]
--- End Message ---
--- Begin Message ---
Ok. It seems that if i turn register_globals to On everything is fine.
But what does this potentially open up as far as security risks. I would
prefer not to do this, but if i don't set this to be On, no POST or GET
variables are passed. I have always just used the $formVar notation of a
post variable, and not the $HTTP_POST_VARS["formVar"] notation. should i
change the way i code these things and turn register_globals back off?
Any ideas?
any help is appreciated,
Jeff
----- Forwarded by Jeffrey N Dyke/CORP/Keane on 05/06/2002 08:20 AM -----
Jeffrey_N_Dyke
@Keane.com To: "phpinstall"
<[EMAIL PROTECTED]>
cc:
05/06/2002 Subject: [PHP-INST] empty db queries with
4.2.0.
07:32 AM
Hello. I have had a few versions of PHP installed starting with 4.06 and
most recently 4.1.2. I have now tried to upgrade to 4.2.0 and some of the
database querys come out empty. Ones that have been working for sometime on
all other versions. Luckily, this is simply on the development server and
i have not built this on production. I did a make clean and then installed
as usual. This only seems to be when php is sending variables in the URL
to be used in the query. Straight database queries come back fine. I have
error_reporting(E_ALL) set on all pages....and no errors at all.
Has anyone expierenced this? Did something change, should i have added a
new argument to the configure command? Is this in PHP.ini?
Any help is appreciated. Luckily it is very easy to go back to 4.1.2 where
all scripts work, but doesn't eveyone like to upgrade ;)
Thanks.
Jeff
oh and thanks for your comments on the winXP/Apache/php question. for
anyone thinking of it. i installed
Apache2.035/php4.2.0/Tomcat4.0/jsdk1.4/mysql3.23 on XP without a hitch.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Read this: http://www.zend.com/zend/art/art-oertli.php
>>> <[EMAIL PROTECTED]> 05/06/02 06:19AM >>>
Ok. It seems that if i turn register_globals to On everything is fine.
But what does this potentially open up as far as security risks. I would
prefer not to do this, but if i don't set this to be On, no POST or GET
variables are passed. I have always just used the $formVar notation of a
post variable, and not the $HTTP_POST_VARS["formVar"] notation. should i
change the way i code these things and turn register_globals back off?
Any ideas?
any help is appreciated,
Jeff
----- Forwarded by Jeffrey N Dyke/CORP/Keane on 05/06/2002 08:20 AM -----
Jeffrey_N_Dyke
@Keane.com To: "phpinstall"
<[EMAIL PROTECTED]>
cc:
05/06/2002 Subject: [PHP-INST] empty db queries with
4.2.0.
07:32 AM
Hello. I have had a few versions of PHP installed starting with 4.06 and
most recently 4.1.2. I have now tried to upgrade to 4.2.0 and some of the
database querys come out empty. Ones that have been working for sometime on
all other versions. Luckily, this is simply on the development server and
i have not built this on production. I did a make clean and then installed
as usual. This only seems to be when php is sending variables in the URL
to be used in the query. Straight database queries come back fine. I have
error_reporting(E_ALL) set on all pages....and no errors at all.
Has anyone expierenced this? Did something change, should i have added a
new argument to the configure command? Is this in PHP.ini?
Any help is appreciated. Luckily it is very easy to go back to 4.1.2 where
all scripts work, but doesn't eveyone like to upgrade ;)
Thanks.
Jeff
oh and thanks for your comments on the winXP/Apache/php question. for
anyone thinking of it. i installed
Apache2.035/php4.2.0/Tomcat4.0/jsdk1.4/mysql3.23 on XP without a hitch.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I'm a PHP 'newbie' but I use the extract() function to restore the form
variables after passing $HTTP_POST_VARS to a library function for
processing - it seems to me that you could do the same with the new $_POST
array. That way you only have to add a single function call to each of your
form handling routines, although you may open up the same security risks as
before!
For more info on security have a look at
http://www.php.net/release_4_1_0.php
The Fruity Newt.
-----Original Message-----
From: Jim Thome [mailto:[EMAIL PROTECTED]]
Sent: 06 May 2002 07:26
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-INST] empty db queries with 4.2.0...fix found,but....
Read this: http://www.zend.com/zend/art/art-oertli.php
>>> <[EMAIL PROTECTED]> 05/06/02 06:19AM >>>
Ok. It seems that if i turn register_globals to On everything is fine.
But what does this potentially open up as far as security risks. I would
prefer not to do this, but if i don't set this to be On, no POST or GET
variables are passed. I have always just used the $formVar notation of a
post variable, and not the $HTTP_POST_VARS["formVar"] notation. should i
change the way i code these things and turn register_globals back off?
Any ideas?
any help is appreciated,
Jeff
----- Forwarded by Jeffrey N Dyke/CORP/Keane on 05/06/2002 08:20 AM -----
Jeffrey_N_Dyke
@Keane.com To: "phpinstall"
<[EMAIL PROTECTED]>
cc:
05/06/2002 Subject: [PHP-INST] empty db
queries with 4.2.0.
07:32 AM
Hello. I have had a few versions of PHP installed starting with 4.06 and
most recently 4.1.2. I have now tried to upgrade to 4.2.0 and some of the
database querys come out empty. Ones that have been working for sometime on
all other versions. Luckily, this is simply on the development server and
i have not built this on production. I did a make clean and then installed
as usual. This only seems to be when php is sending variables in the URL
to be used in the query. Straight database queries come back fine. I have
error_reporting(E_ALL) set on all pages....and no errors at all.
Has anyone expierenced this? Did something change, should i have added a
new argument to the configure command? Is this in PHP.ini?
Any help is appreciated. Luckily it is very easy to go back to 4.1.2 where
all scripts work, but doesn't eveyone like to upgrade ;)
Thanks.
Jeff
oh and thanks for your comments on the winXP/Apache/php question. for
anyone thinking of it. i installed
Apache2.035/php4.2.0/Tomcat4.0/jsdk1.4/mysql3.23 on XP without a hitch.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello all,
After reading what Jim sent me, I'm taking his advice...thanks Jim and
Zend!
i run servers inside and outside of our firewall, and while the ones inside
i'm not all that concerned about, i am currently revising all of my code to
adapt to this standard of leaving register_globals = Off. it seems if you
go against it, you're just opening yourself up tot he security hole they
tried to patch.
Thanks again,
jeff
"Rick Watts"
<rick@voyageurconsul To: <[EMAIL PROTECTED]>
tants.com> cc:
Subject: RE: [PHP-INST] empty db
queries with 4.2.0...fix
05/06/2002 10:44 AM found,but....
Please respond to
rick
I'm a PHP 'newbie' but I use the extract() function to restore the form
variables after passing $HTTP_POST_VARS to a library function for
processing - it seems to me that you could do the same with the new $_POST
array. That way you only have to add a single function call to each of your
form handling routines, although you may open up the same security risks as
before!
For more info on security have a look at
http://www.php.net/release_4_1_0.php
The Fruity Newt.
-----Original Message-----
From: Jim Thome [mailto:[EMAIL PROTECTED]]
Sent: 06 May 2002 07:26
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-INST] empty db queries with 4.2.0...fix found,but....
Read this: http://www.zend.com/zend/art/art-oertli.php
>>> <[EMAIL PROTECTED]> 05/06/02 06:19AM >>>
Ok. It seems that if i turn register_globals to On everything is fine.
But what does this potentially open up as far as security risks. I would
prefer not to do this, but if i don't set this to be On, no POST or GET
variables are passed. I have always just used the $formVar notation of a
post variable, and not the $HTTP_POST_VARS["formVar"] notation. should i
change the way i code these things and turn register_globals back off?
Any ideas?
any help is appreciated,
Jeff
----- Forwarded by Jeffrey N Dyke/CORP/Keane on 05/06/2002 08:20 AM -----
Jeffrey_N_Dyke
@Keane.com To: "phpinstall"
<[EMAIL PROTECTED]>
cc:
05/06/2002 Subject: [PHP-INST] empty db
queries with 4.2.0.
07:32 AM
Hello. I have had a few versions of PHP installed starting with 4.06 and
most recently 4.1.2. I have now tried to upgrade to 4.2.0 and some of the
database querys come out empty. Ones that have been working for sometime on
all other versions. Luckily, this is simply on the development server and
i have not built this on production. I did a make clean and then installed
as usual. This only seems to be when php is sending variables in the URL
to be used in the query. Straight database queries come back fine. I have
error_reporting(E_ALL) set on all pages....and no errors at all.
Has anyone expierenced this? Did something change, should i have added a
new argument to the configure command? Is this in PHP.ini?
Any help is appreciated. Luckily it is very easy to go back to 4.1.2 where
all scripts work, but doesn't eveyone like to upgrade ;)
Thanks.
Jeff
oh and thanks for your comments on the winXP/Apache/php question. for
anyone thinking of it. i installed
Apache2.035/php4.2.0/Tomcat4.0/jsdk1.4/mysql3.23 on XP without a hitch.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> I used - LoadModule php4_module C:\Program Files\Apache
> Group\Apache\php-4.2.0-Win32\experimental\apache2filter.dll. But then when I
> do an Apache -K start I get the following error message: "Load Module takes
> two arguments, a module name and the name of a shared object file to load it
> from"
>
> Where am I going wrong?
LoadModule php4_module "C:\Program Files\Apache
Group\Apache\php-4.2.0-Win32\experimental\apache2filter.dll"
If you have spaces in your path you need to wrap it in " so the config parser
knows it's one string.
[ h y p e r ]
--- End Message ---
--- Begin Message ---
You need to use the Apache filter from the php/experimental directory rather
than the php4apache.dll. It's apache2filter.dll.
Can't use the php4apache.dll
Place this filter in your php/sapi directory and point LoadModule to it.
Your apache httpd.conf should have this, then:
LoadModule php4_module "C:/program files/php/sapi/apache2filter.dll"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Works for me with WinNT 4.0SP6a, PHP 4.2.0 and Apache 2.0.35
"Riddler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
here are my settings:
httpd.conf:
=======================
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
php.ini (located in c:\windows):
========================
doc_root=c:\progra~1\apache~1\apache2\htdocs
extension_dir=c:\php\extensions
The Error:
=========================
Syntax error on line 180 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/php/sapi/php4apache.dll into server: One of the library files
needed to run this application cannot be found.
The Platform/Apps:
=========================
Windows 98se 768mb ram 1.2ghz athlon
Apache 2.0.35
MySql 3.23.49
and PHP 4
Can anyone Help?
-The Riddler
--- End Message ---
--- Begin Message ---
I'm having a similar issue using the Sablotron XSLT functions....undefined
function.
Have you found any clues to your problem resolution?
I'm running PHP4.2.0 with Apache2.0.35 on WinNT4.0(SP6a).
phpinfo shows XML enabled, DOMXML enabled, XSLT enabled.
Thanks,
Mike
"Gary Huntress" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I've installed php 4.1.2 with DOM XML (libxml 2.4.21 and zlib 1.1.4)
> support, and successfully according to phpinfo() yet, I'm getting an
error
> "call to undefined function" for something simple like domxml_open_file()
> any idea how I could troubleshoot this? or what might be wrong?
>
> Regards,
>
> Gary Huntress
>
>
--- End Message ---
--- Begin Message ---
I have tried running the configure script on both the current tarball
download
version of php4.2 (and also the latest CVS version)
The compile script stops when it checks for apxs.
I used the following command on both occations:
./configure --with-mysql --with-apxs2=/usr/sbin/apxs
I have re-compiled apache-2.0.35 several times in the belief that there
was a problem with the installation.
The configure command used for apache is:
./configure --enable-layout=RedHat --enable-ssl=shared --enable-disk-cache
--enable-mem-cache --enable-mods-shared=all
Apache compiles successfuly and works as expected.
The end of the php4 configure script follows:
...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using
--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
The output of /usr/sbin/apxs follows:
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
The suggested causes above (1,2,3) are rubbish.
any ideas anyone?
Thanks in advance.
Andy :-)
--- End Message ---
--- Begin Message ---
Why are the suggested causes rubbish? Number 3 says that Apache needs to be compiled
with dso support (--enable-so) and you don't have it in your Apache config line.
Recompile Apache with:
./configure \
--enable-layout=RedHat \
--enable-ssl=shared \
--enable-disk-cache \
--enable-mem-cache \
--enable-mods-shared=all \
--enable-so
make clean
make
make install
--Jim
>>> "Andy" <[EMAIL PROTECTED]> 05/06/02 10:02AM >>>
I have tried running the configure script on both the current tarball
download
version of php4.2 (and also the latest CVS version)
The compile script stops when it checks for apxs.
I used the following command on both occations:
./configure --with-mysql --with-apxs2=/usr/sbin/apxs
I have re-compiled apache-2.0.35 several times in the belief that there
was a problem with the installation.
The configure command used for apache is:
./configure --enable-layout=RedHat --enable-ssl=shared --enable-disk-cache
--enable-mem-cache --enable-mods-shared=all
Apache compiles successfuly and works as expected.
The end of the php4 configure script follows:
...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using
--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
The output of /usr/sbin/apxs follows:
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
The suggested causes above (1,2,3) are rubbish.
any ideas anyone?
Thanks in advance.
Andy :-)
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hy,
i've got a apache 1.3.20 running on a Solaris 8 Operating System in a
chrooted environment. There is PHP 4.1.2 as dso apache module compiled.
I've checked the libphp4.so with ldd to get all shared libraries into
the chrooted environment. All seems to look good, except the name
resolving via fsockopen, this does not work. If i try the following
$fp = fsockopen ("whois.somewhere.com", 43, &$errno, &$errstr, 30);
echo "$errno\t $errstr\t $fp\n";
fputs($fp,$somestring);
I always receive a error that the file pointer $fp is not a valid file
handle. $errno and $errstr are not set at this moment. If i try to
connect to an IP Address all works well.
Any hints are welcome.
TIA
Oliver Schlag
--- End Message ---
--- Begin Message ---
After installing PHP 4.20 and mysql 3.23.49a on my Win2000 Pro system most
of the .php pages return the following error:
winsock.dll unusable. 1009
Some of the real basic .php pages will randomly work.
I'm also running MS personal web server. The .html pages display fine
Any ideas would be greatly appreciated.
Thanks,
Tovar.
--- End Message ---
--- Begin Message ---
please, unsuscribed adrress [EMAIL PROTECTED]
thanks
--- End Message ---