well, i use require_once() for the include anyway... but i should skip if (class_exists($class)) first if there are no files with duplicate classes, yes?

acidjazz_

ok so i need to use/write a function that gives me the difference of two variables, no matter what cars or how big they are, so like $var1 = 'qweqwebobqweqwe123' $var2 = 'qweqweqweqwe' the function will return 'bob123', etc. any ideas?

Xen0n

actually... ugh..||cw, just realised, a little more complicated - i need to check for file existance too...require_once would create a fatal error...or.. should i use include_once and suppress errors, then check the return value?hmmmnot making much sense here i dont think :(

Crell42

Is there any memory difference between 5 arrays and an array of those same 5 arrays?

Crell42: about the size of one array structureGive or take a few bytes

Crell42

Is that a constant size?

TML

No

Crell42

Is it enough to justify an API that is incapable of handling multi-dimensional arrays as a way to create a table?

TML

NoWell...not IMO, but that's really up to the API author.

bewest

is php5 backwards compatible to run all php4 scripts?

Crell42

The API author is my coworker who I really think is incompetent about now.

TML

bewest: Absolutely not

acidjazz_

TML; thats on a character basisTML; i need this to accomodate order as well

TML

Crell42: I'm rather incompetent about now as well. I'm much better about 6 weeks from now, and I get even better the further off from "now" we get.acidjazz_: What do you mean?acidjazz_: That does in-order traversal of both arrays simultaneously, so you'll get the "diff" out in the same order as the were in the input.

Crell42

TML: LOL. One of those weeks, eh?

TML

Crell42: No, I've just never been any good at dealing with the "Now"I'm more of a "live six weeks in the future at the cost of the present"(kind of guy)

Xen0n

HmmmThis might be asking something stupid.... but is it possible to have a public static method that is NOT inherited by subclasses?

TML

Xen0n: php.net/language.oop5.final

Xen0n

i thought final meant it couldnt be overloaded....

TML

Xen0n: I misunderstood your question, it would seem

Xen0n

hehe

TML

Oh, you mean it's not *visible* in the child?

Xen0n

i mean its not there...

Crell42

TML: hehe. T'would be nice to be able to.

Xen0n

but i guess making it private in child would have same effectcan do that?

TML

Xen0n: Well, it's going to be there, because it's in the parent, and it's public.

Xen0n

right

TML

You can't change the rules of OOP arbitrarily. :)

Xen0n

and i cant change its access either?heheI didnt think i couldBut i thought maybe there was a part of OOP that i had overlooked :P

TML

Why would you even want such a thing?

Xen0n

heheBecause i want to be lazy and drop my factory classroll the static methods into the main classbut never mind ^_^

TML

o.O

Xen0n

was just a thought - if its not possible, i'm not going to sweat itand anyway, i should probably keep those static methods OUT of the main classes :D

TML

yes

Xen0n

hehe

TML

Hence the "o.O"

Xen0n

Dont mind me - i used up all the energy in my body today, not firing on all cylinders...I really love the "singleton" design pattern thoughnice for breaking a project up into modules

cwebber

is any1 running php4 on nsapi?

Xen0n

Another efficiency question - which is better, loading all the classes you know you are going to need, and then using __autoload() for the rest, or just letting __autoload() load everything as needeD?

timmy2

j #web

Xen0n

does __autoload() create any significant overheads?

cwebber

are there any incompatabilites i should watch for when moving from php4 to php5?

Xen0n

cwebber, depends on how much your scripts rely on PHP4 "quirks"

Phaaze

can you have an and in an if statement? if($this == '1' and $that == '1') { }

Xen0n

register_globals et al.Phaaze, yup - but a lot of people prefer to use &&