Re: [PHP] Syntax query

2003-03-09 Thread Nik Makepeace
On Mon, 2003-03-10 at 03:01, Ernest E Vogelsinger wrote: > At 13:38 09.03.2003, Nik Makepeace said: > [snip] > >Can anyone tell me why this doesn't work: > > > >$db_object = pg_fetch_object($this->getLastResult()); > &g

Re: [PHP] Re: Member function as error_handler

2003-03-09 Thread Nik Makepeace
On Mon, 2003-03-10 at 02:40, David Eisenhart wrote: > I'd recommend that you consider using the set_error_handler function Of course, this is what I am doing. My question is can I use a member function of an object as an error handler? I don't seem to be able to, but I might have overlooked someth

[PHP] Syntax query

2003-03-09 Thread Nik Makepeace
Can anyone tell me why this doesn't work: $db_object = pg_fetch_object($this->getLastResult()); In imaginary interactive mode, it works like this: ME > echo $this->getLastResult(); PHP> Resource id #67 ME > echo $this->mr_lastResult; PHP> Resource id #67 ME > echo pg_fetch_object($this->getLastR

[PHP] Member function as error_handler

2003-03-09 Thread Nik Makepeace
Query One: Can I use a member function of an object as an error_handler? I currently declare a function for error handling with every page, but I would like to put it in an object which lives in the session anyway. The problem is I can't seem to do it; when I try to set the error handler to a meth

Re: [PHP] Displaying few words from record in mySQL

2003-03-08 Thread Nik Makepeace
On Sat, 2003-03-08 at 05:21, Rahul.Brenda wrote: > Kevin, > > Your program certainly makes very good sense to me. I have written an extension of the idea available at http://nikmakepeace.com/goodies/abbreviate.phps It takes 5 arguments: string to be abbreviated, length in cha

Re: [PHP] Memory errors?

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 14:44, Leif K-Brooks wrote: > Lately, I've been getting the following error: > Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to > allocate 86460 bytes) in Unknown on line 0 > The thing is, I'm not doing anything that could possibly require much > memory

Re: [PHP] File upload and permissions

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 07:24, Charles Kline wrote: > I have played with it - changing permissions and the only > one that works is chmod 777 - not sure if this is good or not - pretty > new to unix administration stuff. If you don't want to make a new directory to store them, you should make sure

Re: [PHP] include or function

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 09:34, John Taylor-Johnston wrote: > I have an *.inc with html, a rather long list of . And you want to print out said list of OPTIONs several times with different ones selected each time? You could do it with an array and a function. The array would contain a list of keys

Re: [PHP] I'm lost: text file upload

2003-03-05 Thread Nik Makepeace
On Thu, 2003-03-06 at 15:33, John Taylor-Johnston wrote: > I'm looking for a couple of lines of code so I can upload the contents of a *.txt > into a buffer and declare it as a string so I can spit it back in a . I > don't want to necessarily upload a text file, only load it into a buffer. > >

Re: [PHP] dynamic link converter

2003-03-05 Thread Nik Makepeace
On Thu, 2003-03-06 at 05:49, electroteque wrote: > hi there i am trying tom preg_replace on a string enclosed in brackets to > denote a dynamic link This works, if I understand you correctly: http://www.eletroteque.dyndns.org/index_html.php|Eletroteque Multimedia]";

Re: [PHP] dynamic link converter

2003-03-05 Thread Nik Makepeace
On Thu, 2003-03-06 at 05:49, electroteque wrote: > hi there i am trying tom preg_replace on a string enclosed in brackets to > denote a dynamic link This works, if I understand you correctly: http://www.eletroteque.dyndns.org/index_html.php|Eletroteque Multimedia]";