Re: how does one trap for out-of-memory errors?
From: lawrence (lkrubner_at_geocities.com)
Date: 11/03/03
- Next message: lawrence: "Re: how does one trap for out-of-memory errors?"
- Previous message: Tom Thackrey: "Re: year week"
- Next in thread: lawrence: "Re: how does one trap for out-of-memory errors?"
- Maybe reply: lawrence: "Re: how does one trap for out-of-memory errors?"
- Maybe reply: lawrence: "Re: how does one trap for out-of-memory errors?"
- Maybe reply: lawrence: "Re: how does one trap for out-of-memory errors?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Nov 2003 09:20:01 -0800
Alan Little <alan@n-o-s-p-a-m-phorm.com> wrote in message news:<Xns94224569416ACalanphormcom@216.196.97.132>...
> Carved in mystic runes upon the very living rock, the last words of
> lawrence of comp.lang.php make plain:
>
> > I can't imagine how I can hide the database from the client code if I
> > use database return resources, as you suggest above. But I now realize
> > how limiting these arrays can be, in the presence of PHP's 8 meg
> > limit. So I'm open to any graceful ideas for otherwise masking the
> > database from the client code.
>
> Unless I'm misunderstanding, it seems like you're overlooking an obvious
> solution. You have methods for transparently managing the queries, why
> not have one for transparently retrieving the data from the resource
> pointer? I have something like this in one of my applications, which
> needs to be able to work with MySQL or Sybase. I simply wrote db_
> functions to replace all the mysql_ and sybase_ functions, and made them
> intelligent enough to handle the differences transparently.
Yes, exactly. Sorry if I wasn't more clear, but that was what I did in
the end. I was a little dense, and did not at first see that as a
solution, but then in the end that is what I did.
- Next message: lawrence: "Re: how does one trap for out-of-memory errors?"
- Previous message: Tom Thackrey: "Re: year week"
- Next in thread: lawrence: "Re: how does one trap for out-of-memory errors?"
- Maybe reply: lawrence: "Re: how does one trap for out-of-memory errors?"
- Maybe reply: lawrence: "Re: how does one trap for out-of-memory errors?"
- Maybe reply: lawrence: "Re: how does one trap for out-of-memory errors?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|