Re: how does one trap for out-of-memory errors?

From: lawrence (lkrubner_at_geocities.com)
Date: 11/03/03


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.



Relevant Pages

  • Re: Search efficiency - RDMS search versus free text search
    ... so for example a list of all resources relating to ... One way of doing this is with a SQL query against the database ... we are using the Google Search Appliance ... early 1980's that did fuzzy searching. ...
    (comp.databases.theory)
  • Re: If you were developing a database in Forth...
    ... iterating over the wordlist ... "reflexively" reaches for a database engine ... him to "imagine" iterating over the dictionary, outputting Forth ...
    (comp.lang.forth)
  • Re: Search efficiency - RDMS search versus free text search
    ... so for example a list of all resources relating to ... One way of doing this is with a SQL query against the database ... the engine itself will do full text indexing for ...
    (comp.databases.theory)
  • Re: Unbueraucratic logging system: oxymoron?
    ... Imagine some activity that goes on 24 hours per day, ... a glitch occurs and need correcting. ... How would one design a "glitch log" system to be able to catch the ... I like using FileMaker for the database because setting up a simple database ...
    (comp.dsp)
  • Re: Contact Info/ Phone Log for Families K -12
    ... If the OP wishes to get a database up and running as soon as ... Here's some links to free resources that may give you a start. ... Allen's tutorials should give you an overview of how to proceed. ... A free tutorial written by Crystal (MS Access MVP): ...
    (microsoft.public.access.gettingstarted)

Loading