Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Christopher Weldon

On Feb 5, 2007, at 2:00 PM, Jochem Maas wrote:


you don't need to use the box - you can install a 2nd copy of  
apache and
run php4 on it and use the apache ProxyPass directive to make the  
php4/apache

setup available via the apache(2)/php5 [std] webserver.

search the archives for 'ProxyPass'


You actually don't even have to run a second instance of Apache. From  
what I've heard of other hosting companies doing, you can use the  
same Apache installation and run PHP4 and PHP5 concurrently.


However, the only thing you'd have to do is one of the following:

1) For PHP4 apps and scripts, leave the .php extension and rename all  
PHP5 apps and scripts with a .php5 extension. Where you have the string:


DirectoryIndex index.php index.html

add: index.php5 to it. And where you have the string:

AddType application/x-httpd-php .php

Change it to:

AddType application/x-httpd-php4 .php

Also, add another line:

AddType application/x-httpd-php5 .php5

Make sure you include both the php4 and php5 modules, restart apache  
and voila! PHP4 and PHP5 on the same server using 1 installation of  
Apache.


2) Do the same as above, but use .php4 extensions instead of .php5.

3) Additionally, after doing 5 minutes of Googling, I found that you  
can have .htaccess files to control which applications use PHP4 and  
which use PHP5 with the following directive:


AddHandler application/x-httpd-php5 .php

This would circumvent having to rename the extensions of your PHP  
files, as you could then do directory specific PHP4/5 app running.  
You still have to make certain Apache has both the PHP4 and PHP5  
modules loaded, obviously.

--
Christopher Weldon
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
(866) 813-4603 x605

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Myron Turner

Christopher Weldon wrote:
You actually don't even have to run a second instance of Apache. From 
what I've heard of other hosting companies doing, you can use the same 
Apache installation and run PHP4 and PHP5 concurrently.


However, the only thing you'd have to do is one of the following:

1) For PHP4 apps and scripts, leave the .php extension and rename all 
PHP5 apps and scripts with a .php5 extension. Where you have the string:


DirectoryIndex index.php index.html

add: index.php5 to it. And where you have the string:

AddType application/x-httpd-php .php

Change it to:

AddType application/x-httpd-php4 .php

Also, add another line:

AddType application/x-httpd-php5 .php5

Make sure you include both the php4 and php5 modules, restart apache 
and voila! PHP4 and PHP5 on the same server using 1 installation of 
Apache.


2) Do the same as above, but use .php4 extensions instead of .php5.

3) Additionally, after doing 5 minutes of Googling, I found that you 
can have .htaccess files to control which applications use PHP4 and 
which use PHP5 with the following directive:


AddHandler application/x-httpd-php5 .php

This would circumvent having to rename the extensions of your PHP 
files, as you could then do directory specific PHP4/5 app running. You 
still have to make certain Apache has both the PHP4 and PHP5 modules 
loaded, obviously.

--
This has come up a few times recently, and I added my own two cents, 
which required two separate Apaches installs on the same server, which 
I'd done for myself.  But this solution is really cool!


--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Jochem Maas
Myron Turner wrote:
 Christopher Weldon wrote:
 You actually don't even have to run a second instance of Apache. From
 what I've heard of other hosting companies doing, you can use the same
 Apache installation and run PHP4 and PHP5 concurrently.

if you use CGI for one of them then yes - but not if you [want to] use the 
apache
module for both of them, this is due to symbol clashes between php4 and php5 
modules
when they are loaded simultaneously.

please correct me if I have the wrong end of the stick.


 However, the only thing you'd have to do is one of the following:

 1) For PHP4 apps and scripts, leave the .php extension and rename all
 PHP5 apps and scripts with a .php5 extension. Where you have the string:

 DirectoryIndex index.php index.html

 add: index.php5 to it. And where you have the string:

 AddType application/x-httpd-php .php

 Change it to:

 AddType application/x-httpd-php4 .php

 Also, add another line:

 AddType application/x-httpd-php5 .php5

 Make sure you include both the php4 and php5 modules, restart apache
 and voila! PHP4 and PHP5 on the same server using 1 installation of
 Apache.

 2) Do the same as above, but use .php4 extensions instead of .php5.

 3) Additionally, after doing 5 minutes of Googling, I found that you
 can have .htaccess files to control which applications use PHP4 and
 which use PHP5 with the following directive:

 AddHandler application/x-httpd-php5 .php

 This would circumvent having to rename the extensions of your PHP
 files, as you could then do directory specific PHP4/5 app running. You
 still have to make certain Apache has both the PHP4 and PHP5 modules
 loaded, obviously.
 -- 
 This has come up a few times recently, and I added my own two cents,
 which required two separate Apaches installs on the same server, which
 I'd done for myself.  But this solution is really cool!
 

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-07 Thread Myron Turner

Jochem Maas wrote:

Myron Turner wrote:
  

Christopher Weldon wrote:


You actually don't even have to run a second instance of Apache. From
what I've heard of other hosting companies doing, you can use the same
Apache installation and run PHP4 and PHP5 concurrently.
  


if you use CGI for one of them then yes - but not if you [want to] use the 
apache
module for both of them, this is due to symbol clashes between php4 and php5 
modules
when they are loaded simultaneously.

please correct me if I have the wrong end of the stick.

  
Thanks for the heads up.  I'm sure I would have tried it out, probably 
sooner than later.  Maybe someone has some further advice on this.


--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Jochem Maas
Skip Evans wrote:
 Hey all,
 
 I installed a new FreeBSD 6.0 server here in the office with PHP5. I
 moved over several sites we developed under PHP4, and all of those seem
 to be functioning perfectly, but I am getting an error on to sites, on
 PostNuke based and our dotProject system.
 
 Both errors are the same, and here is the one from dotProject:
 
 Fatal error: Call to a member function Execute() on a non-object in
 /usr/home/dotproject/public_html/classes/query.class.php on line 589
 
 And the code:
 
 $this-_query_id =  $db-Execute($q);
 
 Where $q is a pretty typical SQL statement.
 
 What I'm wondering if there is an easy way to convert $q to an object
 type rather than a string to satisfy Execute? Or some other
 straightforward fix?

the problem is not with $q but with $db. $db is not an object,
why that is so I don't know - more bug hunting for you I'm afraid.

 
 Thanks!
 
 
 Skip Evans
 Big Sky Penguin, LLC
 61 W Broadway
 Butte, Montana 59701
 406-782-2240
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=
 

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Skip Evans

Jochem Maas wrote:


the problem is not with $q but with $db. $db is not an object,
why that is so I don't know - more bug hunting for you I'm afraid.


Woops! I sure read that one wrong.

Thanks, I will dig deeper.

Does anyone have any experience running dotProject 
under PHP5?



Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and
versatile PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com/

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Sancar Saran
Hi,

It look like your system cannot init adodb library.
It may SQL setup problem...

On Monday 05 February 2007 19:58, Skip Evans wrote:
 Hey all,

 I installed a new FreeBSD 6.0 server here in the
 office with PHP5. I moved over several sites we
 developed under PHP4, and all of those seem to be
 functioning perfectly, but I am getting an error
 on to sites, on PostNuke based and our dotProject
 system.

 Both errors are the same, and here is the one from
 dotProject:

 Fatal error: Call to a member function Execute()
 on a non-object in
 /usr/home/dotproject/public_html/classes/query.class.php
 on line 589

 And the code:

 $this-_query_id =  $db-Execute($q);

 Where $q is a pretty typical SQL statement.

 What I'm wondering if there is an easy way to
 convert $q to an object type rather than a string
 to satisfy Execute? Or some other straightforward fix?

 Thanks!


 Skip Evans
 Big Sky Penguin, LLC
 61 W Broadway
 Butte, Montana 59701
 406-782-2240
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=

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



RE: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Tim
Hi,

 -Message d'origine-
 De : Skip Evans [mailto:[EMAIL PROTECTED]
 Envoyé : lundi 5 février 2007 19:31
 Cc : PHP-General
 Objet : Re: [PHP] PHP4 to PHP5 issue
 
 Jochem Maas wrote:
 
  the problem is not with $q but with $db. $db is not an object,
  why that is so I don't know - more bug hunting for you I'm afraid.
 
 Woops! I sure read that one wrong.
 
 Thanks, I will dig deeper.
 
 Does anyone have any experience running dotProject
 under PHP5?

Yes, our company used it for three months before dumping it regarding PHP5
incompatibility and some other mistakes.. I ended up having to fix/hack
too many things (sessions doing weird things, broken forum, translations all
messed up, user roles not working quite right, admin system funked) it
wasn't worth my time, we developed a more specialized app for project
management internally.

Other then the fact that it is definitely NOT PHP5 compatible it seems to be
a great project manager with many great features. I'd assume if you really
want to use it, run it on a server with PHP4 you'll save yourself some time
and headaches.

Regards,

Tim
 
 Skip Evans
 Big Sky Penguin, LLC
 61 W Broadway
 Butte, Montana 59701
 406-782-2240
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=
 Check out PHPenguin, a lightweight and
 versatile PHP/MySQL development framework.
 http://phpenguin.bigskypenguin.com/
 
 --
 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] PHP4 to PHP5 issue

2007-02-05 Thread Skip Evans

Tim wrote:

Yes, our company used it for three months before dumping it regarding PHP5
incompatibility and some other mistakes.. I ended up having to fix/hack
too many things (sessions doing weird things, broken forum, translations all
messed up, user roles not working quite right, admin system funked) it
wasn't worth my time, we developed a more specialized app for project
management internally.



Well, I hate to use this kind of language on the 
list, but I feel I must say that sucks. But I want 
to thank you Tim for saving me all kinds of time 
trying to get dP going on PHP5.


We still have the old server, of course, running 
right underneath the new rack jobbies, and I can 
use it for now to run dP for us. Unfortunately, 
we're quite wedded to it for project management, 
having modified and customized it extensively to 
suit our needs.


Hate to use the box, though, just for dP since I 
had it slated to be converted to a pretty sweet 
workstation.


Oh well, if life were perfect we'd... we'd... 
heck, we'd have a lot more fun.


Thanks again, Tim. Any more experiences with dP 
and PHP5 are appreciated, although Tim seems to 
have pretty well nailed it.


--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and
versatile PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com/

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



Re: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Jochem Maas
Skip Evans wrote:
 Tim wrote:
 Yes, our company used it for three months before dumping it regarding
 PHP5
 incompatibility and some other mistakes.. I ended up having to fix/hack
 too many things (sessions doing weird things, broken forum,
 translations all
 messed up, user roles not working quite right, admin system funked) it
 wasn't worth my time, we developed a more specialized app for project
 management internally.

 
 Well, I hate to use this kind of language on the list, but I feel I must
 say that sucks. But I want to thank you Tim for saving me all kinds of
 time trying to get dP going on PHP5.
 
 We still have the old server, of course, running right underneath the
 new rack jobbies, and I can use it for now to run dP for us.
 Unfortunately, we're quite wedded to it for project management, having
 modified and customized it extensively to suit our needs.
 
 Hate to use the box, though, just for dP since I had it slated to be
 converted to a pretty sweet workstation.

you don't need to use the box - you can install a 2nd copy of apache and
run php4 on it and use the apache ProxyPass directive to make the php4/apache
setup available via the apache(2)/php5 [std] webserver.

search the archives for 'ProxyPass'

 
 Oh well, if life were perfect we'd... we'd... heck, we'd have a lot more
 fun.
 
 Thanks again, Tim. Any more experiences with dP and PHP5 are
 appreciated, although Tim seems to have pretty well nailed it.
 

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



RE: [PHP] PHP4 to PHP5 issue

2007-02-05 Thread Tim


 -Message d'origine-
 De : Jochem Maas [mailto:[EMAIL PROTECTED]
 Envoyé : lundi 5 février 2007 21:00
 À : Skip Evans
 Cc : 'PHP-General'
 Objet : Re: [PHP] PHP4 to PHP5 issue
 
 Skip Evans wrote:
  Tim wrote:
  Yes, our company used it for three months before dumping it regarding
  PHP5
  incompatibility and some other mistakes.. I ended up having to
 fix/hack
  too many things (sessions doing weird things, broken forum,
  translations all
  messed up, user roles not working quite right, admin system funked) it
  wasn't worth my time, we developed a more specialized app for project
  management internally.
 
 
  Well, I hate to use this kind of language on the list, but I feel I must
  say that sucks. But I want to thank you Tim for saving me all kinds of
  time trying to get dP going on PHP5.
 
  We still have the old server, of course, running right underneath the
  new rack jobbies, and I can use it for now to run dP for us.
  Unfortunately, we're quite wedded to it for project management, having
  modified and customized it extensively to suit our needs.
 
  Hate to use the box, though, just for dP since I had it slated to be
  converted to a pretty sweet workstation.
 
 you don't need to use the box - you can install a 2nd copy of apache and
 run php4 on it and use the apache ProxyPass directive to make the
 php4/apache
 setup available via the apache(2)/php5 [std] webserver.
Cute, thanks :)

 
 search the archives for 'ProxyPass'
 
 
  Oh well, if life were perfect we'd... we'd... heck, we'd have a lot more
  fun.
 
  Thanks again, Tim. Any more experiences with dP and PHP5 are
  appreciated, although Tim seems to have pretty well nailed it.
 
 
 --
 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] PHP4 to PHP5 issue

2007-02-05 Thread Richard Lynch
Your problem is the $db is NOT an Object.

$q is fine as-is.

Figure out why $db isn't getting be an object -- Probably because the
username/password and/or permissions to connect to the DB aren't set
up correctly.  Or you didn't copy over the DB tables PostNuke and
dotProject need.

On Mon, February 5, 2007 11:58 am, Skip Evans wrote:
 Hey all,

 I installed a new FreeBSD 6.0 server here in the
 office with PHP5. I moved over several sites we
 developed under PHP4, and all of those seem to be
 functioning perfectly, but I am getting an error
 on to sites, on PostNuke based and our dotProject
 system.

 Both errors are the same, and here is the one from
 dotProject:

 Fatal error: Call to a member function Execute()
 on a non-object in
 /usr/home/dotproject/public_html/classes/query.class.php
 on line 589

 And the code:

 $this-_query_id =  $db-Execute($q);

 Where $q is a pretty typical SQL statement.

 What I'm wondering if there is an easy way to
 convert $q to an object type rather than a string
 to satisfy Execute? Or some other straightforward fix?

 Thanks!


 Skip Evans
 Big Sky Penguin, LLC
 61 W Broadway
 Butte, Montana 59701
 406-782-2240
 http://bigskypenguin.com
 =-=-=-=-=-=-=-=-=-=

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




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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