RE: [PHP] Control Structure problem

2003-09-16 Thread Chris W. Parker
Dan J. Rychlik on Tuesday, September 16, 2003 5:12 PM said: > Thank you guys. I truly know the level of expertise on this mailing > list, and I know that it proves invaluable. If by "I truly know the level of expertise on this mailing list" you meant "I truly don'

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
yeah, it does make more sense to do it that way for some things, but when you get ands, and ors, it gets complicated eg. if ($a == "foo" && $b == "bar" || "something"){ //do something } does that mean $a can either = "foo" or "something" or $b = "bar" or "something"? and thats just a simple

Re: [PHP] Control Structure problem

2003-09-16 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Dan J. Rychlik > on Tuesday, September 16, 2003 5:12 PM said: > > > Thank you guys. I truly know the level of expertise on this mailing > > list, and I know that it proves invaluable. > > > p.p.s. I totally thin

Re: [PHP] Japanese on a page

2003-09-16 Thread - Edwin -
Hi, "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > - Edwin - > on Monday, September 15, 2003 9:45 PM said: > > > Or, you can just declare it inside you're tags (as mentioned > > previously). Also, depending on the charset you're using, you might > > need "shift_ji

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
yeah, i really like using cases they work well and especially if you want to do something different for different values, i forgot about that, its a good way to do it, does php have case else? cuz that is a really handy thing in VB that people often forget... Luke - Original Message - Fr

RE: [PHP] Control Structure problem

2003-09-16 Thread Martin Towell
are you thinking of "default:" ? -Original Message- From: Luke Skywalker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 10:51 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Control Structure problem yeah, i really like using cases they work well and especially if you want to d

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
Yeah, thats exactly what im thinking, and speaking of it, im going to start using it a lot more :) thanks Luke - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Luke Skywalker'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 10:51 AM Subje

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: : : switch ($var) { : case 'TEST-1': case 'TEST-2': case 'TEST-2': : do something : } The switch statement doesn't do an equivalency test, does it? So while this switch statement can be rewritten as: if (($var =

Re: [PHP] Control Structure problem

2003-09-16 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): > On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: > The switch statement doesn't do an equivalency test, does it? So while > this switch statement can be rewritten as: > > if (($var == 'TEST-1') || ($var == 'TEST-1') || ($var == 'TE

Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Tom Rogers
Hi, Wednesday, September 17, 2003, 11:47:45 AM, you wrote: EL> On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: EL> : EL> : switch ($var) { EL> : case 'TEST-1': case 'TEST-2': case 'TEST-2': EL> : do something EL> : } EL> The switch statement doesn't do an equivalency

[PHP] PHP and Palm

2003-09-16 Thread Charles Kline
I have a project in mind where I would like to be able to Sync my Palm with the calendar in my CRM. Anyone have info on doing this? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 01:29:26PM +1000, Tom Rogers wrote: : Wednesday, September 17, 2003, 11:47:45 AM, Eugene Lee wrote: : : EL> The switch statement doesn't do an equivalency test, does it? [...] : EL> it doesn't do: : : EL> if (($var === 'TEST-1') || : EL>($var === 'TEST-

Re: [PHP] Control Structure problem

2003-09-16 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > : switch (true) { > : case ($var === 'TEST-1')?true:false: > : case ($var === 'TEST-2')?true:false: > : case ($var === 'TEST-2')?true:false: > :do something > : } > > Oh man, that's just sick... Partially because it's unnecessari

Re: Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Chris Shiflett
--- Tom Rogers <[EMAIL PROTECTED]> wrote: > This is why you need this construct > > $foo = 0; > switch (true) You must have missed example 1. :-) > which now works as expected Both examples work as expected, of course. Chris = Become a better Web developer with the HTTP Developer's Handbo

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread SLanger
hello just a side note instead of > ereg( '^<$var>(.*)$', $line, $matches ) use preg_match('/^<'.$var.'>(.*)$/', $line, $matches) since it is faster than ereg. Regards Stefan Langer

[PHP] Re: Problem sending HTML formated mail

2003-09-16 Thread SLanger
Hello Use a mail class to send your mail instead of mail. These classes have a lot of workarounds for mail() problems and are fairly easy to manage. I personally prefer phpmailer (http://phpmailer.sourceforge.net) but there are others. Just do a search through the archive for mail or mime classe

[PHP] Re: [PHP-DB] Graphs

2003-09-16 Thread j.zanen
Hi I have been using the utilities from this website with very good results http://www.aditus.nu/jpgraph/ Jack > > from: "Balaji H. Kasal" <[EMAIL PROTECTED]> > date: 2003/09/16 Tue PM 06:48:48 CEST > to: [EMAIL PROTECTED], PHP List <[EMAIL PROTECTED]> > subject: [PHP-DB] Graphs > > > Hi,

Re: [PHP] Re: [PHP-DB] Graphs

2003-09-16 Thread Chris Sherwood
I found phpchartdirector to be a nice third party app http://www.hotscripts.com/Detailed/12237.html - Original Message - From: <[EMAIL PROTECTED]> To: "Balaji H. Kasal" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 10:12 AM Su

[PHP] store whois requests

2003-09-16 Thread IS
I want to store whois requests including the ip address and date/time stamp into a file or MySQL database (a database is what I prefer to use) for monitoring the PHP whois script. Anybody an idea of how I could do this? I'm a beginner in PHP so any help is welcome. --IS -- PHP General Mailing Li

[PHP] RE: [PHP-DB] store whois requests

2003-09-16 Thread Ryan Marks
This is some code I already use... you may wish to change the way you retrieve you whois data. Ryan Whois Hostname: $host"; //backwards tick marks will run this command on the server and echo's it out to the screen echo `whois $host`; echo ""; //get the tim

<    1   2