Re: [PHP] Is "gd" present?

2003-06-05 Thread Svein Larsen
Thats true, but its more overhead calling a function than compare a variable. Thats why i want to calll the function only once. - Svein On Thursday 05 June 2003 14:03, Ford, Mike [LSS] wrote: > > -Original Message- > > From: Svein Larsen [mailto:[EMAIL PROTECTED] > >

RE: [PHP] Error capturing

2003-06-05 Thread Svein Larsen
4 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Error capturing > > > On Thursday 05 June 2003 02:00, Svein Larsen wrote: > > Yes, set_error_handler work for "soft" errors. > > But parse-errors doesnt get catched by the errorhandler. > > But surely you chec

RE: [PHP] Error capturing

2003-06-05 Thread Svein Larsen
Re: [PHP] Error capturing > > > On Wednesday 04 June 2003 18:16, Svein Larsen wrote: > > > Anybody got a good solution for capturing errors in php > scripts? I can > > catch the errors by logging them to a log file (log_errors in > > php.ini) My problem is that i'm r

RE: [PHP] Is "gd" present?

2003-06-05 Thread Svein Larsen
$gd_loaded = (extension_loaded('gd'))?1:0; Then you can use if ($gd_loaded) later in your code. - Svein > -Original Message- > From: Esteban Fernandez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2003 17:09 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Is "gd" present? > > > A

[PHP] Error capturing

2003-06-04 Thread Svein Larsen
Hello, Anybody got a good solution for capturing errors in php scripts? I can catch the errors by logging them to a log file (log_errors in php.ini) My problem is that i'm running a lot of sites on my server and i need to know wich site generate the error and cant find any way to get this in the

Re: [PHP] Variables changes their values

2003-06-04 Thread Svein Larsen
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote: > > On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > > > [snip] > > > We would have to see some code > > > > > > Jay > > > > I'm not able to reproduce this in a short code-snippet. > > But from the first echo to the last echo $lid ch

Re: [PHP] Variables changes their values

2003-06-04 Thread Svein Larsen
Thats the strange thing... there IS NO CODE that change the value... And the cut/paste is bad... there is no parse errors and the code snip is only a small part of a scriptfile. - Svein On Tuesday 03 June 2003 15:33, Jay Blanchard wrote: > [snip] > I'm not able to reproduce this in a short code-

Re: [PHP] Variables changes their values

2003-06-03 Thread Svein Larsen
On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > [snip] > We would have to see some code > > Jay I'm not able to reproduce this in a short code-snippet. But from the first echo to the last echo $lid change its value: if ($hostid==31) echo "lid1: $lid"; # Paragraphs #

[PHP] Variables changes their values

2003-06-03 Thread Svein Larsen
I'm getting strange behavior in some of my scripts I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the problem. The problem is that variables changes its values from one line og code to another - without specific code that should change the value. Do anybody else had this proble