Re: [PHP] Use PHP the way God intended...

2010-12-13 Thread David Harkness
On Mon, Dec 13, 2010 at 8:48 PM, Paul M Foster wrote: > Nah, if he'd read it backwards, you'd be able to hear MePHPistoPHPeles > say, "Rasmus is the Penguin". > > (Yes, you have to be dang old to get that obscure reference. ;-) > Pshaw, not *that* old! I get the reference, and I'm only . . . oh,

Re: [PHP] empty() in email message

2010-12-13 Thread Gary
t out this was a convoluted method, and I agree. This was sent to me by someone that needed to make the mail form work. My suggestion was to look into a pre-made shopping cart, however that was not going to work for them, so I made the mail() work for them. I had thought about putting it into an array, but had not gotten that far into it. I will look over the code to see how it works. Thank you for your help. gary __ Information from ESET Smart Security, version of virus signature database 5700 (20101213) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] empty() in email message

2010-12-13 Thread Gary
ing variable, instead of having a bunch of empty > messages. So I have been trying to use the empty() function as such: > > . if empty($beefolives){''} elseif (isset($beefolives)) { 'Order: > beefolives > $beefolives\n'} > > But I am getting the error >

Re: [PHP] Use PHP the way God intended...

2010-12-13 Thread Paul M Foster
On Mon, Dec 13, 2010 at 11:04:52PM -0500, Robert Cummings wrote: > On 10-12-13 07:28 PM, Daevid Vincent wrote: > > > > [snip] > > > >I believe it was in the Old PHPestament, > >"The Book of Rasmus" chapter 42 verse 69... > > > >66 ... > >67 And behold as he opened the 5th point 2nd seal > >68

Re: [PHP] empty() in email message

2010-12-13 Thread Gary
oes nothing. You haven't assigned it to anything or > operated on that string in any way. > > You might want to study up on single versus double quotes, the > concatenation operator (.), etc. > > Paul > > -- > Paul M. Foster > Paul Thank you for your reponse. I

Re: [PHP] Use PHP the way God intended...

2010-12-13 Thread Robert Cummings
On 10-12-13 07:28 PM, Daevid Vincent wrote: -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Friday, December 10, 2010 6:54 AM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] ORM doctrine On 10-12-09 10:41 PM, Daevid Vincent wrote: Use

Re: [PHP] empty() in email message

2010-12-13 Thread Gary
ried your first script, and it worked to a degree. What I was getting was a message that was correct, but, well, this is what it looked like in an email Order: beefschnitzel 10Order: Which was supposed to look like Order: beefschnitzel 10 Order: I have not tried your second suggestion yet, I'll let you know how that works. Again, thank you for your help. Gary __ Information from ESET Smart Security, version of virus signature database 5700 (20101213) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] empty() in email message

2010-12-13 Thread Gary
set($beefolives)) { 'Order: > beefolives > $beefolives\n'} > > But I am getting the error > > Parse error: syntax error, unexpected T_IF > > Can someone point me in the right direction? > > Thank you > -- > Gary > > > > __ Information from

Re: [PHP] Scalable Vector Graphics with PHP

2010-12-13 Thread sudarshana sampath
Nathan Nobbe, Thank you very much for your response, Protovis is looking interesting... graphviz also a good one. http://pear.php.net/package-info.php?package=Image_Graphviz On Mon, Dec 13, 2010 at 2:39 PM, Nathan Rixham wrote: > disclaimer: a different nathan > > You may also be interested i

RE: [PHP] empty() in email message

2010-12-13 Thread Daevid Vincent
> - Original message - > From: Gary > To: php-general@lists.php.net > Date: Monday, December 13, 2010, 7:47:49 PM > Subject: [PHP] empty() in email message > > I have an email message > > $msg = 'Name: $fname ' . ' $lname\n' > . "Phone: $phone\n" > . "Email: $email\n" > > and it works

Re: [PHP] empty() in email message

2010-12-13 Thread Andre Polykanine
nexpected T_IF Can someone point me in the right direction? Thank you -- Gary __ Information from ESET Smart Security, version of virus signature database 5699 (20101213) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing Lis

RE: [PHP] Use PHP the way God intended...

2010-12-13 Thread Daevid Vincent
> -Original Message- > From: Robert Cummings [mailto:rob...@interjinn.com] > Sent: Friday, December 10, 2010 6:54 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] ORM doctrine > > On 10-12-09 10:41 PM, Daevid Vincent wrote: > > Use PHP the way God intended i

Re: [PHP] array_multisort into Natural order?

2010-12-13 Thread George Langley
Hi there! Correct me if I'm wrong but merge() just makes one array of all items. array_multisort() keeps each array separate, while applying the same re-ordering to all three arrays. This allows you to use the same position number to get the required elements from each array, especially where ea

Re: [PHP] array_multisort into Natural order?

2010-12-13 Thread Jim Lucas
On 12/13/2010 11:59 AM, George Langley wrote: > Hi all. Can use natsort($array1) to sort a single array of filenames into a > "natural "alphanumeric order - 1.php, 2.php, 5.php, 10.php, 20.php, etc. > But using array_multisort($array1, $array2, $array3) doesn't offer a natsort > option, so I end

Re: [PHP] empty() in email message

2010-12-13 Thread Daniel P. Brown
On Mon, Dec 13, 2010 at 12:47, Gary wrote: > I have an email message > > $msg =  'Name: $fname ' . ' $lname\n' > . "Phone: $phone\n" > . "Email: $email\n" > > and it works fine, however in this message there are about 30 variables that > are being called...as such > > . "Order: beefschnitzel $beef

Re: [PHP] empty() in email message

2010-12-13 Thread Paul M Foster
On Mon, Dec 13, 2010 at 12:47:49PM -0500, Gary wrote: > I have an email message > > $msg = 'Name: $fname ' . ' $lname\n' > . "Phone: $phone\n" > . "Email: $email\n" > > and it works fine, however in this message there are about 30 variables that > are being called...as such > > . "Order: beefs

Re: [PHP] empty() in email message

2010-12-13 Thread a...@ashleysheridan.co.uk
ty($beefolives){''} elseif (isset($beefolives)) { 'Order: beefolives $beefolives\n'} But I am getting the error Parse error: syntax error, unexpected T_IF Can someone point me in the right direction? Thank you -- Gary __ Information from ESET Smart Security, ve

Re: [PHP] empty() in email message

2010-12-13 Thread Bastien Koert
ble, instead of having a bunch of empty > messages.  So I have been trying to use the empty() function as such: > > . if empty($beefolives){''} elseif (isset($beefolives)) { 'Order: beefolives > $beefolives\n'} > > But I am getting the error > > Pars

[PHP] empty() in email message

2010-12-13 Thread Gary
7;'} elseif (isset($beefolives)) { 'Order: beefolives $beefolives\n'} But I am getting the error Parse error: syntax error, unexpected T_IF Can someone point me in the right direction? Thank you -- Gary __ Information from ESET Smart Security, version of virus signature

Re: [PHP] Scalable Vector Graphics with PHP

2010-12-13 Thread Nathan Rixham
disclaimer: a different nathan You may also be interested in protovis, and raphael, both of which are js libraries which make, or export, svg graphics :) Best, Nathan sudarshana sampath wrote: Nathan, Thank you very much for your response, we are going to visualize network management system