Re: [PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
It's funny how talking or writing about something uncovers things you didn't see before. In an effort to tidy up the code I heeded the original implementors comments and made the methods private (they were previously undeclared). Making them public seems to have fixed the problem. On 17/03/11 13:

Re: [PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
My apologies. I've not seen something I should have earlier. Also the instance that is behind all of this is and instance of ActiveRecordFormClass. So, in PHP4, the correct overridden method is called: ActiveRecordFormClass::_dispatchSave(). In PHP5, the FormClass::_dispatchSave() is called...???

[PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
Hi, I'm trying to decipher inherited code (I did not write this) and I'm having great difficulty understanding the override of a method in PHP4 vs PHP5 Here's the code: form.php 22 class FormClass 23 { ... /* some method calls to _dispatchSave() */ 572 if($this->_dispatch

RE: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-08 Thread Tommy Pham
> -Original Message- > From: Tom Robinson [mailto:tom.robin...@motec.com.au] > Sent: Tuesday, December 07, 2010 4:03 PM > To: php-general@lists.php.net > Subject: [PHP] PHP4 to PHP5 migration with E_STRICT > > Hi, > > I'm migrating a web application writt

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-08 Thread Richard Quadling
On 8 December 2010 01:12, Tom Robinson wrote: > Thanks David. > > If my understanding is correct, then: > > SPControlPanel::getContentTypes($db); > > is a reference to a static instantiation of the class. If so, then it > must be syntactically something like when using 'new' (which returns a > ref

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-07 Thread Tom Robinson
Thanks David. If my understanding is correct, then: SPControlPanel::getContentTypes($db); is a reference to a static instantiation of the class. If so, then it must be syntactically something like when using 'new' (which returns a reference) so there's no need to apply the & operator. Am I on th

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-07 Thread David Harkness
In getCategoryTypes() you're assigning a reference to the return value of getContentTypes(), and PHP doesn't like that. You can return a reference to a variable from a function, but taking the reference of a *value* is meaningless since you can only create references to variables. Just remove the &

[PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-07 Thread Tom Robinson
Hi, I'm migrating a web application written for PHP4 to PHP5. I've turned on E_STRICT to have a detailed look at all the code thoroughly. I have a number of 'Notices' and 'Strict Standards' messages appearing now. I don't consider myself a PHP guru by any means so I'm seeking help with understand

Re: [PHP] Php4 => Php5

2008-10-06 Thread Philip Thompson
On Oct 3, 2008, at 12:22 PM, Jim Lucas wrote: Maciek Sokolewicz wrote: P.S. you are quite late with migrating, PHP 5 has been out for several years now As stated in many other threads. Some people do not have a choice. They are not allowed to upgrade. Or, as is in many cases, the c

Re: [PHP] Php4 => Php5

2008-10-03 Thread Jim Lucas
Maciek Sokolewicz wrote: > > P.S. you are quite late with migrating, PHP 5 has been out for several > years now > As stated in many other threads. Some people do not have a choice. They are not allowed to upgrade. Or, as is in many cases, the cost of fixing everything after upgrading out weig

Re: [PHP] Php4 => Php5

2008-10-03 Thread Maciek Sokolewicz
Thiago H. Pojda wrote: On Fri, Oct 3, 2008 at 11:42 AM, Operacion Control <[EMAIL PROTECTED]> wrote: Hi Lists, I am planning to migrate from Php4 to Php5 in a few days. Do anyone know which applications/services are upset with the migration? I dont have enough servers to instalt each using Php4

Re: [PHP] Php4 => Php5

2008-10-03 Thread Thiago H. Pojda
On Fri, Oct 3, 2008 at 11:42 AM, Operacion Control <[EMAIL PROTECTED]> wrote: > > Hi Lists, > > I am planning to migrate from Php4 to Php5 in a few days. > Do anyone know which applications/services are upset with the migration? > I dont have enough servers to instalt each using Php4 and then insta

[PHP] Php4 => Php5

2008-10-03 Thread Operacion Control
Hi Lists,   I am planning to migrate from Php4 to Php5 in a few days. Do anyone know which applications/services are upset with the migration? I dont have enough servers to instalt each using Php4 and then install Php5 to test. I mean sendmail, qmail, joomla, egroupware, hordeetc   Thanks in a

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Robert Cummings
On Wed, 2008-07-30 at 01:16 -0500, Larry Garfield wrote: > On Wednesday 30 July 2008 12:44:46 am Robert Cummings wrote: > > > It's unfortunate that PHP5 decided to throw a Strict Standards exception > > when you include both style constructors. For instance, I'm certain at > > one point the follow

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Larry Garfield
On Wednesday 30 July 2008 12:44:46 am Robert Cummings wrote: > It's unfortunate that PHP5 decided to throw a Strict Standards exception > when you include both style constructors. For instance, I'm certain at > one point the following was recommended: > > class Foo > { > function __construct(

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Robert Cummings
On Tue, 2008-07-29 at 22:26 -0700, Jim Lucas wrote: > Chris wrote: > >> Don't forget that in PHP5, the constructor named has changed. In PHP4 > >> it called a method with the same name as the class. But, in PHP5, it > >> looks for __construct() instead. > > > > If __construct doesn't exist then

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Jim Lucas
Chris wrote: Don't forget that in PHP5, the constructor named has changed. In PHP4 it called a method with the same name as the class. But, in PHP5, it looks for __construct() instead. If __construct doesn't exist then it falls back to the php4 way - makes it backwards compatible :) But, i

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Chris
> Don't forget that in PHP5, the constructor named has changed. In PHP4 > it called a method with the same name as the class. But, in PHP5, it > looks for __construct() instead. If __construct doesn't exist then it falls back to the php4 way - makes it backwards compatible :) -- Postgresql &

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Maybe setting $this->max should be done in fetchSelectData since that's what is causing/creating your loop. Thanks Chris, I copied the code into the fetchSelectData function and it seems to be working fine now! Just need to test removing the code from the constructor

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread Chris
[EMAIL PROTECTED] wrote: >>> The $players object is created before the loop: >>> $players = new Players($lid); >> >> >> Which means the code is only executed once since it's in the >> constructor. It's not changing per loop because you're not calling the >> code. >> >> Maybe setting $this->max sho

Re: [PHP] PHP4 vs PHP5 classes

2008-07-29 Thread jeff . mills
> Maybe setting $this->max should be done in > > fetchSelectData > > since that's what is causing/creating your loop. > Thanks Chris, I copied the code into the fetchSelectData function and it seems to be working fine now! Just need to test removing the code from the constructor to make sure its

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread jeff . mills
>> >> The $players object is created before the loop: >> $players = new Players($lid); > > > > Which means the code is only executed once since it's in the > constructor. It's not changing per loop because you're not calling the > code. > > Maybe setting $this->max should be done in > > fetchSele

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread Chris
[EMAIL PROTECTED] wrote: >> Since the Players method is a constructor, it's more about how you set >> the object(s) up. >> >> What does the loop look like before you create a new object? >> > > Well see here is where it gets messy! This is not my code - I've ported a > phpnuke module over to drago

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread jeff . mills
> > Since the Players method is a constructor, it's more about how you set > the object(s) up. > > What does the loop look like before you create a new object? > Well see here is where it gets messy! This is not my code - I've ported a phpnuke module over to dragonflycms. The $players object is

Re: [PHP] PHP4 vs PHP5 classes

2008-07-28 Thread Chris
> I have run through the script with a debugger, and sure > enough, we only enter function Players once. > > Is this normal behaviour for PHP5 vs PHP4? > Is there a way for me to force $this->max to be calculated each time > function max is called? Since the Players method is a constructor, it's

[PHP] PHP4 vs PHP5 classes

2008-07-28 Thread jeff . mills
I have the following code in part of a loop: $max = $players->max(); Important parts of players class: class Players extends dynamicTable { var $setup; var $lid; var $size; var $max; var $data; var $data_result; var $data_index; var $player_stats_result; var $player_stat

Re: [PHP] PHP4 vs PHP5 Memcache compatibility issue

2008-06-26 Thread Richard Heyes
Bob Fisher wrote: I am running a hybrid environment. Box A: PHP 4.3.9 Box B: PHP 5.1.6 Box C: Memcached 1.2.2 When I set a key in memcache(Box C) from Box A, I am unable to read it from Box B and vice versa. I did not see any such issues mentioned in the PHP documentation. Has anyone seen s

[PHP] PHP4 vs PHP5 Memcache compatibility issue

2008-06-25 Thread Bob Fisher
I am running a hybrid environment. Box A: PHP 4.3.9 Box B: PHP 5.1.6 Box C: Memcached 1.2.2 When I set a key in memcache(Box C) from Box A, I am unable to read it from Box B and vice versa. I did not see any such issues mentioned in the PHP documentation. Has anyone seen something similar? Do

Re: [PHP] php4 -> php5 session problem

2008-05-16 Thread Juergen Falb
I've already tried adding session_write_close(); It didn't help. The session file gets saved and contains data after the first request, making the request from another machine resets everything. It even doesn't work if you make the request manually from different machines with the same sess

Re: [PHP] php4 -> php5 session problem

2008-05-16 Thread paragasu
On Fri, May 16, 2008 at 6:40 PM, Juergen Falb <[EMAIL PROTECTED]> wrote: > Dear all, > since upgrading to php5 I've a problem with session handling. In php4 a > user initiated a session, the session id gets afterwards handed over to a > payment provider. When the payment provider calls a script wi

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-27 Thread Nathan Nobbe
Stut wrote: > Just wanted to pick you up on this. PHP is the only language you've > listed that only has a single implementation. There are implementations > of C++ compilers that are writting in other languages. I can't speak for > Java since I have little experience but I'd be surprised if all >

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-26 Thread Richard Lynch
On Sat, August 25, 2007 11:56 am, Nathan Nobbe wrote: > so we would really have to > dig deeper for a definition of 'basic oop' / 'true oop' etc. I'll consider PHP true OOP when PECL has a Lisp extension for me to write REAL oop code :-) Actually, that could be a kind of fun extension to write...

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-26 Thread Richard Lynch
On Sat, August 25, 2007 9:45 am, Robert Cummings wrote: > PHP4 AND PHP5 developers don't even use OOP. Tell me what is > compelling > in PHP5 that doesn't rely on you being an OOP developer? The XML stuff, if you need to parse XML a lot, which is not exactly a niche market, but not everybody needs

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-26 Thread Richard Lynch
On Fri, August 24, 2007 10:11 am, Steve Brown wrote: > > > PHP Web Server Test > > > > > phpinfo(), which should never be called in a production setting, is quite possibly the worst benchmark function you could choose. :-) :-) :-) > I ran ab in a loop 12 times with 10,000 connections an

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-26 Thread Stut
Nathan Nobbe wrote: look at C++, Java, and PHP. these languages are all written in C; Just wanted to pick you up on this. PHP is the only language you've listed that only has a single implementation. There are implementations of C++ compilers that are writting in other languages. I can't spe

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 14:26 -0500, Larry Garfield wrote: > On Saturday 25 August 2007, Nathan Nobbe wrote: > > i dont know what all this goPHP5 stuff is about. > > all i know is there was an announcment on php.net a few weeks back saying > > php4 is deprecated and it soon will be made obsolete. > >

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
On Saturday 25 August 2007, Nathan Nobbe wrote: > i dont know what all this goPHP5 stuff is about. > all i know is there was an announcment on php.net a few weeks back saying > php4 is deprecated and it soon will be made obsolete. > > -nathan That announcement came a week after this site launched:

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i dont know what all this goPHP5 stuff is about. all i know is there was an announcment on php.net a few weeks back saying php4 is deprecated and it soon will be made obsolete. -nathan On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 12:28 -0500, Larry Garfield wro

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 12:28 -0500, Larry Garfield wrote: > Robert and everyone: PLEASE do not reply to list AND the sender, at least not > when I'm the sender. I don't need double copies of every message in every > thread I participate in. Thanks. Sorry I've been hitting reply-all since I firs

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
Robert and everyone: PLEASE do not reply to list AND the sender, at least not when I'm the sender. I don't need double copies of every message in every thread I participate in. Thanks. On Saturday 25 August 2007, Robert Cummings wrote: > > There is no way to respond to the above request, beca

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i know this thread started off about a performance comparison, but it is already grown into much more. suffice it to say that i consider the oop capacity of php4 nothing more than a stepping stone on the way to php5. i dont know of all the oop languages out there. mostly i have worked w/ c++ and

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 11:09 -0500, Larry Garfield wrote: > On Saturday 25 August 2007, Robert Cummings wrote: > > > Rewriting? You're assuming developers of PHP4 are using all of the > > features in PHP5 but written using PHP4 code. That's not a very valid > > assumption. You're also assuming they

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
On Saturday 25 August 2007, Robert Cummings wrote: > Rewriting? You're assuming developers of PHP4 are using all of the > features in PHP5 but written using PHP4 code. That's not a very valid > assumption. You're also assuming they didn't already have code written > in PHP4 that was then duplicate

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
agreed :) On 8/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-25 at 10:57 -0400, Nathan Nobbe wrote: > > Robert, > > > > C is a low-level language whereas php is a high level language. > > ill admit it openly, i am biased toward oop / design patterns. > > and i think what i

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 10:57 -0400, Nathan Nobbe wrote: > Robert, > > C is a low-level language whereas php is a high level language. > ill admit it openly, i am biased toward oop / design patterns. > and i think what i boils down to is what you view as 'icing' > i view as 'bread-and-butter' ;) I'

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
Robert, C is a low-level language whereas php is a high level language. ill admit it openly, i am biased toward oop / design patterns. and i think what i boils down to is what you view as 'icing' i view as 'bread-and-butter' ;) personally i shudder when i see a big pile of usntructured code, or a

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 10:33 -0400, Nathan Nobbe wrote: > yes, i agree, people wont be all-of-a-sudden ignoring php4, but the > notice on php.net says to migrate apps to 5 through the rest of the > yaer. id say thats ample time to move away from it. Migrate doesn't necessarily mean ditching PHP4 c

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
yes, i agree, people wont be all-of-a-sudden ignoring php4, but the notice on php.net says to migrate apps to 5 through the rest of the yaer. id say thats ample time to move away from it. pretty much all of my applications rely on php5 features except those where the system was running on php4 whe

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Robert Cummings
On Sat, 2007-08-25 at 09:38 -0400, Nathan Nobbe wrote: > i dont know Robert; i think it depends upon the structure of ones > business. > for instance; i work for a company full time, and have a start up of > my own. > in both of those situations there is no impact on the client in the > act of > e

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Nathan Nobbe
i dont know Robert; i think it depends upon the structure of ones business. for instance; i work for a company full time, and have a start up of my own. in both of those situations there is no impact on the client in the act of eliminating php4 from the product implementation. the clients never us

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
On Sat, 2007-08-25 at 00:28 -0500, Larry Garfield wrote: > On Friday 24 August 2007, Lester Caine wrote: > > > What would be interesting is if a group picked up PHP4 and kept going > > > with it in spite of the end of life announcement a few weeks back. I > > > wonder if the PHP license would allo

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Larry Garfield
On Friday 24 August 2007, Lester Caine wrote: > > What would be interesting is if a group picked up PHP4 and kept going > > with it in spite of the end of life announcement a few weeks back. I > > wonder if the PHP license would allow such a thing. How open is it > > exactly? > > The PROBLEM is t

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Lester Caine
Greg Donald wrote: On 8/24/07, Steve Brown <[EMAIL PROTECTED]> wrote: The only difference I can figure is that PHP5 was the packaged version that comes with Ubuntu and I had to compile PHP4 from source since there is no package for it in Feisty. But I wouldn't expect a 50% increase as a result o

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
On Fri, 2007-08-24 at 12:24 -0500, Greg Donald wrote: > On 8/24/07, Steve Brown <[EMAIL PROTECTED]> wrote: > > The only difference I can figure is that PHP5 was the packaged version > > that comes with Ubuntu and I had to compile PHP4 from source since > > there is no package for it in Feisty. But

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Greg Donald
On 8/24/07, Steve Brown <[EMAIL PROTECTED]> wrote: > The only difference I can figure is that PHP5 was the packaged version > that comes with Ubuntu and I had to compile PHP4 from source since > there is no package for it in Feisty. But I wouldn't expect a 50% > increase as a result of that. Any t

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
PHP5 being faster than PHP4 is greatly dependent on what features you use. I've consistently found PHP4 to be faster for my purposes also. Cheers, Rob. On Fri, 2007-08-24 at 11:38 -0400, Nathan Nobbe wrote: > what are the changes that supposedly make php5 faster than php4? > > when java went fr

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Nathan Nobbe
what are the changes that supposedly make php5 faster than php4? when java went from the 1.4 series to the 5 series it became much faster. this is because of enhancements to the jitter mechanism for sure. i dont know what else they changed, but i know that had a great impact on the performance.

[PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Steve Brown
Recently, I've been doing a lot of benchmarking with Apache to compare different OSes and platforms. I did a stock install of Ubuntu 7.04 Server w/ Apache2 and PHP5. To do the test, I used ab to fetch the following document: PHP Web Server Test I ran ab in a loop 12 times with 10,000 con

Re: [PHP] PHP4 and SQLite

2007-05-07 Thread Suhas Pharkute
Yep, PDO was one more question that I had and could not find dll for it. Upgrade is an option but there are some custom dlls that we developed for 4.1.1 and do not want to spend time in checking it for higher version. But if it is not possible then I guess we will do that Thx SUhas On 5/7/07,

Re: [PHP] PHP4 and SQLite

2007-05-07 Thread Richard Lynch
On Mon, May 7, 2007 5:29 pm, Suhas Pharkute wrote: > Can someone please point me to a tutorial for PHP4.x.x and SQLite > installation on Windows with Apache web server? > > I searched in Google and PHP mailing list but nothing useful. It seems > like > I am missing php_pdo.dll for 4.1.1 version. F

[PHP] PHP4 and SQLite

2007-05-07 Thread Suhas Pharkute
HI, Can someone please point me to a tutorial for PHP4.x.x and SQLite installation on Windows with Apache web server? I searched in Google and PHP mailing list but nothing useful. It seems like I am missing php_pdo.dll for 4.1.1 version. Can someone please help? Thanks in advance, Suhas

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
Myron Turner wrote: > Travis Doherty wrote: > >>> >> >> What about the argument that PHP4 is dead. It's done. It's over. >> There is no reason anyone should be using it, less perhaps a lack of >> time to tweak scripts for an upgrade from 4 to 5. Even if that is the >> case, get to work :p

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Myron Turner
Travis Doherty wrote: What about the argument that PHP4 is dead. It's done. It's over. There is no reason anyone should be using it, less perhaps a lack of time to tweak scripts for an upgrade from 4 to 5. Even if that is the case, get to work :p "Support for PHP 4 will be dropped at th

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
Fernando Cosso wrote: > Hi > I know this topic has to be discussed several times but I have a > situation I > need some advices. > > I am working in a small company. The company does everything you need. > Computer service, sell computers, install servers, web page, etc. I am in > the web departme

Re: [PHP] PHP4 and PHP5

2007-02-27 Thread Richard Lynch
On Mon, February 26, 2007 7:49 am, Martin Marques wrote: > Is it posible to run apache with PHP4 and PHP5 on different virtual > domains? Search the list archives for "Rasmus Lerdorf" and "ProxyPass" and I think you'll find a fairly easy way to do it. -- Some people have a "gift" link here. Know

Re: [PHP] PHP4 and PHP5

2007-02-26 Thread Jochem Maas
> That’s via a google search ... never done it myself! > > S > >> -Original Message- >> From: Martin Marques [mailto:[EMAIL PROTECTED] >> Sent: 26 February 2007 03:50 PM >> To: php-general@lists.php.net >> Subject: [PHP] PHP4 and PHP5 >> >

RE: [PHP] PHP4 and PHP5

2007-02-26 Thread Steven Macintyre
5_and_php4 That’s via a google search ... never done it myself! S > -Original Message- > From: Martin Marques [mailto:[EMAIL PROTECTED] > Sent: 26 February 2007 03:50 PM > To: php-general@lists.php.net > Subject: [PHP] PHP4 and PHP5 > > Is it posible to run apache

[PHP] PHP4 and PHP5

2007-02-26 Thread Martin Marques
Is it posible to run apache with PHP4 and PHP5 on different virtual domains? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática|

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 f

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 - bu

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) F

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'

Re: [PHP] PHP4 extensions not loading

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 00:00:57 -0700: > What I need to do is get Apache looking at a > > /var/db/ports/php4-extensions > > directory, which I did create with the options file > listing all the extensions I built individually. > > Can someone tell me how this can be done? How I can >

[PHP] PHP4 extensions not loading

2007-02-06 Thread Skip Evans
Hey all, I installed a new server with PHP5, but then had to revert to PHP4 (attempted anyway) on a FreeBSD 6.0 install. I have PHP4 compiled, both the main BSD port of lang/php4 and all of the extensions individually. However, the extensions, including basic ones like MySQL are not gettin

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, Februa

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,

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 no

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

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

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 t

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

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. > >

[PHP] PHP4 to PHP5 issue

2007-02-05 Thread Skip Evans
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, a

Re: [PHP] PHP4 static properties - PEAR vs my solution

2006-10-06 Thread Hodicska Gergely
But users of the PEAR solution to staticProperties may or may not want any other portion of PEAR as well. But they have the possibility to choose. ;) So it's only "better" if it suits the needs of the user. You'd have to ask the PEAR users if it's "better" for them. 1. I sent it here because I

Re: [PHP] PHP4 static properties - PEAR vs my solution

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 10:59 am, Hodicska Gergely wrote: >> This would be Really Nifty, if PHP allowed multiple inheritence so >> you >> could have a mixin class... >> >> Otherwise, however, you have to have a common base class across all >> the various class systems in use in your multitude of we

Re: [PHP] PHP4 static properties - PEAR vs my solution

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 7:22 am, Hodicska Gergely wrote: > I'm curious about your opinion. > class base > { > function &staticProperty($name, $value = null) > { > static $properties = array(); This would be Really Nifty, if PHP allowed

[PHP] PHP4 static properties - PEAR vs my solution

2006-10-06 Thread Hodicska Gergely
Hi! I had a little discussion on a forum topic about static class method and properties. Somebody there pointed to the PEAR::getStaticProperty() solution to emulate static properties in PHP4. I was not familiar with it but its approach seems a little strange for me. It is not really more than st

[PHP] PHP4 static properties - PEAR vs my solution

2006-10-06 Thread Hodicska Gergely
Hi! I had a little discussion on a forum topic about static class method and properties. Somebody there pointed to the PEAR::getStaticProperty() solution to emulate static properties in PHP4. I was not familiar with it but its approach seems a little strange for me. It is not really more than st

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Zbigniew Szalbot
Hi, Please, please forgive! How dumb a person (me!) can sometimes be! I looked at httpd.conf again and saw that instead of replacing php4.so library object I added a new line with php5 entry... Sorry to have bothered! Thanks! Zbyszek On Mon, 11 Sep 2006, Zbigniew Szalbot wrote: > On Mon,

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Zbigniew Szalbot
On Mon, 11 Sep 2006, Curt Zirzow wrote: Hi there again, > > Thanks for such a fast response. I used portinstall. I did have apache > > 1.3.37 at the beginning but it later turned out that for some reason I > > will have to upgrade for apache 2.x so I ran pkg_delete and the went for > > apache2. >

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Curt Zirzow
On 9/11/06, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: On Mon, 11 Sep 2006, Curt Zirzow wrote: Hello, > > I would appreciate your help. I am trying to get php and apache work > > together and have a strange error while starting apache: > > > > Can't locate API module structure `php4_module' in

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Zbigniew Szalbot
On Mon, 11 Sep 2006, Curt Zirzow wrote: Hello, > > I would appreciate your help. I am trying to get php and apache work > > together and have a strange error while starting apache: > > > > Can't locate API module structure `php4_module' in file > > /usr/local/libexec/apache2/libphp5.so: Undefined

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Curt Zirzow
On 9/11/06, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Hello, I would appreciate your help. I am trying to get php and apache work together and have a strange error while starting apache: Can't locate API module structure `php4_module' in file /usr/local/libexec/apache2/libphp5.so: Undefined s

[PHP] php4 / php5 unable to locate module

2006-09-11 Thread Zbigniew Szalbot
Hello, I would appreciate your help. I am trying to get php and apache work together and have a strange error while starting apache: Can't locate API module structure `php4_module' in file /usr/local/libexec/apache2/libphp5.so: Undefined symbol "php4_module" I am using PHP 5.1.6 (cli) and Apache

Re: [PHP] PHP4: calling method on returned object

2006-03-30 Thread Jasper Bryant-Greene
Karl Glennon wrote: [snip] I expected to have the ability to get the url of a location's map with the floowing statement: print $this->Location->GetMap()->GetUrl(); [snip] Is there any other syntax in PHP4 to allow me to concisely call a method on a return object? eg. ($this->Location->GetMap

Re: [PHP] PHP4: calling method on returned object

2006-03-30 Thread Petar Nedyalkov
On Thursday 30 March 2006 14:05, Karl Glennon wrote: > Hi there, > > I have an object structure, whereby a location object contains a method > to return it's map object. The map object contains a method to return > it's URL. > > I expected to have the ability to get the url of a location's map with

[PHP] PHP4: calling method on returned object

2006-03-30 Thread Karl Glennon
Hi there, I have an object structure, whereby a location object contains a method to return it's map object. The map object contains a method to return it's URL. I expected to have the ability to get the url of a location's map with the floowing statement: print $this->Location->GetMap()->

[PHP] PHP4 with MYSQL5

2006-03-06 Thread João Cândido de Souza Neto
Hello everyone. I'm trying to use my php4 conecting to a mysql5 server, and then executing some command lines to create a stored procedure but it's not working. When a tried to execute "delimiter |", my php gets de follow error: You have an error in your SQL syntax; check the manual that corresp

[PHP] PHP4 with MYSQL5

2006-03-06 Thread João Cândido de Souza Neto
Hello everyone. I'm trying to use my php4 conecting to a mysql5 server, and then executing some command lines to create a stored procedure but it's not working. When a tried to execute "delimiter |", my php gets de follow error: You have an error in your SQL syntax; check the manual that corresp

[PHP] PHP4, domxml and xpath with Namespaces

2006-03-06 Thread Markus Fischer
Hi, I haven't yet worked with namespaces in XML before when it comes to DOM related methods. My source is an Office 2003 Excel XML and it contains XML like: http://www.w3.org/TR/REC-html40";> How can I use an xpath expression to find e.g. all rows in Worksheet "Sheet1" ? My pro

  1   2   3   4   >