[PHP] Re: [PHP-DB] Re: [PHP] Best practices for using MySQL index

2008-05-09 Thread Gergely Hodicska
Hi! While this is not a MySQL mailing list, I try to give you some hints and keep it short. There is maybe one important thing which should considered: clustered index. If use InnoDB you can think about to not using a surrogate key but a natural one which best support the query which you will

Re: [PHP] xml processing cdata

2008-05-09 Thread Brady Mitchell
The last comment on http://php.net/manual/en/function.simplexml-load-string.php is what you need: simplexml_load_string($xmlstring, 'SimpleXMLElement', LIBXML_NOCDATA); Brady On May 9, 2008, at 1250PM, Chris W wrote: I have an xml file with a cdata element like the one below. How would I

Re: [PHP] Re: unsubscribe

2008-05-09 Thread Nathan Nobbe
On Fri, May 9, 2008 at 8:25 PM, tedd <[EMAIL PROTECTED]> wrote: > At 3:45 PM -0600 5/9/08, Nathan Nobbe wrote: > >> On Fri, May 9, 2008 at 2:57 PM, tedd < >> [EMAIL PROTECTED]> wrote: >> >> >> It's interesting when people are smart enough to subscribe, but dummy-up >> whe

Re: [PHP] Re: unsubscribe

2008-05-09 Thread tedd
At 3:45 PM -0600 5/9/08, Nathan Nobbe wrote: On Fri, May 9, 2008 at 2:57 PM, tedd <[EMAIL PROTECTED]> wrote: It's interesting when people are smart enough to subscribe, but dummy-up when exiting. Do you think this list saps intelligence? im getting dumber by the d

Re: [PHP] Re: unsubscribe

2008-05-09 Thread Nathan Nobbe
On Fri, May 9, 2008 at 2:57 PM, tedd <[EMAIL PROTECTED]> wrote: > At 2:39 PM -0400 5/9/08, Wolf wrote: > >> bobcray <[EMAIL PROTECTED]> wrote: >> >>> unsubscribe >>> >> >> http://www.php.net and unsubscribe yourself. >> > > Yeah, I got that sent to me as well. > > It's interesting when peopl

Fwd: [PHP] php.ini

2008-05-09 Thread Nathan Nobbe
bouncing back to the list.. -- Forwarded message -- From: Michael Satterwhite <[EMAIL PROTECTED]> Date: Fri, May 9, 2008 at 3:09 PM Subject: Re: [PHP] php.ini To: Nathan Nobbe <[EMAIL PROTECTED]> On Friday 09 May 2008 13:43:27 you wrote: > On Fri, May 9, 2008 at 12:02 PM, Michael

[PHP] Re: [PHP-WIN] Include Question!

2008-05-09 Thread Stut
Please include the list when replying, unless you're willing to pay my standard hourly rate. On 9 May 2008, at 20:49, Matthew Gonzales wrote: Thanks for the responses. I think that I need to clarify. I am looking to use an include to minimize the amount of code on the page. So I wanted to

[PHP] Re: unsubscribe

2008-05-09 Thread tedd
At 2:39 PM -0400 5/9/08, Wolf wrote: bobcray <[EMAIL PROTECTED]> wrote: unsubscribe http://www.php.net and unsubscribe yourself. Yeah, I got that sent to me as well. It's interesting when people are smart enough to subscribe, but dummy-up when exiting. Do you think this list saps int

Re: [PHP] usort inside a class

2008-05-09 Thread It flance
It works thanks a lot! --- On Fri, 5/9/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > From: Richard Heyes <[EMAIL PROTECTED]> > Subject: Re: [PHP] usort inside a class > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Date: Friday, May 9, 2008, 8:47 PM > > i'm trying to build a class tha

Re: [PHP] usort inside a class

2008-05-09 Thread Richard Heyes
i'm trying to build a class that sorts a multidimensional array. I'm using the php function "usort". I declared the comparision function as a method of my class but i'm unable to give it as argument to the function usort. this "usort($this->arr, $this->cmpi)" gaves the following error: usort()

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Roberto Mansfield
Jason Pruim wrote: >> Why do you want tenth's of pounds? Just divide pounds by 16 and you'll >> get ounces. > > It's actually for a weight calculator that we use for some of our > mailings. when you take .226 and multiply that by 464 you get 104.864 > ounces. > > I need to be able to display that

[PHP] usort inside a class

2008-05-09 Thread It Maq
Hi, i'm trying to build a class that sorts a multidimensional array. I'm using the php function "usort". I declared the comparision function as a method of my class but i'm unable to give it as argument to the function usort. this "usort($this->arr, $this->cmpi)" gaves the following error: usor

Re: [PHP] Why doesn't working with array's ever stick in my thickhead?

2008-05-09 Thread Jason Pruim
On May 9, 2008, at 4:23 PM, Roberto Mansfield wrote: Roberto Mansfield wrote: (I'm assuming .226 is the cost per ounce and 464 is the total number of ounces) It sure is Friday. This assumption doesn't make any sense! Yeah... and my work day is almost done! SO Happy Friday to you all! B

Re: [PHP] Why doesn't working with array's ever stick in my thickhead?

2008-05-09 Thread Roberto Mansfield
Roberto Mansfield wrote: > (I'm assuming .226 is the cost per ounce and 464 is the total number of > ounces) It sure is Friday. This assumption doesn't make any sense! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] xml processing cdata

2008-05-09 Thread Chris W
I have an xml file with a cdata element like the one below. How would I use the php xml functions to extract that cdata and save it as a pdf file? obj-type="1" system="0"> The code I have is this... $in = fopen("test.xml", 'r'); $XMLStr = ''; while (!feof($in)) { $LineNumber++; $XMLSt

Re: [PHP] php.ini

2008-05-09 Thread Janet Valade
Nathan Nobbe wrote: On Fri, May 9, 2008 at 12:02 PM, Michael Satterwhite <[EMAIL PROTECTED]> wrote: I do know that on bluehost, they actually encourage people to use their own php.ini file in their web directory ... and users certainly don't have the authority to restart apache. That said -

Re: [PHP] Re: unsubscribe

2008-05-09 Thread Jason Pruim
On May 9, 2008, at 2:39 PM, Wolf wrote: bobcray <[EMAIL PROTECTED]> wrote: unsubscribe http://www.php.net and unsubscribe yourself. Or look at the bottom of ANY message posted to the list and look for this line: PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] php.ini

2008-05-09 Thread Nathan Nobbe
On Fri, May 9, 2008 at 12:02 PM, Michael Satterwhite <[EMAIL PROTECTED]> wrote: > I do know that on bluehost, they actually encourage people to use their own > php.ini file in their web directory ... and users certainly don't have the > authority to restart apache. > > That said - just for grins,

[PHP] Re: unsubscribe

2008-05-09 Thread Wolf
bobcray <[EMAIL PROTECTED]> wrote: > unsubscribe http://www.php.net and unsubscribe yourself. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2008-05-09 Thread Michael Satterwhite
On Friday 09 May 2008 11:59:25 Wolf wrote: > When making changes to Apache configuration read files, you have to RESTART > APACHE before those changes take effect. > > However you can use php's ini_set () function to set a number of settings > on the fly that can be changed per page change. As th

Re: RES: [PHP] php.ini

2008-05-09 Thread Michael Satterwhite
On Friday 09 May 2008 11:56:32 Thiago Pojda wrote: > phpinfo() should also tell you what php.ini is loaded. > > Did you check that? I hadn't thought to, but I just did. As expected, it's reading it from /etc/php5/apache2. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: php.ini

2008-05-09 Thread Shawn McKenzie
Michael Satterwhite wrote: I'm trying to turn off magic quotes for a site. I've copied the php.ini from /etc/php5/apache2 to the web site directory. In this file, I've changed magic_quotes_gpc to read magic_quotes.gpc = Off When I run phpinfo() from this directory, it still shows magic

Re: [PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
André Medeiros wrote: Yeah, that would be the way to do it ;) On Fri, May 9, 2008 at 3:54 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: Shawn McKenzie wrote: André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After repl

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread tedd
At 1:29 PM -0400 5/9/08, Jason Pruim wrote: Hey tedd On May 9, 2008, at 1:21 PM, tedd wrote: At 12:56 PM -0400 5/9/08, Jason Pruim wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Jason Pruim
Hey tedd On May 9, 2008, at 1:21 PM, tedd wrote: At 12:56 PM -0400 5/9/08, Jason Pruim wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that I'm working with: Numbe

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Jason Pruim
On May 9, 2008, at 1:05 PM, Dan Joseph wrote: On Fri, May 9, 2008 at 12:56 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread tedd
At 12:56 PM -0400 5/9/08, Jason Pruim wrote: Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that I'm working with: NumberOfPieces * PieceWeight = TotalWeight explode total we

Re: [PHP] Recursion... Sort of...

2008-05-09 Thread tedd
At 5:48 PM -0400 5/8/08, Matt Neimeyer wrote: Is there a way to tell if a function has been called that has resulted in a call to the same function? We have an in-house CRM app that has a function that draws a tabbed panel on a screen... BUT if there are sub-sub-tabbed panels we want to invert t

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Dan Joseph
On Fri, May 9, 2008 at 12:56 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > SO it's friday, I'm tired, and I can't seem to think straight... I am > attempting to do some very basic math with some arrays... Here's the pseudo > code that I'm working with: > > NumberOfPieces * PieceWei

Re: [PHP] php.ini

2008-05-09 Thread Adam Richardson
And, at some hosts you have to change the settings in htaccess as opposed to php.ini. On Fri, May 9, 2008 at 12:53 PM, André Medeiros <[EMAIL PROTECTED]> wrote: > I'm not sure PHP5 would read php.ini from that directory. > > You should take in account that your hosting company may _NOT_ allow > y

Re: [PHP] php.ini

2008-05-09 Thread Wolf
Michael Satterwhite <[EMAIL PROTECTED]> wrote: > I'm trying to turn off magic quotes for a site. I've copied the php.ini > from /etc/php5/apache2 to the web site directory. In this file, I've changed > magic_quotes_gpc to read > magic_quotes.gpc = Off > > When I run phpinfo() from t

[PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Jason Pruim
Hi Everyone, SO it's friday, I'm tired, and I can't seem to think straight... I am attempting to do some very basic math with some arrays... Here's the pseudo code that I'm working with: NumberOfPieces * PieceWeight = TotalWeight explode total weight to get tenth's of pounds, then divide t

Re: [PHP] php.ini (typo in previous)

2008-05-09 Thread Michael Satterwhite
There was a typo in my previous message asking the question. I typed a "." instead of "_". It's corrected below: On Friday 09 May 2008 11:47:29 Michael Satterwhite wrote: > I'm trying to turn off magic quotes for a site. I've copied the php.ini > from /etc/php5/apache2 to the web site directory.

Re: [PHP] php.ini

2008-05-09 Thread André Medeiros
I'm not sure PHP5 would read php.ini from that directory. You should take in account that your hosting company may _NOT_ allow you to change certain parameters. That said, try visiting http://us2.php.net/configuration.changes and see how that works for you. Good luck On Fri, May 9, 2008 at 4:47

RES: [PHP] php.ini

2008-05-09 Thread Thiago Pojda
phpinfo() should also tell you what php.ini is loaded. Did you check that? Atenciosamente, www.softpartech.com.br Thiago Henrique Pojda Desenvolvimento Web +55 41 3033-7676 [EMAIL PROTECTED] Excelência em Softwares Financeiros -Mensagem original- De: Michael Satterwhite [mailto:[EMAI

[PHP] php.ini

2008-05-09 Thread Michael Satterwhite
I'm trying to turn off magic quotes for a site. I've copied the php.ini from /etc/php5/apache2 to the web site directory. In this file, I've changed magic_quotes_gpc to read magic_quotes.gpc = Off When I run phpinfo() from this directory, it still shows magic quotes as being on. I'm gue

Re: [PHP] Re: british date format

2008-05-09 Thread André Medeiros
Yeah, that would be the way to do it ;) On Fri, May 9, 2008 at 3:54 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Shawn McKenzie wrote: >> >> André Medeiros wrote: >>> >>> Shawn, >>> >>> I think the idea here was to get a timestamp from a date in that >>> format he was telling about. >>> >>> Aft

Re: [PHP] Recursion... Sort of...

2008-05-09 Thread Matt Neimeyer
Wow! Thanks guys! Here's what I ended up doing... To get... Black on White - 1 White on Black - 2 Black on White - 3 Black on White - 3 White on Black - 2 Black on White - 3 I had to do something like... function doStuff() { static $callCount = 0; $callCount++; if($c

Re: [PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
Shawn McKenzie wrote: André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I noticed that strptime is only implemented in PHP5. Sorry about that mate. On Fri, May 9, 2008 at 2:36 PM, Shawn McKenzie <

Re: [PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I noticed that strptime is only implemented in PHP5. Sorry about that mate. On Fri, May 9, 2008 at 2:36 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrot

Re: [PHP] Recursion... Sort of...

2008-05-09 Thread Nathan Nobbe
On Fri, May 9, 2008 at 1:52 AM, Stut <[EMAIL PROTECTED]> wrote: > On 9 May 2008, at 02:02, Nathan Nobbe wrote: > >> function doStuff() { >> static $callCount; >> >> if(!isset($callCount)) >> $callCount = 1; >> else >> $callCount++; >> >> /// do stuff w/ $callCount to potentially handle sub-tabs

Re: RES: [PHP] Odd performance problem

2008-05-09 Thread Robert Cummings
On Fri, 2008-05-09 at 08:42 -0300, Thiago Pojda wrote: > > Runs the same for me either way... under PHP4 and PHP5. You must have > a nice system, takes 22 seconds both ways on my Athlon 2400 :) Maybe it's because I use Evolution for my mail client and it has steadily increased it's CPU suckage ov

Re: [PHP] Re: british date format

2008-05-09 Thread André Medeiros
Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I noticed that strptime is only implemented in PHP5. Sorry about that mate. On Fri, May 9, 2008 at 2:36 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Merca, Ansta Ltd wr

[PHP] Re: british date format

2008-05-09 Thread Shawn McKenzie
Merca, Ansta Ltd wrote: Hi Anyone "dd/mm/" as a date variable? strtotime - works fine with "mm/dd/" but now with "dd/mm/". (PHP 4.x) setlocale() and then... http://pt.php.net/manual/en/function.strftime.php -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] british date format

2008-05-09 Thread André Medeiros
Try this: http://pt.php.net/manual/en/function.strptime.php Use the result with mktime to get the timestamp. I also checked set_locale but that won't interfere with strtotime :( On Fri, May 9, 2008 at 9:58 AM, Merca, Ansta Ltd <[EMAIL PROTECTED]> wrote: > Hi > > Anyone "dd/mm/" as a date var

Re: [PHP] Odd performance problem

2008-05-09 Thread Joeri Sebrechts
Ha, I tried again today, and now there's no difference. I'm thinking now that this was some sort of page boundary issue, or something of the sort. On the one hand it's a relief I can move on, on the other hand it's frustrating because I know for a fact that I saw those differences, and this prob

Re: [PHP] Re: Where to start!

2008-05-09 Thread David Giragosian
I doubt this will have any sway on the contributors to this thread, but I ran across a db normalization "rule of thumb" yesterday in a tutorial for another language: "Normalize until it hurts; De-normalize until it works." I lean towards finding a middle ground, so this makes sense to me. --David

Re: [PHP] quick question

2008-05-09 Thread Stut
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it didn't If you're sure that's the format of the date, this will do it... list($day, $month, $year) = explode('/', $thedate); $thetimestamp = mktime(0, 0, 0, $

Re: [PHP] quick question

2008-05-09 Thread Richard Heyes
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it didn't strtotime() returns a unix timestamp (ie number of seconds since 1970ish. Nothing to do with the date object. -- Richard Heyes +---

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
Yea but implde will loose the "Keys" Chetan Dattaram Rane Software Engineer -Original Message- From: Thiago Pojda [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 5:30 PM To: 'Zoltán Németh'; 'Chetan Rane' Cc: 'Shelley'; 'PHP General list' Subject: RES: [PHP] Get array as string -

RES: [PHP] Get array as string --Help

2008-05-09 Thread Thiago Pojda
Depending on your needs you could also use implode() and then save it to a file. Thiago Henrique Pojda Desenvolvimento Web +55 41 3033-7676 [EMAIL PROTECTED] Excelência em Softwares Financeiros -Mensagem original- De: Zoltán Németh [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 9 d

RES: [PHP] quick question

2008-05-09 Thread Thiago Pojda
What do you mean read a string as a date, a date object? Atenciosamente, www.softpartech.com.br Thiago Henrique Pojda Desenvolvimento Web +55 41 3033-7676 [EMAIL PROTECTED] Excelência em Softwares Financeiros -Mensagem original- De: Merca, Ansta Ltd [mailto:[EMAIL PROTECTED] Enviada

Re: [PHP] quick question

2008-05-09 Thread Richard Heyes
Ho to read date from HTML form -> How to read $_POST['date']="dd/mm/" string variable as a date? If you want a unix timestamp then try investigating strtotime(). -- Richard Heyes ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.o

RES: [PHP] Odd performance problem

2008-05-09 Thread Thiago Pojda
My tests on PHP 4.4.8 Default files: Run 1) done at 100045 Time: 12.5804 Seconds Run 2) done at 100045 Time: 12.6775 Seconds Run 3) done at 100045 Time: 13.0696 Seconds Now editing the file, removed the switch case 'a' part. Run 1) done at 100045 Time: 12.6981 Seconds Run 2) done at 100

RE: [PHP] Get array as string --Help

2008-05-09 Thread Zoltán Németh
> Yet another option is use serialize(array()) or you could use var_export if you need php code http://php.net/var_export greets, Zoltán Németh > > Chetan Dattaram Rane > Software Engineer > > > > -Original Message- > From: Shelley [mailto:[EMAIL PROTECTED] > Sent: Friday, May 09, 2008 3

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
Yet another option is use serialize(array()) Chetan Dattaram Rane Software Engineer -Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 3:11 PM To: PHP General list Subject: [PHP] Get array as string --Help Hi all, If I have an array like this: $ar

RE: [PHP] Get array as string --Help

2008-05-09 Thread Chetan Rane
What is the format you want it to be You can use JSON_encode(array()); To get into a text like representation Chetan Dattaram Rane Software Engineer -Original Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 3:11 PM To: PHP General list Subject: [PHP] Ge

[PHP] british date format

2008-05-09 Thread Merca, Ansta Ltd
Hi Anyone "dd/mm/" as a date variable? strtotime - works fine with "mm/dd/" but now with "dd/mm/". (PHP 4.x) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get array as string --Help

2008-05-09 Thread James Dempster
serialize -- /James On Fri, May 9, 2008 at 10:40 AM, Shelley <[EMAIL PROTECTED]> wrote: > Hi all, > > If I have an array like this: > $arr = array ( >'c' => 'd', >'e' => 'f'); > > How can I convert this array into a string? I want to write an array into a > file.

[PHP] Get array as string --Help

2008-05-09 Thread Shelley
Hi all, If I have an array like this: $arr = array ( 'c' => 'd', 'e' => 'f'); How can I convert this array into a string? I want to write an array into a file. Thanks in advance. -- Regards, Shelley

[PHP] quick question

2008-05-09 Thread Merca, Ansta Ltd
Hi Ho to read date from HTML form -> How to read $_POST['date']="dd/mm/" string variable as a date? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie - is there a function similar to the sql 'like' comparison operator?

2008-05-09 Thread Colin Guthrie
revDAVE wrote: Newbie - is there a function similar to the sql 'like' comparison operator? I would like to be able to compare 2 strings: If $this ---*like or similar to*--- $that That type of thing... I strongly suggest you read up on regular expressions: http://uk.php.net/manual/en/book.reg

[PHP] Re: PHP/SOAP WDSL Restrictions

2008-05-09 Thread Paul van Brouwershaven
> I'm struggling with the WDSL restrictions in PHP/SOAP for a while Sorry, I mean WSDL instead of WDSL. But of course the problem stays the same :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP/SOAP WDSL Restrictions

2008-05-09 Thread Paul van Brouwershaven
Hi All, I'm struggling with the WDSL restrictions in PHP/SOAP for a while know. I would like to create some simple restrictions in my WDSL file. The script are running both on the same server with PHP Version 5.2.6 with the official soap extension. On both my client and server there is some

Re: [PHP] Recursion... Sort of...

2008-05-09 Thread Stut
On 9 May 2008, at 02:02, Nathan Nobbe wrote: function doStuff() { static $callCount; if(!isset($callCount)) $callCount = 1; else $callCount++; /// do stuff w/ $callCount to potentially handle sub-tabs and stuff if($callCount == 2) { echo 'white on black'; } else { echo 'black

Re: [PHP] Odd performance problem

2008-05-09 Thread Robert Cummings
On Wed, 2008-05-07 at 17:31 +0200, Joeri Sebrechts wrote: > Hello, > > While debugging a script that ran too slowly I came across something that I > can't explain. > > It is inactive code that when removed doubles the run time of the script. > > Specifically, the issue is a switch statement, w

[PHP] Odd performance problem

2008-05-09 Thread Joeri Sebrechts
Hello, While debugging a script that ran too slowly I came across something that I can't explain. It is inactive code that when removed doubles the run time of the script. Specifically, the issue is a switch statement, where one of the cases is never reached. If I remove the case from the code