Re: [PHP] Upgrade or Die?

2011-06-26 Thread Eric Butera
On Sat, Jun 25, 2011 at 12:13 AM,  ad...@buskirkgraphics.com wrote:
 The message for Netscape was very clear, the development community refused to 
 write for it they had started a precedence that could not be forgotten.
 I say communities will not forget this act and remove the browser from their 
 systems rather than be forced into an update for security reasons.

 Honestly, rarely do any of my customers use FF, and their reasons are 
 justified in their mind, so I do not argue the point.

 This is another reason for security personnel, to credit their policies in 
 denying FF on their network the same as they did with Netscape.




 Richard L. Buskirk
 Senior Software Engineer/Systems Administrator

 You can’t grow your business with systems that are on life support...

 -Original Message-
 From: Richard Quadling [mailto:rquadl...@gmail.com]
 Sent: Friday, June 24, 2011 5:38 PM
 To: a...@ashleysheridan.co.uk
 Cc: Andy McKenzie; php-general@lists.php.net
 Subject: Re: [PHP] Upgrade or Die?

 On 24 June 2011 19:39, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 On Fri, 2011-06-24 at 13:38 -0400, Andy McKenzie wrote:

 On Fri, Jun 24, 2011 at 1:30 PM,  ja...@nixsecurity.org wrote:
  Chrome. Enough said. Now, if we can only convince the rest of the world 
  ...
 

 Ugh.  I can't stand Chrome.  Of course, I gave up on Firefox years ago
 and went back to Opera, so it doesn't bother me when Firefox does
 something weird like this...

 -Andy



 Meh, I'm still using 3.6 on my main computer and 3.5 on my laptop. Using
 Fx4 at work, and I have to say, I prefer 3.6. Fx4 is slower, prone to
 crashing and a bit of a memory hog. I really hope Mozilla doesn't go the
 way of Google and create loads of new versions dropping support for the
 older ones as it goes, even if the 'older' versions are barely that old
 at all.

 That pattern of behaviour sounds exactly like Netscape all those years ago.



 --
 Richard Quadling
 Twitter : EE : Zend : PHPDoc
 @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

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


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



Just to throw my two pennies into this - I believe that all browsers
should auto-upgrade.  The browser has become the most important
application on desktops and it is remiss of all parties involved to
allow the masses to use exploitable out-dated software.  If someone is
paranoid about their supposed privacy, afford them the luxury of
finding ways to use software that has known defects.  I entreat you to
consider how much time and pain this would have prevented over the
last decade.

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



Re: [PHP] Upgrade or Die?

2011-06-24 Thread Richard S. Crawford
That is indeed frustrating. I upgraded to FF 4 a month ago or so, and it's
been nothing but a hassle. Out of frustration, I switched to Chrome, and I
haven't looked back.


On Fri, Jun 24, 2011 at 10:16 AM, ad...@buskirkgraphics.com wrote:

 In shifting gears to a faster pace of development and release, Mozilla has
 opted to abandon security support for Firefox 4 immediately upon the
 release
 of version 5, which came out this week.

 This could be a risky move, since many users neglect to update their
 browsers immediately for various reasons, despite the pop-up reminders
 Firefox periodically displays.

 I will never understand this mindset.



 Full story : http://www.technewsworld.com/edpick/72739.html







 Richard L. Buskirk






-- 
Sláinte,
Richard S. Crawford (rich...@underpope.com)
http://www.underpope.com
Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)


Re: [PHP] Upgrade or Die?

2011-06-24 Thread james
Chrome. Enough said. Now, if we can only convince the rest of the world ...


 Original Message 
From: ad...@buskirkgraphics.com
To: php-general@lists.php.net
Sent: Fri, Jun 24, 2011, 1:17 PM
Subject: [PHP] Upgrade or Die?

In shifting gears to a faster pace of development and release, Mozilla has
opted to abandon security support for Firefox 4 immediately upon the release
of version 5, which came out this week.

This could be a risky move, since many users neglect to update their
browsers immediately for various reasons, despite the pop-up reminders
Firefox periodically displays.

I will never understand this mindset.



Full story : http://www.technewsworld.com/edpick/72739.html







Richard L. Buskirk


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



Re: [PHP] Upgrade or Die?

2011-06-24 Thread Andy McKenzie
On Fri, Jun 24, 2011 at 1:30 PM,  ja...@nixsecurity.org wrote:
 Chrome. Enough said. Now, if we can only convince the rest of the world ...


Ugh.  I can't stand Chrome.  Of course, I gave up on Firefox years ago
and went back to Opera, so it doesn't bother me when Firefox does
something weird like this...

-Andy

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



Re: [PHP] Upgrade or Die?

2011-06-24 Thread Ashley Sheridan
On Fri, 2011-06-24 at 13:38 -0400, Andy McKenzie wrote:

 On Fri, Jun 24, 2011 at 1:30 PM,  ja...@nixsecurity.org wrote:
  Chrome. Enough said. Now, if we can only convince the rest of the world ...
 
 
 Ugh.  I can't stand Chrome.  Of course, I gave up on Firefox years ago
 and went back to Opera, so it doesn't bother me when Firefox does
 something weird like this...
 
 -Andy
 


Meh, I'm still using 3.6 on my main computer and 3.5 on my laptop. Using
Fx4 at work, and I have to say, I prefer 3.6. Fx4 is slower, prone to
crashing and a bit of a memory hog. I really hope Mozilla doesn't go the
way of Google and create loads of new versions dropping support for the
older ones as it goes, even if the 'older' versions are barely that old
at all.

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Upgrade or Die?

2011-06-24 Thread Robert Cummings

On 11-06-24 01:16 PM, ad...@buskirkgraphics.com wrote:

In shifting gears to a faster pace of development and release, Mozilla has
opted to abandon security support for Firefox 4 immediately upon the release
of version 5, which came out this week.

This could be a risky move, since many users neglect to update their
browsers immediately for various reasons, despite the pop-up reminders
Firefox periodically displays.

I will never understand this mindset.



Full story : http://www.technewsworld.com/edpick/72739.html



I downloaded version 497.3 from the future, it's great, it deletes 
itself before finishing the install because it knows there's a new more 
advanced version already out.


Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

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



Re: [PHP] Upgrade or Die?

2011-06-24 Thread Richard Quadling
On 24 June 2011 19:39, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 On Fri, 2011-06-24 at 13:38 -0400, Andy McKenzie wrote:

 On Fri, Jun 24, 2011 at 1:30 PM,  ja...@nixsecurity.org wrote:
  Chrome. Enough said. Now, if we can only convince the rest of the world ...
 

 Ugh.  I can't stand Chrome.  Of course, I gave up on Firefox years ago
 and went back to Opera, so it doesn't bother me when Firefox does
 something weird like this...

 -Andy



 Meh, I'm still using 3.6 on my main computer and 3.5 on my laptop. Using
 Fx4 at work, and I have to say, I prefer 3.6. Fx4 is slower, prone to
 crashing and a bit of a memory hog. I really hope Mozilla doesn't go the
 way of Google and create loads of new versions dropping support for the
 older ones as it goes, even if the 'older' versions are barely that old
 at all.

That pattern of behaviour sounds exactly like Netscape all those years ago.



-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

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



Re: [PHP] Upgrade or Die?

2011-06-24 Thread Nam Gi VU
Dear James,

In case you love Chrome that much, be sure you not using its `remember
password` feature or any one else share using your PC/laptop will see it
super-easily!

Nam



On Sat, Jun 25, 2011 at 12:30 AM, ja...@nixsecurity.org wrote:

 Chrome. Enough said. Now, if we can only convince the rest of the world ...


  Original Message 
 From: ad...@buskirkgraphics.com
 To: php-general@lists.php.net
 Sent: Fri, Jun 24, 2011, 1:17 PM
 Subject: [PHP] Upgrade or Die?
 
 In shifting gears to a faster pace of development and release, Mozilla has
 opted to abandon security support for Firefox 4 immediately upon the
 release
 of version 5, which came out this week.
 
 This could be a risky move, since many users neglect to update their
 browsers immediately for various reasons, despite the pop-up reminders
 Firefox periodically displays.
 
 I will never understand this mindset.
 
 
 
 Full story : http://www.technewsworld.com/edpick/72739.html
 
 
 
 
 
 
 
 Richard L. Buskirk


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




RE: [PHP] Upgrade or Die?

2011-06-24 Thread admin
The message for Netscape was very clear, the development community refused to 
write for it they had started a precedence that could not be forgotten.
I say communities will not forget this act and remove the browser from their 
systems rather than be forced into an update for security reasons.

Honestly, rarely do any of my customers use FF, and their reasons are justified 
in their mind, so I do not argue the point.

This is another reason for security personnel, to credit their policies in 
denying FF on their network the same as they did with Netscape.


   

Richard L. Buskirk
Senior Software Engineer/Systems Administrator

You can’t grow your business with systems that are on life support...

-Original Message-
From: Richard Quadling [mailto:rquadl...@gmail.com] 
Sent: Friday, June 24, 2011 5:38 PM
To: a...@ashleysheridan.co.uk
Cc: Andy McKenzie; php-general@lists.php.net
Subject: Re: [PHP] Upgrade or Die?

On 24 June 2011 19:39, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 On Fri, 2011-06-24 at 13:38 -0400, Andy McKenzie wrote:

 On Fri, Jun 24, 2011 at 1:30 PM,  ja...@nixsecurity.org wrote:
  Chrome. Enough said. Now, if we can only convince the rest of the world ...
 

 Ugh.  I can't stand Chrome.  Of course, I gave up on Firefox years ago
 and went back to Opera, so it doesn't bother me when Firefox does
 something weird like this...

 -Andy



 Meh, I'm still using 3.6 on my main computer and 3.5 on my laptop. Using
 Fx4 at work, and I have to say, I prefer 3.6. Fx4 is slower, prone to
 crashing and a bit of a memory hog. I really hope Mozilla doesn't go the
 way of Google and create loads of new versions dropping support for the
 older ones as it goes, even if the 'older' versions are barely that old
 at all.

That pattern of behaviour sounds exactly like Netscape all those years ago.



-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

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


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



Re: [PHP] upgrade php4 to php5

2009-09-10 Thread Eddie Drapkin
On Thu, Sep 10, 2009 at 2:51 AM, madunix madu...@gmail.com wrote:
 how can i upgrade my php4 to php5?

 [r...@intra /]# uname -a
 Linux intra 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686
 i386 GNU/Linux
 /usr/local/apache/bin/apachectl stop
 cd /downloads/
 cd php-4.4.3
 ./configure --with-apxs2=/usr/local/apache/bin/apxs
 --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib/
 --enable-versioning --enable-track-vars=yes
 --enable-url-includes--enable-sysvshm=yes --enable-sysvsem=yes
 --with-gettext --enable-mbstring --enable-ftp --enable-calendar
 --with-config-file-path=/etc --with-oci8=$ORACLE_HOME  --enable-soap
 --with-gd  --enable-xml --with-xml  --enable-sysvsem --enable-sysvshm
 --enable-sysvmsg --with-regex=system --with-png --with-ttf=/usr/lib
 --with-freetype=/usr/lib --enable-sigchild --with-openssl --with-iconv
 --with-dom
 make
 make install
 /usr/local/apache/bin/apachectl start


 what would be the best way to upgrade to php5?
 any modification should be done on php.ini?

 your input would be really appreciated?

 Thanks
 -mu

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




This might help:
http://php.net/manual/en/faq.migration5.php

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



Re: [PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-13 Thread Merlin Morgenstern

Hi there,

has somebody an idea how to fix this? I do appreciate any help.

Thank you in advance, Merlin

Merlin Morgenstern wrote:
No. The with-pdo-mysql command secures compatibility with oder databases 
. That workes fine. The yes in the error msg. seams to be normal in this 
case. I found loads of such via google. e.g:

http://www.rootforum.de/forum/viewtopic.php?f=158t=35941start=0

All point to the fact that there needs to be mysql-dev installed. But 
why? I am already running 5.2.6. And mysql-dev does not come with suse 
11. I doubt that this is the cause.


Any other ideas?

Thanx, merlin

Chris schrieb:



Here is the configure command that is pretty much the same as in 5.2.6:


So look at the differences ;)

'./configure' '--enable-fastcgi' '--with-mysql' 
'--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' 
'--enable-mbstring' '--with-pdo-mysql=/usr/local/mysql/' 
'--with-mysql-sock=/tmp' '--enable-soap' '--with-zlib' 
'--with-freetype-dir=/usr/local/lib' '--with-gd' 
'--with-jpeg-dir=/usr' '--with-png-dir=/usr/lib' '--enable-exif' 
'--enable-cli'


snip


configure: error: Cannot find MySQL header files under yes.


This gives you the clue - it's not --with-mysql=yes or something (no 
idea where yes is actually coming from).


Try --with-mysql=/usr/local/mysql



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



Re: [PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-13 Thread Tom Rogers
Hi,

Tuesday, January 13, 2009, 9:25:57 AM, you wrote:
MM Hello everybody,

MM I am trying to update php 5.2.6 to 5.2.8 on a test system. Somehow it 
MM can not find the working mysql installation. With 5.2.6 I everything is
MM fine.

MM Here is the configure command that is pretty much the same as in 5.2.6:

MM './configure' '--enable-fastcgi' '--with-mysql' 
MM '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' 
MM '--enable-mbstring' '--with-pdo-mysql=/usr/local/mysql/' 
MM '--with-mysql-sock=/tmp' '--enable-soap' '--with-zlib' 
MM '--with-freetype-dir=/usr/local/lib' '--with-gd' '--with-jpeg-dir=/usr'
MM '--with-png-dir=/usr/lib' '--enable-exif' '--enable-cli'


MM PHP returns:

MM checking for MySQL UNIX socket location... /tmp
MM configure: error: Cannot find MySQL header files under yes.
MM Note that the MySQL client library is not bundled anymore!

MM According to a google search mysql-dev is not installed. So I tried to
MM get it with yast on the suse 11.0 server. No luck. So I got it via a 
MM rpm. That returns:

MM   rpm -i mysql-devel.rpm
MM error: Failed dependencies:
MM  mysql-client is needed by mysql-devel-5.0.26-21.x86_64
MM  mysql-shared = 5.0.26 is needed by mysql-devel-5.0.26-21.x86_64
MM  libc.so.6()(64bit) is needed by mysql-devel-5.0.26-21.x86_64
MM  libc.so.6(GLIBC_2.2.5)(64bit) is needed by 
MM mysql-devel-5.0.26-21.x86_64
MM  libc.so.6(GLIBC_2.3.4)(64bit) is needed by 
MM mysql-devel-5.0.26-21.x86_64
MM  libcrypt.so.1()(64bit) is needed by mysql-devel-5.0.26-21.x86_64
MM  libm.so.6()(64bit) is needed by mysql-devel-5.0.26-21.x86_64
MM  libnsl.so.1()(64bit) is needed by mysql-devel-5.0.26-21.x86_64
MM  libpthread.so.0()(64bit) is needed by mysql-devel-5.0.26-21.x86_64
MM  libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by 
MM mysql-devel-5.0.26-21.x86_64
MM  libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by 
MM mysql-devel-5.0.26-21.x86_64

MM Something must be wrong. I can't believe that there is so much change 
MM necessary for such a minur upgrade.

MM Any ideas? Thank you for any help,

MM Merlin


try getting rid of the trailing slash 
('--with-pdo-mysql=/usr/local/mysql/')

-- 
regards,
Tom


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



Re: [PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-12 Thread Chris



Here is the configure command that is pretty much the same as in 5.2.6:


So look at the differences ;)

'./configure' '--enable-fastcgi' '--with-mysql' 
'--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' 
'--enable-mbstring' '--with-pdo-mysql=/usr/local/mysql/' 
'--with-mysql-sock=/tmp' '--enable-soap' '--with-zlib' 
'--with-freetype-dir=/usr/local/lib' '--with-gd' '--with-jpeg-dir=/usr' 
'--with-png-dir=/usr/lib' '--enable-exif' '--enable-cli'


snip


configure: error: Cannot find MySQL header files under yes.


This gives you the clue - it's not --with-mysql=yes or something (no 
idea where yes is actually coming from).


Try --with-mysql=/usr/local/mysql

--
Postgresql  php tutorials
http://www.designmagick.com/


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



Re: [PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-12 Thread Merlin Morgenstern
No. The with-pdo-mysql command secures compatibility with oder databases 
. That workes fine. The yes in the error msg. seams to be normal in this 
case. I found loads of such via google. e.g:

http://www.rootforum.de/forum/viewtopic.php?f=158t=35941start=0

All point to the fact that there needs to be mysql-dev installed. But 
why? I am already running 5.2.6. And mysql-dev does not come with suse 
11. I doubt that this is the cause.


Any other ideas?

Thanx, merlin

Chris schrieb:



Here is the configure command that is pretty much the same as in 5.2.6:


So look at the differences ;)

'./configure' '--enable-fastcgi' '--with-mysql' 
'--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' 
'--enable-mbstring' '--with-pdo-mysql=/usr/local/mysql/' 
'--with-mysql-sock=/tmp' '--enable-soap' '--with-zlib' 
'--with-freetype-dir=/usr/local/lib' '--with-gd' 
'--with-jpeg-dir=/usr' '--with-png-dir=/usr/lib' '--enable-exif' 
'--enable-cli'


snip


configure: error: Cannot find MySQL header files under yes.


This gives you the clue - it's not --with-mysql=yes or something (no 
idea where yes is actually coming from).


Try --with-mysql=/usr/local/mysql



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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Tom Ray [Lists]

Robert Cummings wrote:

On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote:
  

Hey-

I'm trying to install PHP5 with mysql support and I keep running into 
the same problem over and over again. I run the configuration with this: 
--with-mysql=/usr/local/mysql and without fail I get this every time:


ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
reference to `mysql_drop_db'

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

What am I doing wrong here? I'm running mysql 5.0.45 located at 
/usr/local/mysql which would my my lib directory at /usr/local/mysql/lib 
I have updated my ld.so.conf file to point to that and I'm still running 
into issues here.


Any thoughts or pointers on what I am doing wrong here? I've never had 
an issue before but I never had to compile PHP with mysql support since 
it was always part of the install.



What's your ld.so.conf pointing to for MySQL? It should be pointing to:

/usr/local/mysql/lib/mysql

And not:

/usr/local/mysql/lib

Presuming that /usr/local/mysql/ contains the following directories as
expected:

bin/  include/  info/  lib/  libexec/  man/  mysql-test/
share/  sql-bench/

Cheers,
Rob.
  
ARUGH! I fixed my ld.so.conf file and tried again and I'm still dying in 
the make process at the same spot. Here's what I have:


ld.so.conf
mx02:~:# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/local/ssl/lib
/usr/local/opensrs-client/lib
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/freetds/lib
/usr/lib/libmcrypt/lib
/usr/local/mhash0-9-3/lib
/usr/local/mysql/lib/mysql

Here's my mysql structure: (var softlinks to data)
mx02:~:# ls /usr/local/mysql
binCOPYING  docs   include  INSTALL-BINARY  libexec  
mysql-test  scripts  sql-bench  tests
configure  data EXCEPTIONS-CLIENT  info lib man  
README  sharesupport-files  var


Here's my configuration setup:
mx02:~:# ./configure --prefix=/usr/local/php5 
--with-apxs2=/usr/local/apache-dev/bin/apxs --with-mysql=/usr/local/mysql


Compiles just fine but when I run make I get the errors previously 
listed. I've run ldconfig, I rebooted the machine...I just don't know 
what I'm doing wrong here.


Thanks!

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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Robert Cummings

On Tue, 2008-01-22 at 12:42 -0500, Tom Ray [Lists] wrote:
 Robert Cummings wrote:
  On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote:

  Hey-
 
  I'm trying to install PHP5 with mysql support and I keep running into 
  the same problem over and over again. I run the configuration with this: 
  --with-mysql=/usr/local/mysql and without fail I get this every time:
 
  ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
  /home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
  reference to `mysql_create_db'
  ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
  /home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
  reference to `mysql_drop_db'
  collect2: ld returned 1 exit status
  make: *** [sapi/cgi/php-cgi] Error 1
 
  What am I doing wrong here? I'm running mysql 5.0.45 located at 
  /usr/local/mysql which would my my lib directory at /usr/local/mysql/lib 
  I have updated my ld.so.conf file to point to that and I'm still running 
  into issues here.
 
  Any thoughts or pointers on what I am doing wrong here? I've never had 
  an issue before but I never had to compile PHP with mysql support since 
  it was always part of the install.
  
 
  What's your ld.so.conf pointing to for MySQL? It should be pointing to:
 
  /usr/local/mysql/lib/mysql
 
  And not:
 
  /usr/local/mysql/lib
 
  Presuming that /usr/local/mysql/ contains the following directories as
  expected:
 
  bin/  include/  info/  lib/  libexec/  man/  mysql-test/
  share/  sql-bench/
 
  Cheers,
  Rob.

 ARUGH! I fixed my ld.so.conf file and tried again and I'm still dying in 
 the make process at the same spot. Here's what I have:
 
 ld.so.conf
 mx02:~:# cat /etc/ld.so.conf
 /usr/kerberos/lib
 /usr/X11R6/lib
 /usr/local/ssl/lib
 /usr/local/opensrs-client/lib
 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
 /usr/local/freetds/lib
 /usr/lib/libmcrypt/lib
 /usr/local/mhash0-9-3/lib
 /usr/local/mysql/lib/mysql
 
 Here's my mysql structure: (var softlinks to data)
 mx02:~:# ls /usr/local/mysql
 binCOPYING  docs   include  INSTALL-BINARY  libexec  
 mysql-test  scripts  sql-bench  tests
 configure  data EXCEPTIONS-CLIENT  info lib man  
 README  sharesupport-files  var

This looks like the MySQL source tree and not the installation tree.
Please provide your ./configure line for building MySQL.

Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Tom Ray [Lists]

Robert Cummings wrote:

On Tue, 2008-01-22 at 12:42 -0500, Tom Ray [Lists] wrote:
  

Robert Cummings wrote:


On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote:
  
  

Hey-

I'm trying to install PHP5 with mysql support and I keep running into 
the same problem over and over again. I run the configuration with this: 
--with-mysql=/usr/local/mysql and without fail I get this every time:


ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
reference to `mysql_drop_db'

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

What am I doing wrong here? I'm running mysql 5.0.45 located at 
/usr/local/mysql which would my my lib directory at /usr/local/mysql/lib 
I have updated my ld.so.conf file to point to that and I'm still running 
into issues here.


Any thoughts or pointers on what I am doing wrong here? I've never had 
an issue before but I never had to compile PHP with mysql support since 
it was always part of the install.



What's your ld.so.conf pointing to for MySQL? It should be pointing to:

/usr/local/mysql/lib/mysql

And not:

/usr/local/mysql/lib

Presuming that /usr/local/mysql/ contains the following directories as
expected:

bin/  include/  info/  lib/  libexec/  man/  mysql-test/
share/  sql-bench/

Cheers,
Rob.
  
  
ARUGH! I fixed my ld.so.conf file and tried again and I'm still dying in 
the make process at the same spot. Here's what I have:


ld.so.conf
mx02:~:# cat /etc/ld.so.conf
/usr/kerberos/lib
/usr/X11R6/lib
/usr/local/ssl/lib
/usr/local/opensrs-client/lib
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/freetds/lib
/usr/lib/libmcrypt/lib
/usr/local/mhash0-9-3/lib
/usr/local/mysql/lib/mysql

Here's my mysql structure: (var softlinks to data)
mx02:~:# ls /usr/local/mysql
binCOPYING  docs   include  INSTALL-BINARY  libexec  
mysql-test  scripts  sql-bench  tests
configure  data EXCEPTIONS-CLIENT  info lib man  
README  sharesupport-files  var



This looks like the MySQL source tree and not the installation tree.
Please provide your ./configure line for building MySQL.

Cheers,
Rob.
  

This is how I setup mysql:
#upgrades: cd mysql
tar -zxf mysql-version-x.tar.gz
cp -R * /usr/local/mysql
cd /usr/local/mysql
chown -R mysql:mysql *
scripts/mysql_install_db --user=mysql
/usr/local/mysql/bin/mysqld_safe 

mysql starts/runs just fine. This server has been upgraded from 3.x to 
4.x to 5.0.45 currently. Is there something I'm missing?


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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Robert Cummings

On Tue, 2008-01-22 at 16:47 -0500, Tom Ray [Lists] wrote:


 This is how I setup mysql:
 #upgrades: cd mysql
 tar -zxf mysql-version-x.tar.gz
 cp -R * /usr/local/mysql
 cd /usr/local/mysql
 chown -R mysql:mysql *
 scripts/mysql_install_db --user=mysql
 /usr/local/mysql/bin/mysqld_safe 
 
 mysql starts/runs just fine. This server has been upgraded from 3.x to 
 4.x to 5.0.45 currently. Is there something I'm missing?

Ah, I see. I install from source so don't have the same layout. Hmm, I
don't know what the problem is then :/

Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Chris

Tom Ray [Lists] wrote:

Hey-

I'm trying to install PHP5 with mysql support and I keep running into 
the same problem over and over again. I run the configuration with this: 
--with-mysql=/usr/local/mysql and without fail I get this every time:


ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
reference to `mysql_drop_db'

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

What am I doing wrong here? I'm running mysql 5.0.45 located at 
/usr/local/mysql which would my my lib directory at /usr/local/mysql/lib 
I have updated my ld.so.conf file to point to that and I'm still running 
into issues here.


Did you get any errors when configure ran? I'm not sure if it will stop 
configure working when it can't find a library you want to compile in or 
if it just ignores the error and keeps going.


--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Tom Ray [Lists]

Chris wrote:

Tom Ray [Lists] wrote:

Hey-

I'm trying to install PHP5 with mysql support and I keep running into 
the same problem over and over again. I run the configuration with 
this: --with-mysql=/usr/local/mysql and without fail I get this every 
time:


ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
reference to `mysql_drop_db'

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

What am I doing wrong here? I'm running mysql 5.0.45 located at 
/usr/local/mysql which would my my lib directory at 
/usr/local/mysql/lib I have updated my ld.so.conf file to point to 
that and I'm still running into issues here.


Did you get any errors when configure ran? I'm not sure if it will 
stop configure working when it can't find a library you want to 
compile in or if it just ignores the error and keeps going.



No errors during the ./configure part only when I run make

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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Chris

Tom Ray [Lists] wrote:

Chris wrote:

Tom Ray [Lists] wrote:

Hey-

I'm trying to install PHP5 with mysql support and I keep running into 
the same problem over and over again. I run the configuration with 
this: --with-mysql=/usr/local/mysql and without fail I get this every 
time:


ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
reference to `mysql_drop_db'

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

What am I doing wrong here? I'm running mysql 5.0.45 located at 
/usr/local/mysql which would my my lib directory at 
/usr/local/mysql/lib I have updated my ld.so.conf file to point to 
that and I'm still running into issues here.


Did you get any errors when configure ran? I'm not sure if it will 
stop configure working when it can't find a library you want to 
compile in or if it just ignores the error and keeps going.



No errors during the ./configure part only when I run make


What happens if you configure --with-mysqli not --with-mysql ?

Just wondering if it makes any diff.. it shouldn't really I don't think.

--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Tom Ray [Lists]

Chris wrote:

Tom Ray [Lists] wrote:

Chris wrote:

Tom Ray [Lists] wrote:

Hey-

I'm trying to install PHP5 with mysql support and I keep running 
into the same problem over and over again. I run the configuration 
with this: --with-mysql=/usr/local/mysql and without fail I get 
this every time:


ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
reference to `mysql_create_db'

ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
/home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
reference to `mysql_drop_db'

collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

What am I doing wrong here? I'm running mysql 5.0.45 located at 
/usr/local/mysql which would my my lib directory at 
/usr/local/mysql/lib I have updated my ld.so.conf file to point to 
that and I'm still running into issues here.


Did you get any errors when configure ran? I'm not sure if it will 
stop configure working when it can't find a library you want to 
compile in or if it just ignores the error and keeps going.



No errors during the ./configure part only when I run make


What happens if you configure --with-mysqli not --with-mysql ?

Just wondering if it makes any diff.. it shouldn't really I don't think.

Yeah it doesn't still have issues with it. I need to upgrade to PHP5 
since some of the new OpenSRS stuff needs it but this is being a damn pain,.


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



Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote:
 Hey-
 
 I'm trying to install PHP5 with mysql support and I keep running into 
 the same problem over and over again. I run the configuration with this: 
 --with-mysql=/usr/local/mysql and without fail I get this every time:
 
 ext/mysql/php_mysql.o: In function `zif_mysql_create_db':
 /home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1227: undefined 
 reference to `mysql_create_db'
 ext/mysql/php_mysql.o: In function `zif_mysql_drop_db':
 /home/tech/upgrades/php-5.2.5/ext/mysql/php_mysql.c:1266: undefined 
 reference to `mysql_drop_db'
 collect2: ld returned 1 exit status
 make: *** [sapi/cgi/php-cgi] Error 1
 
 What am I doing wrong here? I'm running mysql 5.0.45 located at 
 /usr/local/mysql which would my my lib directory at /usr/local/mysql/lib 
 I have updated my ld.so.conf file to point to that and I'm still running 
 into issues here.
 
 Any thoughts or pointers on what I am doing wrong here? I've never had 
 an issue before but I never had to compile PHP with mysql support since 
 it was always part of the install.

What's your ld.so.conf pointing to for MySQL? It should be pointing to:

/usr/local/mysql/lib/mysql

And not:

/usr/local/mysql/lib

Presuming that /usr/local/mysql/ contains the following directories as
expected:

bin/  include/  info/  lib/  libexec/  man/  mysql-test/
share/  sql-bench/

Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

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



Re: [PHP] Upgrade

2007-09-21 Thread Zoltán Németh
2007. 09. 21, péntek keltezéssel 08.16-kor Ed Curtis ezt írta:
 I'm currently running Debian Woody with PHP 4.1.2 installed by default. 
 It's really stable and I like it alot. Would I run into any problems 
 upgrading it to say 4.3.0. There are some functions I need in it that 
 4.1.2 doesn't have. I'm not ready to make the jump to PHP5 yet. I've 
 tried it on a test server and have run into a couple of problems with 
 the upgrade.

I really don't think you should upgrade to 4.3.0 instead of going php5.
All versions of php4 are discontinued from the end of this year, see
php.net
If you insist on 4.3.0, I don't know of any problems with upgrading to
it, but pay attention to all the extensions - upgrade them also if
needed, etc...

greets
Zoltán Németh

 
 Thanks,
 
 Ed
 

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



Re: [PHP] Upgrade

2007-09-21 Thread Ben
It really depends on your situation. 
We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of 
sites will have trouble. 
Personally I have some problem of upgrading from 4 to 5. 

The below codes work on 4:

include(DB/DataObjects.php);
$pro = DB_DataObject::factory('Product');
$pro-find();
while($pro-fetch())
   $allPro[] = $pro;  

But on 5, it has to be modified to
include(DB/DataObjects.php);
$pro = DB_DataObject::factory('Product');
$pro-find();
while($pro-fetch())
   $allPro[] = clone $pro;  

The above is only an example. So upgrading to 5 is not an option for us.

--
Ben
Web Design Shropshire, Software programing
http://www.sparkcomputing.co.uk

On Friday 21 Sep 2007 13:43, Zoltán Németh wrote:
 2007. 09. 21, péntek keltezéssel 08.16-kor Ed Curtis ezt írta:
  I'm currently running Debian Woody with PHP 4.1.2 installed by default. 
  It's really stable and I like it alot. Would I run into any problems 
  upgrading it to say 4.3.0. There are some functions I need in it that 
  4.1.2 doesn't have. I'm not ready to make the jump to PHP5 yet. I've 
  tried it on a test server and have run into a couple of problems with 
  the upgrade.
 
 I really don't think you should upgrade to 4.3.0 instead of going php5.
 All versions of php4 are discontinued from the end of this year, see
 php.net
 If you insist on 4.3.0, I don't know of any problems with upgrading to
 it, but pay attention to all the extensions - upgrade them also if
 needed, etc...
 
 greets
 Zoltán Németh
 
  
  Thanks,
  
  Ed
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 

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



Re: [PHP] Upgrade

2007-09-21 Thread Robert Cummings
On Fri, 2007-09-21 at 16:18 +0100, Ben wrote:
 It really depends on your situation. 
 We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of 
 sites will have trouble. 
 Personally I have some problem of upgrading from 4 to 5. 
 
 The below codes work on 4:
 
 include(DB/DataObjects.php);
 $pro = DB_DataObject::factory('Product');
 $pro-find();
 while($pro-fetch())
$allPro[] = $pro;  
 
 But on 5, it has to be modified to
 include(DB/DataObjects.php);
 $pro = DB_DataObject::factory('Product');
 $pro-find();
 while($pro-fetch())
$allPro[] = clone $pro;  
 
 The above is only an example. So upgrading to 5 is not an option for us.

You might want to start a migration path for your code in the near
future. i would suggest something like the following:

?php

# File: myLib.php

function myClone( $someObject )
{
static $init = true;

if( $init )
{
if( (int)phpversion()  5 )
{
require_once( 'php4Compat.php' );
}
else
{
require_once( 'php5Compat.php' );
}
}

$clone = compat_myClone( $someObject );
return $clone;
}

# File: php4Compat.php

function compat_myClone( $someObject )
{
$clone = $someObject;
return $clone;
}

# File: php5Compat.php

function compat_myClone( $someObject )
{
$clone = clone $someObject;
return $clone;
}

?

This way you can still use PHP4 while providing the necessary changes
for PHP5 before fully switching over.

Cheers,
Rob.

Ps. I used references so PHP4 wouldn't create copies at every
function call :)
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

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



Re: [PHP] Upgrade

2007-09-21 Thread Ed Curtis

Ben wrote:
It really depends on your situation. 
We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of 
sites will have trouble. 
Personally I have some problem of upgrading from 4 to 5. 


The below codes work on 4:

include(DB/DataObjects.php);
$pro = DB_DataObject::factory('Product');
$pro-find();
while($pro-fetch())
   $allPro[] = $pro;  


But on 5, it has to be modified to
include(DB/DataObjects.php);
$pro = DB_DataObject::factory('Product');
$pro-find();
while($pro-fetch())
   $allPro[] = clone $pro;  


The above is only an example. So upgrading to 5 is not an option for us.

--
Ben
Web Design Shropshire, Software programing
http://www.sparkcomputing.co.uk

  
Thanks, I did find a way to do what I needed to do and not have to 
upgrade. There are more system calls but it won't be used often enough 
to worry about.


Ed

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



Re: [PHP] Upgrade

2007-09-21 Thread Nathan Nobbe
On 9/21/07, Robert Cummings [EMAIL PROTECTED] wrote:

 Ps. I used references so PHP4 wouldn't create copies at every
 function call :)



i noticed the previously posted php4 code was doing a lot of copy
operations.
perhaps thats the only reason the code is actually working under 4 and the
clone keyword needed to be used in 5 (didnt look into it too much tho).
i always use the = construct when assigning object references in php4.
this is another one of the sore spots i have for php4.  the reason being
php4
requires developers to use the = construct so that a copy is not created.
i like to think the people i work w/ are competent, but less face it, in
large systems
w/ lots of developers, its hard to ensure = is always being used.
in fact, in php4 singletons break if = is not used.  that makes singleton
in php4
very delicate.

-nathan


[PHP] Re: PHP Upgrade: 5 or 6

2007-03-28 Thread itoctopus
I'm migrating my company to PHP 5 (from PHP4) now. I've played with PHP6 a
while ago and the only thing I can remember about it is that it obsoletes a
not so few functions and has a stricter coding rules.

--
itoctopus - http://www.itoctopus.com
Davi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 Hi all.

 I've reading on some sites [1,2] that PHP 6 is comming soon...

 What should I do?
 Migrate my server and apps to PHP 5 now and, later to PHP 6, or wait some
more
 time and migrate all to PHP 6?

 TIA

 --
 Davi Vidal
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 --

 Agora com fortune:
 The main thing is the play itself.  I swear that greed for money has
nothing
 to do with it, although heaven knows I am sorely in need of money.
 - Feodor Dostoyevsky

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



Re: [PHP] Upgrade to PHP5 on Fedora Core

2006-06-15 Thread nicolas figaro

Dave M G a écrit :

PHP List,

My hosting service allows me enough access to do things like handle my 
own upgrades and full administrative access. Usually, because I am 
more of a web designer than an server administrator, I get their 
support staff to manage upgrades and installations.


However, that does cost money, so I thought this time, if it's easy 
enough, I would try upgrading PHP myself. Currently my hosting service 
is running PHP Version 4.4.2, and I would like to upgrade to the 
latest stable build of PHP 5.



what happens if your upgrade doesn't work ?
At home, I use Ubuntu LTS, and to upgrade to PHP 5 I just used apt-get 
(with the Synaptic GUI) to upgrade. It was very easy.


The hosting machine is using Fedora Core 1. I'm less familiar with Red 
Hat systems, but I do understand that yum is the equivalent of apt-get.



you can find apt packets for RedHat FC1

So, I'm hoping I can just do:

yum install php5

... and be off and running.

But because I don't really want to suffer any downtime, I hoped to get 
confirmation here on this list that this will work, and check if I 
need any other configuration options.



there are also some differences between php 4.2.2 and 5.x.y.
could you try to set up another apache that will use your php5, so you 
can do the basic tests before upgrading ?


you can set up another apache server to listen to another port, so the 
switch to the latest version is easy,

and the switch back in case of an error with php5 is also easy.

do you have any http backup server ?
do you have backups of your http server (if there is no http backup 
server).
If it makes a difference, I'm also running MySQL 5.0 on the system, 
and Apache 2.


Is there anything else I need to know for a smooth upgrade to PHP 5?

Did you ask the hosting service guys for how they manage php upgrades ? 
(I know they won't give you infos you paid for easily).


hope this'll help
N F

--
Dave M G



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



Re: [PHP] Upgrade problems PHP 5.1.4 (Windows)

2006-05-22 Thread Chris

Beauford wrote:

Hi,

I just upgraded to PHP 5.1.4 and now none of my sites will connect to MySQL.
I keep getting the error:

Fatal error: Call to undefined function mysql_connect()

I enabled php_mysql.dll in php.ini as one article suggested, but still no
go. 


Firstly does the php_mysql.dll file exist in the php\extensions folder?

Did you restart your webserver?

I'm guessing the windows version of php has two different mysql dll's - 
if it does, did you enable php_mysql.dll or php_mysqli.dll ? mysqli.dll 
uses mysqli functions (http://www.php.net/mysqli) not the regular mysql 
functions.


If it doesn't come with two dll's, then ignore that part ;) I'm too lazy 
to download it and check.


Maybe this page would help.. 
http://www.php.net/manual/en/install.windows.manual.php


--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Upgrade problems PHP 5.1.4 (Windows)

2006-05-22 Thread Tony Aldrich

I've understood, it's Windows.
If you added root php directory to Path environment variable it sometimes
does not take effect until you restart Windows. (???May be it's cached
somewhere?)
And don't forget to change in php.ini Extension Directory to ./ext or where
all extension dll's are placed.

Tony.

On 5/23/06, Beauford [EMAIL PROTECTED] wrote:


Hi,

I just upgraded to PHP 5.1.4 and now none of my sites will connect to
MySQL.
I keep getting the error:

Fatal error: Call to undefined function mysql_connect()

I enabled php_mysql.dll in php.ini as one article suggested, but still no
go.

Any suggestions?

Thanks

Beauford

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




RE: [PHP] Upgrade question

2005-02-27 Thread Mikey
 Does PHP 4.3.10 have any specific dependencies that might not 
 be found on a RH Linux 7.1 server currently running PHP 4.0.6?

Do you think you could be more descriptive with your problem?  What is
currently failing when you try to build PHP?  Have you looked at the
configure command as shown by phpinfo from your current build to find any
libraries in non-standard places?  Do you have dev versions of the libraries
installed?

 Please reply to news group only.

That is generally what happens with new groups.

 P.S. Very disappointed that this newsgroup does not allow 
 posting with anonymous email addresses. The *INSTANT* I 
 receive my first piece of spam to this address, I'm history.

That will be your loss.

HTH,

Mikey

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



Re: [PHP] Upgrade question

2005-02-27 Thread SurfSafely

Mikey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
  Does PHP 4.3.10 have any specific dependencies that might not
  be found on a RH Linux 7.1 server currently running PHP 4.0.6?

 Do you think you could be more descriptive with your problem?  What is
 currently failing when you try to build PHP?  Have you looked at the
 configure command as shown by phpinfo from your current build to find any
 libraries in non-standard places?  Do you have dev versions of the
libraries
 installed?

Not having any problem per se. I know that I definitely need to upgrade from
4.0.6. Aps I'm trying to install call for at least 4.2.1. I figure that it's
best to upgrade to the latest of the 4.x series to avoid future hassles. I'm
just always a little concerned about making any upgrades to a mission
critical server and was wondering if anyone has had experience with
upgrading using my specific versions. Server is Rackspace dedicated, Apache
1.3.22. Not sure how you define non-standard for lib locations. They are
clearly shown by phpinfo though. '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' To migrate I would build using all the exact
same settings.

If it fails to install correctly, does it leave the previous version
unaltered?

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



Re: [PHP] Upgrade question

2005-02-27 Thread Vidyut Luther
If you installed PHP from the Redhat RPMs, you may want to see if the
fedoralegacy project has a newer RPM for your distribution.
Otherwise, you're somewhat on your own. What I would do is, run phpinfo,
it will output the configure options used to build PHP, copy those and then
run them on your 4.3.10 directory, you'll know if something breaks, if
it doesn't you'll install like you wanted to.

Technically, since you are at Rackspace, you should be able to tell your
support team to upgrade it for you. I think thats what the managed
part is for.



SurfSafely wrote:

Mikey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
  

Does PHP 4.3.10 have any specific dependencies that might not
be found on a RH Linux 7.1 server currently running PHP 4.0.6?
  

Do you think you could be more descriptive with your problem?  What is
currently failing when you try to build PHP?  Have you looked at the
configure command as shown by phpinfo from your current build to find any
libraries in non-standard places?  Do you have dev versions of the


libraries
  

installed?



Not having any problem per se. I know that I definitely need to upgrade from
4.0.6. Aps I'm trying to install call for at least 4.2.1. I figure that it's
best to upgrade to the latest of the 4.x series to avoid future hassles. I'm
just always a little concerned about making any upgrades to a mission
critical server and was wondering if anyone has had experience with
upgrading using my specific versions. Server is Rackspace dedicated, Apache
1.3.22. Not sure how you define non-standard for lib locations. They are
clearly shown by phpinfo though. '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' To migrate I would build using all the exact
same settings.

If it fails to install correctly, does it leave the previous version
unaltered?

  


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



Re: [PHP] Upgrade question

2005-02-27 Thread SurfSafely
Rackspace will only support 7.1 up to the point where RPMs hit eol.
Translation: They stopped supporting 7.1. Because Rackspace donates the
server for SurfSafely.com, telling my support team would be a bit harsh.
Asking is what I do and they're still deliberating. While they deliberate,
here is what I discovered.

Running ./configure with the original options from phpinfo, I ran into three
dependencies, ONE AT A TIME.  1) For some reason it couldn't find BZip2 even
though support for it is enabled. Upgraded to 1.0.2.  2) ./configure again
and it reported it needs cURL 7.9.8 or higher. Mine was 7.8.0 so I upgraded
to 7.13.0.  3) Lastly it wanted to see pspell. Again, .11.1 was already
installed and enabled but configure couldn't see it at all. I upgraded to
.12.2.

This time success upgrading to PHP 4.3.10!  Full stop then start to Apache,
eh voi la!

Now I can finally move on to *WHY* I needed the PHP upgrade in the first
place, to upgrade other software packages that wouldn't budge without it.
Aren't dependencies fun?

Thanks to all who responded.

Vidyut Luther wrote in message news:[EMAIL PROTECTED]
 If you installed PHP from the Redhat RPMs, you may want to see if the
 fedoralegacy project has a newer RPM for your distribution.
 Otherwise, you're somewhat on your own. What I would do is, run phpinfo,
 it will output the configure options used to build PHP, copy those and
then
 run them on your 4.3.10 directory, you'll know if something breaks, if
 it doesn't you'll install like you wanted to.

 Technically, since you are at Rackspace, you should be able to tell your
 support team to upgrade it for you. I think thats what the managed
 part is for.



 SurfSafely wrote:

 Mikey wrote in message
 news:[EMAIL PROTECTED]
 
 
 Does PHP 4.3.10 have any specific dependencies that might not
 be found on a RH Linux 7.1 server currently running PHP 4.0.6?
 
 
 Do you think you could be more descriptive with your problem?  What is
 currently failing when you try to build PHP?  Have you looked at the
 configure command as shown by phpinfo from your current build to find
any
 libraries in non-standard places?  Do you have dev versions of the
 
 
 libraries
 
 
 installed?
 
 
 
 Not having any problem per se. I know that I definitely need to upgrade
from
 4.0.6. Aps I'm trying to install call for at least 4.2.1. I figure that
it's
 best to upgrade to the latest of the 4.x series to avoid future hassles.
I'm
 just always a little concerned about making any upgrades to a mission
 critical server and was wondering if anyone has had experience with
 upgrading using my specific versions. Server is Rackspace dedicated,
Apache
 1.3.22. Not sure how you define non-standard for lib locations. They
are
 clearly shown by phpinfo though. '--libdir=/usr/lib'
 '--libexecdir=/usr/libexec' To migrate I would build using all the exact
 same settings.
 
 If it fails to install correctly, does it leave the previous version
 unaltered?
 
 
 

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



RE: [PHP] Upgrade PHP 4.3.4 to PHP 5.0.3 (Windows 2k IIS5), I recieve a Blank Page and Session errors

2005-02-11 Thread Fabian I. Cuesta
The $_SESSION['sitedoc'] was not initialized because I use
$_SERVER[PATH_TRANSLATED] to make the requires for diffrent files. In
these file I initialized this $_SESSION varibales. I already took care for
this ploblem (in PHP5 you have to replace it for ORIG_PATH_TRANSLATED).
But I still have the blank page, with no error or wrnings.
The only thing that look strange is that the session files in sessiondata
are beeing created empty.
Do u know what can it be?
Thanks a lot

Fabian

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 09 de Febrero de 2005 06:01 p.m.
To: Fabian I. Cuesta
Cc: php-general@lists.php.net
Subject: Re: [PHP] Upgrade PHP 4.3.4 to PHP 5.0.3 (Windows 2k  IIS5), I
recieve a Blank Page and Session errors


Fabian I. Cuesta wrote:
 Hi, I'm trying to upgrade the PHP version of my dev enviroment.
 After installing PHP5 I've just recieve a blank page. I activated the
 error
 log of PHP and recieve a couple of errors like this one:

 [09-Feb-2005 13:38:20] PHP Notice: Undefined index: sitedesc in
 c:\Inetpub\wwwroot\Inpae\admin\lib\headerFooter.php on line 40

 All related to $_SESSION, like the values are not set (sitedesc is one of
 the indexes of the variable $_SESSION)

But when you first start a session, a totally NEW session, is
$_SESSION['sitedoc'] initialized?

I assume not.

Your problem code looks something like this:
?php
  session_start();
  if ($_SESSION['sitedoc']){
//whatever;
  }
?

PHP is notifying you that there is NO session index named 'sitedoc' yet,
but you're trying to read it and use the value -- the value that doesn't
exist.

You'll need to get in the habit of writing (and re-writing) code like this:
?php
  session_start();
  if (isset($_SESSION['sitedoc'])  $_SESSION['sitedoc']){
//whatever
  }
?

You may also re-structure your code a bit if 'sitedoc' can take on several
values, so it ends up being more like:
?php
  session_start();
  if (isset($_SESSION['sitedoc'])){
if ($_SESSION['sitedoc'] == 'whatever'){
}
elseif ($_SESSION['sitedocd'] == 'something else'){
}
  }
?

The point is that you shouldn't be reading session variables that were
never set to any value at all in the first place.

Sure, PHP will initialize them to 0 or '' or false, but the point here is
to catch typos where you have:
  if ($_SESSION['sietdoc']){
  }
  else{
  }

If you RARELY expect 'sitedoc' to be a TRUE value, and you don't do a lot
of unit testing, a typo bug like this could go undetected for a long
time.

The PHP Notice warns you about things like this by not notifying you when
you try to read a variable that hasn't been set.

 Notice: C:\Inetpub\wwwroot\Inpae\lib\include.php line 15 - Undefined
 index:
 SCRIPT_NAME
 Notice: C:\Inetpub\wwwroot\Inpae\lib\include.php line 15 - Undefined
 index:
 PATH_TRANSLATED

See above.

 Debug Warning: C:\Inetpub\wwwroot\Inpae\lib\include.php line 3 -
 main(/config.php) [a href='function.main'function.main/a]: failed to
 open stream: No such file or directory
 Compile Error: C:\Inetpub\wwwroot\Inpae\lib\include.php line 3 - main()
 [a
 href='function.require'function.require/a]: Failed opening required
 '/config.php' (include_path='.;c:\php5\pear')

config.php is not in the same directory as your script, nor in the PEAR
library.  It is, probably, in Inpae\lib\ and you need to change your
include_path setting in .htaccess or in the script or somewhere to have
that directory in your include path.

--
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] Upgrade PHP 4.3.4 to PHP 5.0.3 (Windows 2k IIS5), I recieve a Blank Page and Session errors

2005-02-09 Thread Richard Lynch
Fabian I. Cuesta wrote:
 Hi, I'm trying to upgrade the PHP version of my dev enviroment.
 After installing PHP5 I've just recieve a blank page. I activated the
 error
 log of PHP and recieve a couple of errors like this one:

 [09-Feb-2005 13:38:20] PHP Notice: Undefined index: sitedesc in
 c:\Inetpub\wwwroot\Inpae\admin\lib\headerFooter.php on line 40

 All related to $_SESSION, like the values are not set (sitedesc is one of
 the indexes of the variable $_SESSION)

But when you first start a session, a totally NEW session, is
$_SESSION['sitedoc'] initialized?

I assume not.

Your problem code looks something like this:
?php
  session_start();
  if ($_SESSION['sitedoc']){
//whatever;
  }
?

PHP is notifying you that there is NO session index named 'sitedoc' yet,
but you're trying to read it and use the value -- the value that doesn't
exist.

You'll need to get in the habit of writing (and re-writing) code like this:
?php
  session_start();
  if (isset($_SESSION['sitedoc'])  $_SESSION['sitedoc']){
//whatever
  }
?

You may also re-structure your code a bit if 'sitedoc' can take on several
values, so it ends up being more like:
?php
  session_start();
  if (isset($_SESSION['sitedoc'])){
if ($_SESSION['sitedoc'] == 'whatever'){
}
elseif ($_SESSION['sitedocd'] == 'something else'){
}
  }
?

The point is that you shouldn't be reading session variables that were
never set to any value at all in the first place.

Sure, PHP will initialize them to 0 or '' or false, but the point here is
to catch typos where you have:
  if ($_SESSION['sietdoc']){
  }
  else{
  }

If you RARELY expect 'sitedoc' to be a TRUE value, and you don't do a lot
of unit testing, a typo bug like this could go undetected for a long
time.

The PHP Notice warns you about things like this by not notifying you when
you try to read a variable that hasn't been set.

 Notice: C:\Inetpub\wwwroot\Inpae\lib\include.php line 15 - Undefined
 index:
 SCRIPT_NAME
 Notice: C:\Inetpub\wwwroot\Inpae\lib\include.php line 15 - Undefined
 index:
 PATH_TRANSLATED

See above.

 Debug Warning: C:\Inetpub\wwwroot\Inpae\lib\include.php line 3 -
 main(/config.php) [a href='function.main'function.main/a]: failed to
 open stream: No such file or directory
 Compile Error: C:\Inetpub\wwwroot\Inpae\lib\include.php line 3 - main()
 [a
 href='function.require'function.require/a]: Failed opening required
 '/config.php' (include_path='.;c:\php5\pear')

config.php is not in the same directory as your script, nor in the PEAR
library.  It is, probably, in Inpae\lib\ and you need to change your
include_path setting in .htaccess or in the script or somewhere to have
that directory in your include path.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] Upgrade PHP 4 to 5

2004-11-21 Thread Richard Davey
Hello Sandy,

Sunday, November 21, 2004, 6:37:43 PM, you wrote:

SK We started a new server at work.  The hosting company was 
SK supposed to put PHP 5 on it, but did 4 instead.  I would like to 
SK upgrade it before it goes into service, but the instructions in the
SK PHP5 tarball look difficult.  I'm not familiar with the emerge. The
SK server is Linux RH9 with Apache 2.0.

SK Does anyone know a link to better instructions for this upgrade?

The ones on the php.net web site are pretty comprehensive. I wouldn't
think of it as an Upgrade either, it's more a replacement - an install
from scratch if you like.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 I am not young enough to know everything. - Oscar Wilde

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



Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-13 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]:
 Anyone have any good advice for an upgrade strategy from php4.3.6 to
 php5.0.1?  I have a MAC OSX 10.3.5 system that I use for my test machine and
 an Open BSD system for my production machine.  The production machine is
 also semi-managed hosting system (virtual server).  Can I expect my current
 4.3.6 code to run on php5?

In most cases yes.  PHP5 was designed to be as backward compatible
to PHP4 as much as possible.

You may need to make some minor adjustments but the upgrade should
go rather smoothly.  When testing the upgrade, make sure your
error_reporting is E_ALL.

And be sure to read this:

  http://php.net/migration5


Curt
-- 
The above comments may offend you. flame at will.

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



Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread Robert Cummings
On Sat, 2004-09-11 at 19:35, [EMAIL PROTECTED] wrote:
 Anyone have any good advice for an upgrade strategy from php4.3.6 to
 php5.0.1?  I have a MAC OSX 10.3.5 system that I use for my test machine and
 an Open BSD system for my production machine.  The production machine is
 also semi-managed hosting system (virtual server).  Can I expect my current
 4.3.6 code to run on php5?

Try running it under php5... where you encounter errors... fix errors :)

Cheers,
Rob.
-- 
.-.
| Worlds of Carnage - http://www.wocmud.org   |
:-:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the  |
| stuff of nightmares grasp for your soul.|
`-'

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



Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread Tim Best
:-P duh...  

Wasn't sure if php4 code would run under php5.

From the sounds of your response, I guess it will process 4.3.x code...

/T


on 9/11/04 18:47, Robert Cummings at [EMAIL PROTECTED] wrote:

 On Sat, 2004-09-11 at 19:35, [EMAIL PROTECTED] wrote:
 Anyone have any good advice for an upgrade strategy from php4.3.6 to
 php5.0.1?  I have a MAC OSX 10.3.5 system that I use for my test machine and
 an Open BSD system for my production machine.  The production machine is
 also semi-managed hosting system (virtual server).  Can I expect my current
 4.3.6 code to run on php5?
 
 Try running it under php5... where you encounter errors... fix errors :)
 
 Cheers,
 Rob.

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



Re: [PHP] Upgrade from 4.3.6 to 5; strategy

2004-09-11 Thread Robert Cummings
On Sat, 2004-09-11 at 22:43, Tim Best wrote:
 :-P duh...  
 
 Wasn't sure if php4 code would run under php5.
 
 From the sounds of your response, I guess it will process 4.3.x code...

For the most part you should get very few errors. You will probably get
a lot of warnings, but they will probably be of a couple of varieties
related to deprecated stuff.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
from source, and although the compile went well, I'm having problems getting
modules installed into PHP.  For example, when using phpinfo(), I am told
that GD is installed, but trying to use GD functions won't work.  What now,
guys?

Will

-Original Message-
From: Support [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 01, 2004 10:11 PM
To: Will Collins; [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.

IMHO: Although handy for some things, I still can't figure out why people
put up with rpms. :-)

What I finally did is use rpm to uninstall php, apache, and mysql. I also
followed dependencies and deleted them as well.

This approach is not really a great idea if you're not used to building from
source, but I have my own idea of where I like things to go so this works
for me. Usually /usr/local is a good choice for installing.

Since mysql and apache both come with their own start up scripts using
chckconfig to add them to the system is about as easy as it gets.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

- Original Message - 
From: Will Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 8:03 PM
Subject: [PHP] Upgrade PHP?


 I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
 tried simply making the 4.3.8 from source, but RedHat didn't use the
default
 PHP folder structure is seems, since there has been no change in my PHP
 version.  I also tried the ./configure string returned by 'phpinfo()'
 (assuming that the correct path info was included) with no luck.  Does
 anyone have any tips on an easier way to upgrade?



 Thanks,

 Will



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

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



RE: [PHP] Upgrade PHP?

2004-08-02 Thread bruce
provide us with a copy of the attributes you used when you compiled...

ie ./configure --attributeA --ldapetc...


-Original Message-
From: Will Collins [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Upgrade PHP?


Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
from source, and although the compile went well, I'm having problems getting
modules installed into PHP.  For example, when using phpinfo(), I am told
that GD is installed, but trying to use GD functions won't work.  What now,
guys?

Will

-Original Message-
From: Support [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 10:11 PM
To: Will Collins; [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.

IMHO: Although handy for some things, I still can't figure out why people
put up with rpms. :-)

What I finally did is use rpm to uninstall php, apache, and mysql. I also
followed dependencies and deleted them as well.

This approach is not really a great idea if you're not used to building from
source, but I have my own idea of where I like things to go so this works
for me. Usually /usr/local is a good choice for installing.

Since mysql and apache both come with their own start up scripts using
chckconfig to add them to the system is about as easy as it gets.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

- Original Message -
From: Will Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 8:03 PM
Subject: [PHP] Upgrade PHP?


 I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
 tried simply making the 4.3.8 from source, but RedHat didn't use the
default
 PHP folder structure is seems, since there has been no change in my PHP
 version.  I also tried the ./configure string returned by 'phpinfo()'
 (assuming that the correct path info was included) with no luck.  Does
 anyone have any tips on an easier way to upgrade?



 Thanks,

 Will



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

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

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



RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
To test it, I used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd
--with-zlib-dir=/usr/include

-Original Message-
From: bruce [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 3:39 PM
To: 'Will Collins'; [EMAIL PROTECTED]
Subject: RE: [PHP] Upgrade PHP?

provide us with a copy of the attributes you used when you compiled...

ie ./configure --attributeA --ldapetc...

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



Re: [PHP] Upgrade PHP?

2004-08-02 Thread Jason Wong
On Tuesday 03 August 2004 03:21, Will Collins wrote:
 Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
 from source, and although the compile went well, I'm having problems
 getting modules installed into PHP.  For example, when using phpinfo(), I
 am told that GD is installed, but trying to use GD functions won't work. 
 What now, guys?

What does won't work mean exactly?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All newspaper editorial writers ever do is come down from the hills after
the battle is over and shoot the wounded.
*/

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



RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
Won't work:

Fatal error: Call to undefined function: imagecreatefromjpeg()

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

On Tuesday 03 August 2004 03:21, Will Collins wrote:
 Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
 from source, and although the compile went well, I'm having problems
 getting modules installed into PHP.  For example, when using phpinfo(), I
 am told that GD is installed, but trying to use GD functions won't work. 
 What now, guys?

What does won't work mean exactly?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All newspaper editorial writers ever do is come down from the hills after
the battle is over and shoot the wounded.
*/

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

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



Re: [PHP] Upgrade PHP?

2004-08-02 Thread Jason Wong
On Tuesday 03 August 2004 07:42, Will Collins wrote:
 Won't work:

 Fatal error: Call to undefined function: imagecreatefromjpeg()

 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd
 --with-zlib-dir=/usr/include

Read

  manual  Image Functions

to see how to get jpeg (and other) support.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
NOTICE:

-- THE ELEVATORS WILL BE OUT OF ORDER TODAY --

(The nearest working elevator is in the building across the street.)
*/

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



RE: [PHP] Upgrade PHP? [SOLVED]

2004-08-02 Thread Will Collins
Yeah, actually, you were right.  I must have misunderstood the instructions
- probably because of the press for time, reading too quickly.  I wasn't
using --with-jpeg-dir, etc.  Sorry for the mess, and thanks for all the
help.  At least some good came out of this -- I now have a working Slackware
installation (after the headaches, I decided to install Slackware 10 on my
unused server and compile everything from source to see if I could get it to
work).  Thanks for your time everybody.

Will

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 10:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

On Tuesday 03 August 2004 07:42, Will Collins wrote:
 Won't work:

 Fatal error: Call to undefined function: imagecreatefromjpeg()

 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-gd
 --with-zlib-dir=/usr/include

Read

  manual  Image Functions

to see how to get jpeg (and other) support.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
NOTICE:

-- THE ELEVATORS WILL BE OUT OF ORDER TODAY --

(The nearest working elevator is in the building across the street.)
*/

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

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



RE: [PHP] Upgrade PHP?

2004-08-01 Thread bruce
i've successfully built php5 on rh8 with no issues...

if you search through the achives of this mailing list you'll see what i
did. look for mysqli/php.

what issues are you haveing when you build from source...???

let us know, and i'm sure someone can help



-Original Message-
From: Will Collins [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 6:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Upgrade PHP?


I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
tried simply making the 4.3.8 from source, but RedHat didn't use the default
PHP folder structure is seems, since there has been no change in my PHP
version.  I also tried the ./configure string returned by 'phpinfo()'
(assuming that the correct path info was included) with no luck.  Does
anyone have any tips on an easier way to upgrade?



Thanks,

Will

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



Re: [PHP] Upgrade PHP?

2004-08-01 Thread Curt Zirzow
* Thus wrote Will Collins:
 I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
 tried simply making the 4.3.8 from source, but RedHat didn't use the default
 PHP folder structure is seems, since there has been no change in my PHP
 version.  I also tried the ./configure string returned by 'phpinfo()'
 (assuming that the correct path info was included) with no luck.  Does
 anyone have any tips on an easier way to upgrade?

I'm assuming that the 4.2.2 was installed from an rpm.

If you notice, the 4.2.2 configure string probably has like 3000
different options set. The problem is that when the rpm was built
and bundled, it was on a system that had all the 'devel' rpm's
installed.  The 'devel' rpm's usually contain's all the files
needed to detect and compile with php.

One option is to install all the devel rpms that are dependent on
php to be configured with all those options. 

The other option would involve bringing your system out of the
dependency of RPM's, I wouldn't suggest that unless your very
comfortable with RH's system.

The last one, and perhaps the best solution, is to scratch that
system and build a new one with a more current OS.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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



Re: [PHP] Upgrade PHP?

2004-08-01 Thread Support
I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.

IMHO: Although handy for some things, I still can't figure out why people
put up with rpms. :-)

What I finally did is use rpm to uninstall php, apache, and mysql. I also
followed dependencies and deleted them as well.

This approach is not really a great idea if you're not used to building from
source, but I have my own idea of where I like things to go so this works
for me. Usually /usr/local is a good choice for installing.

Since mysql and apache both come with their own start up scripts using
chckconfig to add them to the system is about as easy as it gets.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

- Original Message - 
From: Will Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 01, 2004 8:03 PM
Subject: [PHP] Upgrade PHP?


 I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
 tried simply making the 4.3.8 from source, but RedHat didn't use the
default
 PHP folder structure is seems, since there has been no change in my PHP
 version.  I also tried the ./configure string returned by 'phpinfo()'
 (assuming that the correct path info was included) with no luck.  Does
 anyone have any tips on an easier way to upgrade?



 Thanks,

 Will



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



Re: [PHP] upgrade questions?

2004-04-08 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 09 Apr 2004 02:15, Wikie wrote:
 How to upgrade php form version 4.2.2 to 4.3.5??
 Thanks

Why, that depends. ;)  If your using a distro-based OS (say Red Hat Linux) 
fetch the RPM's using up2date (or download them from ftp.redhat.com).  It 
really depends what OS your using.

See the manual at http://www.php.net/manual/en/

Elfyn

- -- 
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/

PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

When I say something, I put my name next to it. -- Isaac Jaffee

 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
 ~  Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux  ~ 
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAdhb9aIgMKkVlSLQRAtnVAJ49X2xcIBPnmRZCIKxYe7QSfHPAaQCdFb6H
YKxblycE9HnIVvfLJiek8/k=
=FLwE
-END PGP SIGNATURE-

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



Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-24 Thread Greg Beaver
Hi,

phpDocumentor is fully 30% faster (version 1.0.0, 1.1.0, 1.2.0beta2, cvs
head) in PHP 4.3.0 than in PHP 4.2.3 on both linux and windows.

The backend for my website is not noticeably faster or slower in PHP
4.3.0/4.2.3 and contains a good deal of database access to mysql.

Greg
--
phpDocumentor
http://www.phpdoc.org

Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Yes, I have noticed some performance issues as well, but we need to nail
 it down better before we can start really going after this.  Could we call
 on the collective masses of php-general users to run some benchmark tests?

 Just build yourselves a libphp4.so for both 4.2.x and 4.3.x and switch the
 LoadModule line back and forth to benchmark the two versions.  Then use
 something like http_load (http://www.acme.com/software/http_load/) to
 check various simple scripts.  We need to figure out if this is an
 across-the-board performance problem or if it is one particular aspect
 which has slowed down.

 -Rasmus

 On Sat, 22 Feb 2003, Jason k Larson wrote:

  I'm betting this is related...
 
  I upgraded to 4.3.0 on my production linux servers and began to have
  serious socket connection issues.  Rolling back to 4.2.3 cleared
  everything up.  I also saw an increase in script execution times with
  4.3.0, which became much better using 4.2.3.  I noticed some very
  strange behavior which leads me to believe 4.3.0 is not stable, and
  shouldn't be used in a production environment.
 
  So, all I can suggest for now is to determine what it is you need, and
  if a newer version of PHP will suit, go for it.  But stay away from
  4.3.0 and 4.3.1 (which I've read up on and hasn't addressed any of these
issues).
 
  Regards,
  Jason k Larson
 
 
  Rhett Livingston wrote:
   I upgraded my development system from PHP 4.1.2 to PHP 4.3.0 last week
and
   the performance of my scripts took a dive.  Specifically, the average
time
   to parse my scripts (time from executing first line of code to
executing
   first line after includes) went from about 100ms to about 200ms, and,
very
   oddly, my times to connect to an Oracle database also went up by about
the
   same margin.
  
   Switching back to 4.1.2 clears the problem back up.
  
   What changed between 4.1.2 and 4.3.0 that could cause this?  File IO
stuff
   perhaps?  Any ideas to solve it?
  
   Thanks,
   Rhett Livingston
  
   I'm running WinXP Pro, IIS, PHP as a CGI, and Oracle 9.2.
  
  
  
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 



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



Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-22 Thread Jason k Larson
I'm betting this is related...

I upgraded to 4.3.0 on my production linux servers and began to have 
serious socket connection issues.  Rolling back to 4.2.3 cleared 
everything up.  I also saw an increase in script execution times with 
4.3.0, which became much better using 4.2.3.  I noticed some very 
strange behavior which leads me to believe 4.3.0 is not stable, and 
shouldn't be used in a production environment.

So, all I can suggest for now is to determine what it is you need, and 
if a newer version of PHP will suit, go for it.  But stay away from 
4.3.0 and 4.3.1 (which I've read up on and hasn't addressed any of these 
 issues).

Regards,
Jason k Larson
Rhett Livingston wrote:
I upgraded my development system from PHP 4.1.2 to PHP 4.3.0 last week and
the performance of my scripts took a dive.  Specifically, the average time
to parse my scripts (time from executing first line of code to executing
first line after includes) went from about 100ms to about 200ms, and, very
oddly, my times to connect to an Oracle database also went up by about the
same margin.
Switching back to 4.1.2 clears the problem back up.

What changed between 4.1.2 and 4.3.0 that could cause this?  File IO stuff
perhaps?  Any ideas to solve it?
Thanks,
Rhett Livingston
I'm running WinXP Pro, IIS, PHP as a CGI, and Oracle 9.2.





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


Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-22 Thread Rasmus Lerdorf
Yes, I have noticed some performance issues as well, but we need to nail
it down better before we can start really going after this.  Could we call
on the collective masses of php-general users to run some benchmark tests?

Just build yourselves a libphp4.so for both 4.2.x and 4.3.x and switch the
LoadModule line back and forth to benchmark the two versions.  Then use
something like http_load (http://www.acme.com/software/http_load/) to
check various simple scripts.  We need to figure out if this is an
across-the-board performance problem or if it is one particular aspect
which has slowed down.

-Rasmus

On Sat, 22 Feb 2003, Jason k Larson wrote:

 I'm betting this is related...

 I upgraded to 4.3.0 on my production linux servers and began to have
 serious socket connection issues.  Rolling back to 4.2.3 cleared
 everything up.  I also saw an increase in script execution times with
 4.3.0, which became much better using 4.2.3.  I noticed some very
 strange behavior which leads me to believe 4.3.0 is not stable, and
 shouldn't be used in a production environment.

 So, all I can suggest for now is to determine what it is you need, and
 if a newer version of PHP will suit, go for it.  But stay away from
 4.3.0 and 4.3.1 (which I've read up on and hasn't addressed any of these
   issues).

 Regards,
 Jason k Larson


 Rhett Livingston wrote:
  I upgraded my development system from PHP 4.1.2 to PHP 4.3.0 last week and
  the performance of my scripts took a dive.  Specifically, the average time
  to parse my scripts (time from executing first line of code to executing
  first line after includes) went from about 100ms to about 200ms, and, very
  oddly, my times to connect to an Oracle database also went up by about the
  same margin.
 
  Switching back to 4.1.2 clears the problem back up.
 
  What changed between 4.1.2 and 4.3.0 that could cause this?  File IO stuff
  perhaps?  Any ideas to solve it?
 
  Thanks,
  Rhett Livingston
 
  I'm running WinXP Pro, IIS, PHP as a CGI, and Oracle 9.2.
 
 
 



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


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



Re: [PHP] upgrade issues

2003-02-06 Thread Jason Sheets
It looks like your code is using register globals which are turned off
by default in PHP 4.2 and greater.  You can either modify your code to
use the PHP super globals or turn register globals back on (you can do
this in php.ini or via an httpd.conf/.htaccess).

Jason
On Thu, 2003-02-06 at 08:12, Brian V Bonini wrote:
 What's wrong with this snippet of code that would make it stop working
 after upgrading from 4.0.6 to 4.3.0
 
 
 ?php
 
 if (!$id) {
 include pagetop.inc.php;
 }
 if ($id == 1) {
 $title = xxx;
 include pagetop.inc.php;
 ?
 pStuff/p
 
 ?php } ?
 
 
 
 
  './configure' '--with-apxs=/usr/local/www/bin/apxs'
 '--with-config-file-path=/usr/local/www/etc' '--enable-versioning'
 '--with-system-regex' '--disable-debug' '--enable-track-vars'
 '--with-gd=/usr/local' '--with-freetype-dir=/usr/local'
 '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib'
 '--with-imap=/usr/local' '--with-mysql=/usr/local'
 '--with-imap=/usr/local' '--prefix=/usr/local/www' 'i386--freebsd4.4'
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP] Upgrade help!

2003-01-08 Thread PHP List
In case any one else needs to know:
I had to erase the rpm version of gd, gd-devel and libpng, libpng-devel The
rpm versions were 1.0.12. For some reason the configure
option -with-png-dir=../libpng-1.2.1 was using the headers from the right
dir, but somehow used the rpm version for compiling instead.  Is this a bug?
Shouldn't it use libpng-1.2.1 for everything?
Once I got rid of the rpm versions, I know longer had a problem.

- Original Message -
From: PHP List [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 4:34 PM
Subject: [PHP] Upgrade help!


Hi,
I am trying to upgrade to php4.3.0, everything works, but when I try to use
any gd image functions I get the following error:

libpng warning: Application was compiled with png.h from libpng-1.2.1
libpng warning: Application  is running with png.c from libpng-1.0.12
gd-png:  fatal libpng error: Incompatible libpng version in application and
library
[Tue Jan  7 16:30:21 2003] [notice] child pid 14014 exit signal Segmentation
fault (11)


I downloaded and installed libpng-1.2.1
I configured php with:
./configure' '--with-jpeg-dir=../jpeg-6b' '--with-mysql=/usr/'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-gd'
'--with-mcrypt=../libmcrypt-2.4.22' '--with-png-dir=../libpng-1.2.1'
'--with-zlib-dir=../zlib-1.1.3' '--enable-exif'
'--with-freetype-dir=../freetype-2.1.3'

Where is is getting the libpng-1.0.12 from? I can't find it anywhere on the
server.
I am using apache 1.3.27 on redhat 7

Thanks for any help.


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




Re: [PHP] Upgrade issues

2002-11-25 Thread @ Edwin
Hello,

Chris Knipe [EMAIL PROTECTED] wrote:

 Lo all,

 I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following
 code is generating a WARNING???


 if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) {
 $modpath = themes/$ThemeSel/;
 }

 I don't get it?

 Warning: Unable to access themes/DeepBlue/modules/News/index.php in
 /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46

 Line 46 is the if statement

If you have using a new php.ini file, perhaps you can compare it with an old
one and see if there's anything different--might give you a hint.

Or, you might want to check the manual about error reporting and see what
you can do about it:

  http://www.php.net/manual/en/function.error-reporting.php

But then again, perhaps the problem is somewhere else... (i.e. file is not
there, permissions, etc.)

HTH,

- E

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




Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
  if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) {
  $modpath = themes/$ThemeSel/;
  }
 
  I don't get it?
 
  Warning: Unable to access themes/DeepBlue/modules/News/index.php in
  /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
 
  Line 46 is the if statement

 If you have using a new php.ini file, perhaps you can compare it with an
old
 one and see if there's anything different--might give you a hint.

Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
installs the new / updated ini files as ini-dist, so hence, nothing on my
settings has changed.  I did also check to verify this, and it is indeed the
correct ini file, with the correct settings...

 But then again, perhaps the problem is somewhere else... (i.e. file is not
 there, permissions, etc.)

Yes the file does not exist.  But isn't that why file_exists() is there?

--
me


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




Re: [PHP] Upgrade issues

2002-11-25 Thread @ Edwin

Chris Knipe [EMAIL PROTECTED] wrote:

   if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) {
   $modpath = themes/$ThemeSel/;
   }
  
   I don't get it?
  
   Warning: Unable to access themes/DeepBlue/modules/News/index.php in
   /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
  
   Line 46 is the if statement
 
  If you have using a new php.ini file, perhaps you can compare it with an
 old
  one and see if there's anything different--might give you a hint.

 Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
 installs the new / updated ini files as ini-dist, so hence, nothing on my
 settings has changed.  I did also check to verify this, and it is indeed
the
 correct ini file, with the correct settings...

  But then again, perhaps the problem is somewhere else... (i.e. file is
not
  there, permissions, etc.)

 Yes the file does not exist.  But isn't that why file_exists() is there?

Right, I might be typing faster than I am thinking... :)

Still, just make sure that PHP is using the php.ini file that you think it's
using. The file that _you_ check didn't change but _php_ might be looking
somewhere else... Of course, I could be wrong--haven't used
FreeBSD/Ports--only linux.

Perhaps, somebody else knows the answer...

- E

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




Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php))
{
$modpath = themes/$ThemeSel/;
}
   
I don't get it?
   
Warning: Unable to access themes/DeepBlue/modules/News/index.php in
/usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
   
Line 46 is the if statement
  
   If you have using a new php.ini file, perhaps you can compare it with
an
  old
   one and see if there's anything different--might give you a hint.
 
  Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
  installs the new / updated ini files as ini-dist, so hence, nothing on
my
  settings has changed.  I did also check to verify this, and it is indeed
 the
  correct ini file, with the correct settings...
 
   But then again, perhaps the problem is somewhere else... (i.e. file is
 not
   there, permissions, etc.)
 
  Yes the file does not exist.  But isn't that why file_exists() is there?

 Right, I might be typing faster than I am thinking... :)

 Still, just make sure that PHP is using the php.ini file that you think
it's
 using. The file that _you_ check didn't change but _php_ might be looking
 somewhere else... Of course, I could be wrong--haven't used
 FreeBSD/Ports--only linux.

As ridiculous as this sounds...

Turning of safe mode made the warning go away.  Now, I guess the question
is, 1) is this a bug in the file_exists() function, or 2) does the default
warning levels increase when operating under safe mode?

Either way, this never happened to me before, and is only now happening
since upgrading from 4.2.1 to 4.2.2...

Rather peculiar I think...

--
me


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




Re: [PHP] Upgrade issues

2002-11-25 Thread Marek Kilimajer
Check the owners of directories and files, they must be the same as for
/usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should 
work under
safe mode too.


Chris Knipe wrote:

   if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php))
 

{
 

   $modpath = themes/$ThemeSel/;
   }

I don't get it?

Warning: Unable to access themes/DeepBlue/modules/News/index.php in
/usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46

Line 46 is the if statement
 

If you have using a new php.ini file, perhaps you can compare it with
   

an
 

old
 

one and see if there's anything different--might give you a hint.
   

Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
installs the new / updated ini files as ini-dist, so hence, nothing on
 

my
 

settings has changed.  I did also check to verify this, and it is indeed
 

the
   

correct ini file, with the correct settings...

 

But then again, perhaps the problem is somewhere else... (i.e. file is
   

not
   

there, permissions, etc.)
   

Yes the file does not exist.  But isn't that why file_exists() is there?
 

Right, I might be typing faster than I am thinking... :)

Still, just make sure that PHP is using the php.ini file that you think
   

it's
 

using. The file that _you_ check didn't change but _php_ might be looking
somewhere else... Of course, I could be wrong--haven't used
FreeBSD/Ports--only linux.
   


As ridiculous as this sounds...

Turning of safe mode made the warning go away.  Now, I guess the question
is, 1) is this a bug in the file_exists() function, or 2) does the default
warning levels increase when operating under safe mode?

Either way, this never happened to me before, and is only now happening
since upgrading from 4.2.1 to 4.2.2...

Rather peculiar I think...

--
me


 



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




Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
All files are owened by my Apache user + Group, set to rw access on files
and rwx on directories...

I do a chown + chmod on my web server's tree every few minutes via cron for
my development system.

Just to proove my point...

root@netsonic:~# ls -l
/usr/local/www/v-webs/games.savage.za.org/html/index.php
-rw-r-  1 www  www  2512 Nov 24 22:16
/usr/local/www/v-webs/games.savage.za.org/html/index.php
root@netsonic:~# cat /usr/local/etc/apache/httpd.conf|grep User
User www



- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 8:19 PM
Subject: Re: [PHP] Upgrade issues


 Check the owners of directories and files, they must be the same as for
 /usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should
 work under
 safe mode too.


 Chris Knipe wrote:

 if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php))
 
 
 {
 
 
 $modpath = themes/$ThemeSel/;
 }
 
 I don't get it?
 
 Warning: Unable to access themes/DeepBlue/modules/News/index.php in
 /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
 
 Line 46 is the if statement
 
 
 If you have using a new php.ini file, perhaps you can compare it with
 
 
 an
 
 
 old
 
 
 one and see if there's anything different--might give you a hint.
 
 
 Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
 installs the new / updated ini files as ini-dist, so hence, nothing on
 
 
 my
 
 
 settings has changed.  I did also check to verify this, and it is
indeed
 
 
 the
 
 
 correct ini file, with the correct settings...
 
 
 
 But then again, perhaps the problem is somewhere else... (i.e. file is
 
 
 not
 
 
 there, permissions, etc.)
 
 
 Yes the file does not exist.  But isn't that why file_exists() is
there?
 
 
 Right, I might be typing faster than I am thinking... :)
 
 Still, just make sure that PHP is using the php.ini file that you think
 
 
 it's
 
 
 using. The file that _you_ check didn't change but _php_ might be
looking
 somewhere else... Of course, I could be wrong--haven't used
 FreeBSD/Ports--only linux.
 
 
 
 As ridiculous as this sounds...
 
 Turning of safe mode made the warning go away.  Now, I guess the question
 is, 1) is this a bug in the file_exists() function, or 2) does the
default
 warning levels increase when operating under safe mode?
 
 Either way, this never happened to me before, and is only now happening
 since upgrading from 4.2.1 to 4.2.2...
 
 Rather peculiar I think...
 
 --
 me
 
 
 
 


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



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




Re: [PHP] upgrade problems

2002-10-12 Thread Brad Bonkoski

http://www.php.net/manual/sv/printwn/language.variables.predefined.php
-or this-
quote from the docs
In PHP 4.2.0 and later, the default value for the PHP directive register_globals
is off. This is a major change in PHP. Having
 register_globals off affects the set of predefined variables available in the
global scope. For example, to get DOCUMENT_ROOT you'll
 use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the
URL
 http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of
$HOME.
/quote


Brad Bonkoski wrote:

 This should be a FAQ!
 I would say it would point to register globals being turned off in php.ini for
 the newer versions of php.

 check this pages for more information:
 http://www.php.net/manual/en/security.registerglobals.php
 -Brad

 abw wrote:

  This week we upgraded our solaris 8 server using apache 1.3.27 from php
  4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
  most all php web pages appear, but the code does not work. For example, our
  support section heavily uses php, and nothing at all was changed on it, yet
  clicking any link takes you right back to the main page instead of the
  appropriate support page.
  Also, a customer that has a php page calling a mysql database suddently quit
  working. These all worked fine before the upgrade, and like I say, none of
  the web pages have been changed at all.
 
  I didn't find anything in the archives.
 
  Has anybody else experienced this? I assumed 4.1.2 to 4.2.3 should be a
  seamless upgrade for all web pages, but apparently not.
 
  I can't find anything helpful in the log files either.
 
  Suggestions?
 
  Aaron
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

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


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




Re: [PHP] upgrade problems

2002-10-11 Thread Brad Bonkoski

This should be a FAQ!
I would say it would point to register globals being turned off in php.ini for
the newer versions of php.

check this pages for more information:
http://www.php.net/manual/en/security.registerglobals.php
-Brad

abw wrote:

 This week we upgraded our solaris 8 server using apache 1.3.27 from php
 4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
 most all php web pages appear, but the code does not work. For example, our
 support section heavily uses php, and nothing at all was changed on it, yet
 clicking any link takes you right back to the main page instead of the
 appropriate support page.
 Also, a customer that has a php page calling a mysql database suddently quit
 working. These all worked fine before the upgrade, and like I say, none of
 the web pages have been changed at all.

 I didn't find anything in the archives.

 Has anybody else experienced this? I assumed 4.1.2 to 4.2.3 should be a
 seamless upgrade for all web pages, but apparently not.

 I can't find anything helpful in the log files either.

 Suggestions?

 Aaron

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


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




[PHP] Re: PHP UPGRADE on LINUX

2002-07-29 Thread Richard Lynch

  We have to upgrade our PHP to the latest stable version on Redhat Linux 
7.3.  We have lots of user using our PHP so what are all the precautions 
and steps involved while doing this operations without disturbing their 
existing program.

At a minimum, we gotta know what version you are *ON*...

For starters, you should *WARN* your clients of the impending upgrade.

Then *THEY* can prepare any known issues like register_globals etc.

Make 100% sure that you also keep all the extensions to PHP you already
have.  Maybe add a couple more.  Maybe upgrade the old ones while you are at
it.

You *ARE* going to install on a DEVELOPMENT box with no customers and test
first, right?

Do a backup of the PRODUCTION box before installing, of course.

Upgrade very early Monday morning so that corporate customers:
A) Don't lose a lot of stuff if you need to back off to your backup
B) Are coming in to work anyway, so any problems you've created are solvable
at their work-hours, not 4 am on a Sunday.

Most sites can be down for a few hours and just blame it on network errors
or something...  Though if there are mission-critical sites on that
server... Well, you ought to have roll-over fail-safes in the first place,
right?  Upgrade one at a time, and be ready to roll-over fast.

Put yourself in your customer's shoes and ask yourself all the worst What
if...?s

-- 
Like Music?  http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro).  Need to record live events (mixed already) to stereo
CD-quality.  Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff.  Zero (0)
post-production time.  Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.

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




Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread 1LT John W. Holmes

Upgrade and turn on register_globals in php.ini.

---John Holmes...

- Original Message - 
From: Kristopher Yates [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Monday, July 22, 2002 3:51 PM
Subject: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)


 Hi,
 
 I have been running 4.1.2 for a while with no problems.  This morning, I 
 downloaded 4.2.2, did a configure/make/make install.  All seemed to have 
 gone well.  However, it broke all my sites that use PHP.  Here is a 
 description of how it appeared to be broken.  This is just an example, 
 as I dont really own fakename.com.
 
 User goes to http://www.fakename.com/index.php
 
 User clicks on help and gets the main index page instead of the help 
 page.
 
 The URL for help is.. http://www.fakename.com/index.php?target=help
 
 It is like PHP gets passed variables and forgets them immediately.
 
 What do I need to do?  I reinstalled 4.1.2 and things are working again. 
 Naturally, I would like to safely upgrade to 4.2.2.
 
 Thanks in advance for any help out there. I am at a loss for ideas on 
 solving this myself.
 
 Kris
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




RE: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Roedel, Mark A.


You *did* read the notice that came up at the end of your 'configure'
run, right?  (Specifically the part that said *** NOTE ***  The default
for register_globals is now off.  If your application relies on
register_globals being ON, you should explicitly set it to on in your
php.ini file.  Note that you are strongly encouraged to read
http://www.php.net/manual/en/security.registerglobals.php about the
implications of having register_globals set to on, and avoid using it if
possible.)

For more info, see the above link, or the External Variables section
of the 4.2.1 release notes at http://www.php.net/release_4_2_1.php, or
the manual section on predefined variables at
http://www.php.net/manual/en/language.variables.predefined.php



---
Mark Roedel   | Blessed is he who has learned to laugh
Systems Programmer|  at himself, for he shall never cease
LeTourneau University |  to be entertained.
Longview, Texas, USA  |  -- John Powell


 -Original Message-
 From: Kristopher Yates [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, July 22, 2002 2:52 PM
 To: php-general
 Subject: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem 
 with 4.2.2)
 
 
 I have been running 4.1.2 for a while with no problems.  This 
 morning, I downloaded 4.2.2, did a configure/make/make install. 
 All seemed to have gone well.  However, it broke all my sites
 that use PHP.  Here is a description of how it appeared to be
 broken.  This is just an example, as I dont really own
 fakename.com.

 [snip]

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




Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Kristopher Yates

I notice the INSTALL file in 4.2.2 mentions that people should write 
their scripts to work with this [register_globals] turned off.  Based 
on what I've mentioned below, what can I do to conform to this statement 
made by the PHP authors?  From what I know about programming, I am 
setting globals where appropriate already.. but apparently I am 
incorrect, since upgrading to 4.2.2 broke all my stuff unless I turn 
[register_globals] on.  Any suggestions?

Thanks for your reply,

Kris

1LT John W. Holmes wrote:

Upgrade and turn on register_globals in php.ini.

---John Holmes...

- Original Message - 
From: Kristopher Yates [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Monday, July 22, 2002 3:51 PM
Subject: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)


  

Hi,

I have been running 4.1.2 for a while with no problems.  This morning, I 
downloaded 4.2.2, did a configure/make/make install.  All seemed to have 
gone well.  However, it broke all my sites that use PHP.  Here is a 
description of how it appeared to be broken.  This is just an example, 
as I dont really own fakename.com.

User goes to http://www.fakename.com/index.php

User clicks on help and gets the main index page instead of the help 
page.

The URL for help is.. http://www.fakename.com/index.php?target=help

It is like PHP gets passed variables and forgets them immediately.

What do I need to do?  I reinstalled 4.1.2 and things are working again. 
Naturally, I would like to safely upgrade to 4.2.2.

Thanks in advance for any help out there. I am at a loss for ideas on 
solving this myself.

Kris


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






  





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




Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread 1LT John W. Holmes

 I notice the INSTALL file in 4.2.2 mentions that people should write
 their scripts to work with this [register_globals] turned off.  Based
 on what I've mentioned below, what can I do to conform to this statement
 made by the PHP authors?  From what I know about programming, I am
 setting globals where appropriate already.. but apparently I am
 incorrect, since upgrading to 4.2.2 broke all my stuff unless I turn
 [register_globals] on.  Any suggestions?

Keeping register_globals OFF simply gives you the opportunity to make less
mistakes in your code. When you have a link like
http://www.example.com/page.php?ID=1, reg_globals ON will create a variable
$ID that you can use in your script. The problem is, you don't know if it
came from the URL, a POSTed form, a COOKIE, or what. The second problem is
that if I use the variable $blah somewhere in my script, a malicious user
could pass a value of $blah through the URL, POST, or COOKIE, and create
problems in my code.

With reg_globals OFF, you have to access the variables in the $_GET, $_POST,
$_COOKIE, etc, arrays. $_GET['ID'] for the example above, tells you for sure
that the value came from the URL. Also, if I make a variable $blah somewhere
in my script, I know that the user can't affect it's value at all, even by
passing ?blah=foo in the URL.

So basically you should begin using the superglobal arrays $_GET, $_POST,
$_COOKIE, $_ENV, $_SERVER, and $_SESSION in  your scripts...

HTH!

---John Holmes...


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




Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Evan Nemerson

If you need register globals on for your old stuff, but want to write better 
new code, you can just use ?php ini_set(register_globals, 0); ? in your new 
stuff.

If you are trying to turn register_globals off for the whole system, make sure 
you're changing the right php.ini. phpinfo(); will give you the location 
where PHP looks for your php.ini. If you run the command line version 
(command line and apache module), just run

$ php -r 'phpinfo();' | grep 'php.ini'

from the command line


-Evan


-- 
What you cannot enforce, do not command.

Sophocles


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




Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Pete James

Evan Nemerson wrote:
 
 If you need register globals on for your old stuff, but want to write better
 new code, you can just use ?php ini_set(register_globals, 0); ? in your new
 stuff.

You can't do this in a php file... by the time it gets to this line,
it's too late.

According to the set_ini function on php.net, register_globals is only
set-able in the ini file or in .htaccess.

P.


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


Re: [PHP] upgrade

2002-05-02 Thread Jason Wong

On Friday 03 May 2002 02:45, Hong Tian wrote:
 Hi,

 I want to compile Apache 1.3.22+PHP 4.0+MYSql 3.23.44 with DSO support
 on Solaris 8.

 Where can I find the installation information to use DSO with PHP and
 MYSql?

The manual perhaps?

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
The joys of love made her human and the agonies of love destroyed her.
-- Spock, Requiem for Methuselah, stardate 5842.8
*/

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




RE: [PHP] upgrade

2002-05-02 Thread Hong Tian

Pushkar,

The followings are used for compiling Apache+mysql+php with DSO. 
Questions are:

At step (3), Is it correct to compile PHP as a DSO by using 
--with-apxs=/usr/local/apache/bin/apxs ?

At the step (4), should I add the following two lines?
 --enable-shared=ssl
 --activate-module=src/modules/php4/libphp4.a

--
(1)
# cd mysql-3.23.44
# ./configure --prefix=/usr/local/mysql
# make
# make install

(2)
# cd apache_1.3.22
# ./configure --prefix=/usr/local/apache

(3)
# cd php-4.2.0
# ./configure --with-mysql=/usr/local/mysql \
 --with-apache=../apache_1.3.22 \
 --with-apxs=/usr/local/apache/bin/apxs \
 --enable-track-vars

(4)
# cd apache_1.3.22
# ./configure --prefix=/usr/local/apache \
 enable-module=php4
 enable-shared=php4
 enable-module=rewrite
 enable-shared=rewrite

Thank you for your help.
Hong


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




Re: [PHP] upgrade question

2001-04-03 Thread Steve Werby

"Walgamotte, David" [EMAIL PROTECTED] wrote:
 I want to upgrade to 4.04pl1 PHP, I just downloaded the source from their
 website. One problem I have had in the past, is when I recompile PHP with
 different support options the phpinfo() still displays the old
information.
 Could anyone help me to find out where phpinfo() is pulling it's
information
 or direct me to an upgrade "how to"
 for PHP ?

Perhaps you should try deleting the old install first.  locate php, then
rm -rf [DIRECTORIES_HERE] or rpm -e [PHP_PKG_HERE].

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] upgrade installation

2001-02-03 Thread Michael Hall


Bom Dia Vinicius:

Try this: before you reinstall PHP, make sure you delete the old
config.cache file ... it is in the same directory where you do
config/make/install. Don't worry, deleting this file is OK.

Michael


On Sat, 3 Feb 2001, Vinicius Garcia wrote:

 Hi everyone..
 
 When i installed php 4.0.4pl1 i install it with --with-mysql --with-apxs
 arguments. Now... i wanna put --with-db2...
 
 It goes alright.. all... configure, make and make instal..
 but.. it doesn't upgrade php.. in phpinfo() it have only --with-mysql
 --with-apxs arguments. What i need to do to upgrade it... I even try to
 purge config.cache but doesn't change nothing
 
 ANyone can help me?
 
 Tks...
 Sorry for the english - From brazil
 Scratched
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] upgrade installation

2001-02-03 Thread Michael Hall


Sorry for the redundant suggestion, I see you've already tried it. Dealing
with as much mail as there is on this list, you can see that I often cut
corners.

If --with-db2 is not working, perhaps it is because you need to install
the Berkeley database first.

You might have gdbm (Gnome dbm) already installed (my RedHat 6.1 does), or
maybe you can install it off a distribution CD. gdbm does much the same 
as the Berkeley database ... it is configured with:

--with-gdbm

Hope this helps

Michael

On Sun, 4 Feb 2001, Michael Hall wrote:

 
 Bom Dia Vinicius:
 
 Try this: before you reinstall PHP, make sure you delete the old
 config.cache file ... it is in the same directory where you do
 config/make/install. Don't worry, deleting this file is OK.
 
 Michael
 
 
 On Sat, 3 Feb 2001, Vinicius Garcia wrote:
 
  Hi everyone..
  
  When i installed php 4.0.4pl1 i install it with --with-mysql --with-apxs
  arguments. Now... i wanna put --with-db2...
  
  It goes alright.. all... configure, make and make instal..
  but.. it doesn't upgrade php.. in phpinfo() it have only --with-mysql
  --with-apxs arguments. What i need to do to upgrade it... I even try to
  purge config.cache but doesn't change nothing
  
  ANyone can help me?
  
  Tks...
  Sorry for the english - From brazil
  Scratched
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] upgrade problems

2001-01-18 Thread Bart A. Verbeek

Heb ik ook CGI nodig om php4 te draaien??

-Oorspronkelijk bericht-
Van: Chris Hayes [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 18 januari 2001 13:18
Aan: Bart A. Verbeek
Onderwerp: Re: [PHP] upgrade problems



  PHP:  Unable to parse configuration file.

 Does anyone know what this meens and how to solve it??
Nou ik weet het niet zeker want ik gebruik hetzelfde als jij maar dan met
Apache (wist je dat PWS van Microsoft is?? En dat Apache prima draait onder
Win 98?).
Misschien moet je eens op de upgrade pagina's kijken van PHP.

Je kunt ook kijken of je kunt vonden welke exe nu gebruikt wordt; de oude of
de nieuwe, en of hij wel de php.ini leest en niet php3.ini, die laatste is
onleesbaar voor php4 denk ik!
Heb je ge-edit in php.ini?

Dan moest ik in de Apache configuratie nog veranderen
van AddType application/x-httpd-php3 .php
naar to
AddType application/x-httpd-php .php
(AddType is een Apache commando maar de rest kan ook op PWS van toepassing
zijn.)

Chris




--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Upgrade PHP3 to PHP4

2001-01-15 Thread Brian Clark


Hello TOM, 

(T == "TOM") [EMAIL PROTECTED] writes:

T I would like to upgrade PHP3 to PHP4 on my Turbo Linux, does anyone
T has experience on this?

Not specifically on Turbo Linux, but this may shed some light on the
subject:

http://www.php.net/version4/migration.php

T enethk

-Brian



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]