You are here: Re: Any possible reason why "$line.serialize($rs2)" refuses to execute? « PHP Programming Language « IT news, forums, messages
Re: Any possible reason why "$line.serialize($rs2)" refuses to execute?

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация