Re: [PHP] error handling and __LINE__

2001-11-27 Thread SafeV
#x27;is_object($obj)'); > > and write your error handler code or use mine :) > or am i missing something? > > Papp Gyozo > - [EMAIL PROTECTED] > > - Original Message - > From: "SafeV" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]

[PHP] error handling and __LINE__

2001-11-22 Thread SafeV
Hi, I wonder if there's a way to find the line number of the calling script from a function, like the error messages PHP generates. An example: In an included file I have a function and want to do something similar to: function foo($obj) { if (!is_object($obj)) { echo "Error: suppli

[PHP] Re: Always running script

2001-10-18 Thread SafeV
If you 'set_time_limit(0);' your script won't time out. But it's probably better to have some other kind of background script to run on the server... Ville Mattila wrote: > Hi there again, > > I was wondering that would it be possible to make a script which is always running? >Maybe it should

[PHP] Re: PDF Download / View

2001-10-18 Thread SafeV
I'm not 100% sure, but try adding one more header: Header("Content-Disposition: attachment; filename=\"" . $filename. "\""); Ville Mattila wrote: > Hello world, > > I've made a little script which simply returns a pdf file through it (script file >called dl.php in the chart-directory): > >

Re: [PHP] file upload problem

2001-10-18 Thread SafeV
I've run into the same problem, I had to 'chmod 777 images' to be able to create dirs or files, which is BAD security! Brian Aitken wrote: > Hiya > > I promise I won't keep perstering you after this question :-) > > My problem is this - I've got a complete system that works perfectly on > Lin

Re: [PHP] Object and reference problem

2001-10-18 Thread SafeV
t that is such a fundamental > change that I doubt if it will happen, and there are probably > goo reasons not to ( have I ever told people how much I like > Python ... ) > > Maybe you are just going to have to bite the bullet and have > an "AddRef" method.. > >

Re: [PHP] Object and reference problem

2001-10-18 Thread SafeV
> in your array as by default adding items to arrays causes copies to be made. > So you also need the line: > >$this->children[] = &$child; > > Hope this helps. > > > >>-Original Message- >>From: Brian White [mailto:[EMAIL PROTECTED]]