|
Posted by Rafi B. on 01/14/06 21:31
Janwillem Borleffs wrote:
>
> Well, for one thing, $line.serialize() isn't valid PHP syntax for a method
> call, because of the dot. That it executes on your friend's system probably
> has to do with his error_reporting and display_errors settings. Ask him if
> queries ever get cached and the answer probably will be negative.
>
It does. I coded his site, and the caching works like a charm.
>From a 8 second heavy queried home page, to 0.5 second serverside
loadtime,
its cached every hour.
What the guys in the ADOdb code are doing is concating the $line with
the
result of serialize($rs2). So: return $line.serialize($rs2); IS valid
in PHP,
maybe more clear would be: return $line . serialize($rs2);
> When the $rs2 object contains the serialize method, you probably should do
> something like:
>
Their just serializing the $rs object. That's it. When I try to execute
the query
without caching, I receive a return into "$myresult" lets say for
example, this
will contain an array of all the fields that my query returned, and
when I do IN MY CODE:
$sdata = serialize($myresult);
CRASHES. Fatal. Doesn't spit anything in the logs, or screen. Just dies
so brutally.
I'm pulling out hairs here.
[Back to original message]
|