Re: [PHP] Re: array_map() with multiple callback functions

2013-05-08 Thread George Langley
On 2013-05-08, at 1:48 PM, Jim Giner wrote: > On 5/7/2013 5:29 PM, George Langley wrote: >> Hi all. I want to apply strtolower() AND trim() to all items in an array. >> But I don't see a way to call multiple callbacks with the array_map() >> function. >>

[PHP] array_map() with multiple callback functions

2013-05-07 Thread George Langley
Hi all. I want to apply strtolower() AND trim() to all items in an array. But I don't see a way to call multiple callbacks with the array_map() function. Are my two choices the following: // 1) nesting two array_map() calls $cleanData = array_map('trim',(array_map('strtolower',$rawData))); // 2

[PHP] Affordable low-fee e-commerce - DIY?

2013-02-18 Thread George Langley
cards appear to be similar, with some percantage and about .22 cents per transactions. Am wondering what other options I'm missing, that won't take such a chunk out of the low price? Is it easy enough to code to some other API for free (or at least cheaper)? Thanks. George Lang

Re: [PHP] Sniping on the List

2011-11-17 Thread George Langley
> >> It's another nail in the coffin of deity constructors. - And just as this thread was getting boringly OT! ;-{)] George Langley Interactive Developer www.georgelangley.ca

[PHP] Sniping on the List

2011-11-14 Thread George Langley
I have kept for reference. Your contributions are very much appreciated - thanks. George Langley Interactive Developer www.georgelangley.ca

Re: [PHP] Frivolous Friday Fun!

2011-11-11 Thread George Langley
On 2011-11-11, at 11:08 AM, Jason Pruim wrote: > > > And on a serious note... To any Past, Present, Or Future service man (Or > woman) Thank you for your sacrifice in defending our ability to send out > these Frivolous Friday emails! :) You're welcome!

[PHP] BP for Looping through an Array

2011-10-28 Thread George Langley
$counter += 1; } Both are the same number of lines, but my tests (see code below) indicate that the foreach loop is twice as fast. Anyone have a "better" way - faster, more efficient, "cooler", etc.? (Or see some flaw in my test code below?

Re: [PHP] different menus for different roles

2011-10-19 Thread George Langley
On 2011-10-20, at 12:31 AM, drupal dev wrote: > I have created two domains in drupal. and two different roles. > > Now i wanted to show different page for each role.can you anybody tell me > how to do it. > > Or share with me if something is readily available. Um, drupal.org woul

Re: [PHP] Problem with code...

2011-10-06 Thread George Langley
uot; . > $_POST['Pfirstname'] . " " . $_POST['Llastname'] . "\n\n"; > >}else{ >$mailmessage .= "Who will pick up the ticket? I will pick it > up my self! \n\n"; > >} > > $mailmessage .= "Payment Method: " . $_POST['paymentMethod']; > >send_email($mailTo, $mailSubject, $mailmessage, $headers); >} > > ?> > > Sometimes... It is dropping the last $mailmessage line... The payment method > in the actual email it sends... > > Anyone have any ideas? I'm stumped Hi there. First thought is perhaps it is not getting a value for paymentMethod and if it doesn't exist, will the line still get added? I would always check to see if every post variable isset, before adding the line. Can write a default line in its place if missing. George Langley Interactive Developer "RIP, Mr. Jobs."

Re: [PHP] book quest

2011-09-29 Thread George Langley
Then get one that focuses on security. O'Reilly has one (or more), but the one I picked up was "Securing PHP Web Applications": http://www.amazon.ca/Securing-PHP-Applications-Tricia-Ballad/dp/0321534344 and was a good read. I just wish book publishers offered an upgrade

Re: [PHP] Any free online tests to test my PHP knowledge?

2011-09-22 Thread George Langley
On 2011-09-22, at 11:53 AM, Mike Hansen wrote: > Does anyone know of a site that has an online test of PHP skills? I'd like to > review my PHP knowledge. > > I've already run across this site: > http://vladalexa.com/scripts/php/test/test_php_skill.html Doesn't appear to be wor

[PHP] While on the topic of PHP Web Site Stats - SharePoint...

2011-09-19 Thread George Langley
hing PHP-based, can only imagine companies using SharePoint must have their IT department in charge of the web site. Am sure it's fine as an internal project management tool, but am very concerned when other developers tell me to run away from anyone who chooses to use SharePoint on anything pub

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread George Langley
me that it is Friday. They all blend together when you're between jobs... And now, back to the job search George Langley Interactive Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread George Langley
On 2011-09-09, at 11:34 AM, Marc Guay wrote: > That low-hanging fruit is too hard for some to resist... --- Phishing is a art. George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread George Langley
On 2011-08-31, at 11:44 PM, Ross McKay wrote: > On Tue, 30 Aug 2011 10:04:54 -0400, Tedd Sperling wrote: > >> I prefer the Whitesmiths style: >> >> http://rebel.lcc.edu/sperlt/citw229/brace-styles.php >> >> But "style" is really up to the individual -- what works best for you >> is the "best"

Re: [PHP] Re: Code should be selv-maintaining!

2011-08-29 Thread George Langley
"The One True Brace Style": Didn't know there was a name for the way I learned to indent! Make sense to me - looks so much cleaner and less scrolling/printing. And, I already add a comment to confirm the end brace: } // end if($myVar) to clar

Re: [PHP] Fwd: ezmlm warning

2011-07-20 Thread George Langley
On 2011-07-20, at 5:40 AM, Jan Reiter wrote: > Hi, I'm in Germany and I got it, too. I get those about once in 6 month ... > nothing to worry about, is it?? > > Regards Got it here: Canada with Shaw ISP. But am getting this thread now, so assume it's "fixed"?

Re: Re: [PHP] Your language sucks because...

2011-07-14 Thread George Langley
- Original Message - From: Micky Hulse > On Thu, Jul 14, 2011 at 4:02 AM, Richard Quadling > wrote: > > My daughter (6 or 7 at the time) came up with T, M and E. I was > > abso-bloody-lutely amazed she managed to find a word starting > with T, > > M and E. > > What was the word? -

Re: [PHP] Your language sucks because...

2011-07-14 Thread George Langley
ng to PHP 4 and CSS 2, so am wondering how many of the entries have been rectified? (For instance, CSS 3 does have multiple background images.) As well, I suspect that some of them may actually make sense if analyzed as to why they are that way, instead of how the author has grouped them. George Langley Multimedia Developer

Re: [PHP] Report generation as pdf and csv in php application for huge record set

2011-07-14 Thread George Langley
On 2011-07-14, at 12:50 AM, Midhun Girish wrote: > > > On Thu, Jul 14, 2011 at 11:18 AM, George Langley > wrote: > On 2011-07-13, at 11:20 PM, Midhun Girish wrote: > > > Hi, > > > > > > - Browsers generally have a 5 minute time-out. If you send the

Re: [PHP] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread George Langley
re as a file here: <http://www.sitepoint.com/generate-pdfs-php/> You should then be able to generate an email notification to send once the file is complete, with the link to the newly-created file. George Langley Multimedia Developer

Re: [PHP] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread George Langley
force the output). When the document is finished, you can send a redirection to it or create a link. Remark: even if the browser times out, the script may continue to run on the server. HTH George Langley Multimedia Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Self-whitelisting (WAS: Top Posting)

2011-07-06 Thread George Langley
On 2011-07-06, at 8:02 AM, Jim Giner wrote: > > "George Langley" wrote : >> On 2011-07-05, at 8:52 PM, Jim Giner wrote: >> >>> Huh? You have a problem with a person having a spam filter that requires >>> one valid response to ensure that the mail

[PHP] Self-whitelisting (WAS: Top Posting)

2011-07-05 Thread George Langley
s valid, and can in turn spam you! Can read the ugly details on Wiki: <http://en.wikipedia.org/wiki/Boxbe> I won't subject my company to that nuisance. George Langley Multimedia Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-13 Thread George Langley
Thanks all. Assuming is best then to add the static in this case. But it isn't required if I birthed an object first and referenced the object, correct? Am wanting to add some variables to the class so not calling the same query so many times... Thanks again. George On 2011-06-

[PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread George Langley
variables (properties) for any need for persistence, and is just a collection of functions (methods), so I don't see a reason to group them into a class - they could all reside as independent functions within the php file. Is this good? Is there some advantage to making a non-p

Re: [PHP] array_multisort into Natural order?

2010-12-13 Thread George Langley
if so, can that use the natsort()? I don't think an asort() can do either. Note that the original source of this info is a mySQL db call, and it is initially sorted in the query, but again, there doesn't appear to be a way to natural sort an SQL query either. So I get file1, file10, fil

Re: [PHP] Brandon Rampersad wants to chat

2010-06-30 Thread George Langley
Actually, it's been SEVEN times since 19 May, including today's. Perhaps the List Mom could step in here? George On 10-Jun-10, at 3:07 PM, Ashley Sheridan wrote: Please could you not send out these auto messages Brandon as I believe this is the second time a message has hit both my email ad

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread George Langley
Hi again. Thanks for all the info! Not sure I'd agree that GET should just "assume" it was URLencoded, but hey - who am I to argue?  :-{)] As mentioned, this is eventually buried into a Joomla! site's login functions (displays any errors). So not sure I'd have access to th

[PHP] $_GET is Mangling Base64 value

2010-03-11 Thread George Langley
ols are there, but the GET is removing them. (And to add a wrinkle, this then goes into a Joomla! page, whose getVar() command completely removes the +, so I couldn't even do a string replace, as I don't know where the + should have been!) Tired of looking at the dark re

Re: [PHP] sending email with php

2009-12-29 Thread George Langley
is a straight-ahead overview of what you can/should/cant/shouldn't do in HTML e-mails. Or check out: for some heavy-duty mail c

Re: [PHP] ip-to-country

2009-12-29 Thread George Langley
;e-zed-p-zed instructions" ;-{)] ) George On 14-Dec-09, at 5:07 AM, Angelo Zanetti wrote: -----Original Message- From: George Langley [mailto:george.lang...@shaw.ca] Sent: 19 October 2009 01:38 AM To: php-general@lists.php.net Subject: Re: [PHP] ip-to-country On 18-Oct-09, at 1:03 PM, SE

Re: [PHP] ip-to-country

2009-10-18 Thread George Langley
On 18-Oct-09, at 1:03 PM, SED wrote: How can I access an index for IP to a country (or a more detailed location)? has both free and various paid services. George -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP broadcast mailer

2009-10-17 Thread George Langley
On 16-Oct-09, at 11:56 PM, George Langley wrote: At what point would it be beneficial to subscribe to a mass mail service such as Constant Contact or iContact, to avoid being blacklisted for sending too many e-mails? On 17-Oct-09, at 12:01 AM, Brian Hazelton wrote: I am sorry, but I am

Re: [PHP] PHP broadcast mailer

2009-10-16 Thread George Langley
Hi there. At what point would it be beneficial to subscribe to a mass mail service such as Constant Contact or iContact, to avoid being blacklisted for sending too many e-mails? George On 16-Oct-09, at 11:41 PM, Brian Hazelton wrote: I am in charge of an email newsletter list and making su

Re: [PHP] Web Site Directory Layout

2009-09-27 Thread George Langley
ntent/[language]/ structure, to put my content php files in, while leaving the structural php files on the root. User preferences and cookies form the path to grab the content, but this way you get similar (and shorter) URLs. George Langley Multimedia Developer www.georgelangley.ca

Re: [PHP] header problem

2009-09-09 Thread George Langley
Hi Blueman. As soon as ANYTHING has been drawn to the browser, you cannot use a header command. So you need to work through all of your code, and ensure that all of your logic that could result in a header call is run BEFORE you send any html code. Is going to be tricky if mixing html and

Re: [PHP] Write Japanese text into an existing PDF

2009-08-31 Thread George Langley
Cool - looks like it could be used to brand a PDF with dynamic text inserted by a visitor to your site. This has potential for me! Thanks! George Langley Musician, Arranger, Composer www.georgelangley.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Re: File or directory?

2009-08-16 Thread George Langley
is_dir() <http://ca3.php.net/is_dir> is_file() <http://ca3.php.net/manual/en/function.is-file.php> George Langley On 15-Aug-09, at 5:45 PM, Clancy wrote: On Sat, 15 Aug 2009 10:33:07 +0100, a...@ashleysheridan.co.uk (Ashley Sheridan) wrote: On Sat, 2009-08-15 at 09:56

Re: [PHP] Sorting mySQL query - one order from multiple fields

2009-07-26 Thread George Langley
e it finds a value for first, for each record. Note how this differs from a multi sort, which sorts by the first field, then subsorts by the second, third, etc. Hope this helps someone. George Langley Multimedia Developer, Audio/Video Editor, Musician, Arranger, Compose

[PHP] Sorting mySQL query - one order from multiple fields

2009-06-14 Thread George Langley
HEN rotime1 ELSE time"); Is there a query sort that will work in this case? Is not the usual "sort by last name, then sort by first name" scenario! Thanks for any pointers. George Langley Multimedia Developer, Audio/Video Editor, Musician, Arranger, Composer http://www.

Re: [PHP] ! and !=

2009-04-22 Thread George Langley
Doh, of course! Just not thinking about the scope of the operator. If $var1 = 1, then !$var1 = 0 Thanks everyone! George - Original Message - From: Tom Rogers Date: Wednesday, April 22, 2009 17:01 Subject: Re: [PHP] ! and != To: George Langley Cc: php-general

[PHP] ! and !=

2009-04-22 Thread George Langley
Hi all. Maybe I'm just getting confused by all the languages I'm trying to work with! But, isn't: if(!$var1 == $var2){ the same thing as if($var1 != $var2){ #1 doesn't work, #2 does. Thanks! George Langley    Multimedia Developer    Audio/Vide

Re: [PHP] Best Practices for Hiding Errors

2009-04-08 Thread George Langley
easier way and just the one time may not be too bad. So maybe is best to turn it off in the actual ini, and turn on only for me, based on my IP or some other flag. Thanks again! George Langley Multimedia Developer, Audio/Video Editor, Musician, Arranger, Composer http://www.george

[PHP] Best Practices for Hiding Errors

2009-04-06 Thread George Langley
end user won't ever get the warning displayed and I can deal with the error behind the scenes? Or is there a better way to keep PHP from writing error codes to the screen? Thanks! George Langley    Multimedia Developer    Audio/Video Editor    Musician, Arranger, Composer www.

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
t storing all of the page content in the database to start with, then searching with a mysql statement is a breeze! On Thu, 2009-03-26 at 16:29 -0600, George Langley wrote: - Original Message - From: Stuart You can't have any extra info in a closing HTML tag. This problem is usual

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
- Original Message - > From: Stuart > > You can't have any extra info in a closing HTML tag. This > > problem is > > usually handled using comments. Something like the following... > > > > > > > > sofihsod hiosdh sdh gus us u sg > > > > > > > > You then just start with you see the b

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
> 2009/3/26 George Langley : > > How do I STOP it? Is it permissible to add the id again in the > closing div tag ie . > From: Stuart > You can't have any extra info in a closing HTML tag. This > problem is > usually handled using comments. Something like the fol

[PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
e a better way to trigger the recording of words on/off? Thanks! George Langley    Multimedia Developer    Audio/Video Editor    Musician, Arranger, Composer www.georgelangley.ca

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread George Langley
nd then it starts having problems. Don't know if something in your code, or just my machine acting up! But may be worth testing somewhere else. HTH. George Langley Multimedia Developer, Audio/Video Editor, Musician, Arranger, Composer http://www.georgelangley.ca -- PHP Gener