RE: [PHP] Better way (if...elseif...else)

2001-03-29 Thread John Guynn
One thing I would do different is: switch ($fcol){ case 000: break; case 050: break; default: break; } To me the switch/case code is easier to read/maintain. I know that doesn't actually solve your repetition problem but it will make it a little easier to look at. John Guynn This

[PHP] OOP question regarding class extension

2001-03-19 Thread John Guynn
Can one class extend multiple classes? I'm still playing with OOP functionality and maybe my logic is reversed but I think I need one class to extend many others. John Guynn This email brought to you by RFCs 821 and 1225. -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] Dynamic Arrays?

2001-03-15 Thread John Guynn
to manipulate it) is to serialize or implode the array and store the result of the serialize/implode operation in the database. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: RealGM [mailto:[EMAIL PROTECTED]] Hi, I have a bit of a dilemma. I hav

RE: [PHP] Is it odd or even???

2001-03-05 Thread John Guynn
: if (!($num % 2) { Odd } else { Even } John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 2:33 PM To: 'Kenneth R Zink II'; Php (E-mail) Subject: RE: [PHP] Is it odd or even???

RE: [PHP] Generating percentages of numbers

2001-02-21 Thread John Guynn
* 100 = 50 array[2]/array[0] = 0.25 * 100 = 25 array[3]/array[0] = .25 * 100 = 25 Like I said it's too simple but I haven't tested it so I'm probably missing something. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Blake S. [mailt

[PHP] Any performance penalties for switch vs. if/else?

2001-02-13 Thread John Guynn
If I have a complex if else statement and I replace it with a switch case statement do I loose any performance? I would think I would gain performance and the code is definitely easier to maintain but I wanted some other opinions. John Guynn This email brought to you by RFCs 821 and 1225

[PHP] Any image drawing tutorials anywhere?

2001-02-08 Thread John Guynn
I am rapidly coming to the conclusion that I need to be able to draw a fairly simple image (.gif or .jpg doesn't matter) with PHP to get Netscape to display it correctly. Can anyone point me to a tutorial? Thanks in advance, John Guynn This email brought to you by RFCs 821 and 1225. --

RE: [PHP] phpinfo ?

2001-01-26 Thread John Guynn
I've always used the echo and it does work under PHP4...just tested it on www.teamkaos.org before I made my post. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: H. Wade Minter [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:47

RE: [PHP] phpinfo ?

2001-01-26 Thread John Guynn
Actually what you need is otherwise you're never going to get anything on the screen. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 3:30 PM To: kaab kaoutar; [

RE: [PHP] Echo and Print

2001-01-26 Thread John Guynn
WOW, I'm surprised to learn this as I display MANY html tags using echo and it works great. The info below is totally incorrect, echo will send out html tags no problem. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: kaab kaoutar [mailto:[

RE: [PHP] below10host.com as webhost?

2001-01-22 Thread John Guynn
of a couple of outages in the year or so I've been with them and those outages have been very short (an hour or less). John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Jeff Lacy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:54 AM

RE: [PHP] phpwebhosting.com

2001-01-17 Thread John Guynn
>From my experience with them they only have one host serving their customers. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Toby Butzon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:04 PM To: Egan; [EMAIL PROTECTED] Subject:

RE: [PHP] phpwebhosting.com

2001-01-17 Thread John Guynn
they always respond quickly to requests and in the rare even of a server failure they tell you what happened if you ask. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Matt "TrollBoy" Wiseman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Janua

RE: [PHP] how reliable is Windows2000 / php ?

2001-01-17 Thread John Guynn
ormal" user apps and it's rock solid. Can't really comment on performance because I'm the only person hitting the "web site". John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Jamie Burns [mailto:[EMAIL PROTECTED]] Sent: Wed

RE: [PHP] Looking for a freeware PHP/MySQL classifieds script

2001-01-12 Thread John Guynn
No luck there...perl based one but not PHP. I've also tried hotscripts.com. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 11:17 AM To: John Guynn Cc: Php (E-mail) Subjec

[PHP] Looking for a freeware PHP/MySQL classifieds script

2001-01-12 Thread John Guynn
I found one but it's written in German and I have enough trouble with English (my native language). Any suggestions? John Guynn This email brought to you by RFCs 821 and 1225. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

[PHP] Performance question

2001-01-11 Thread John Guynn
Do I pay a performance penality for calling a file that only contains html code .php or .php3? In otherwords what is the php parser overhead if there is no php code in the file? John Guynn This email brought to you by RFCs 821 and 1225. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] PHP simulator

2001-01-10 Thread John Guynn
I just installed Apache, PHP, and MySQL onto my personal NT (ok Win2K) machine for testing and development. It was really simple...took less than an hour total to get working. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Todd Cary [mailto:[EMAIL

RE: [PHP] Shopping Carts

2001-01-10 Thread John Guynn
ild a cart from scratch. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, January 10, 2000 10:18 AM To: PHP User Group Subject: [PHP] Shopping Carts Hello, I am making a shopping cart. I am wo