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

2009-02-12 Thread George Langley
, and 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 General Mailing List

[PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
on/off? Thanks! George Langley    Multimedia Developer    Audio/Video Editor    Musician, Arranger, Composer www.georgelangley.ca

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
2009/3/26 George Langley george.lang...@shaw.ca: How do I STOP it? Is it permissible to add the id again in the closing div tag ie /div id=divContent. From: Stuart stut...@gmail.com You can't have any extra info in a closing HTML tag. This problem is usually handled using comments

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
- Original Message - From: Stuart stut...@gmail.com You can't have any extra info in a closing HTML tag. This problem is usually handled using comments. Something like the following... div id=divContent !-- content begin -- sofihsod hiosdh sdh gus us u sg !-- content end

Re: [PHP] Limit Local Search to Content

2009-03-26 Thread George Langley
wrote: What about 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 stut...@gmail.com You can't have any extra info in a closing HTML

[PHP] Best Practices for Hiding Errors

2009-04-06 Thread George Langley
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.georgelangley.ca -- PHP General Mailing List

Re: [PHP] Best Practices for Hiding Errors

2009-04-08 Thread George Langley
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.georgelangley.ca

[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/Video Editor    Musician

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 trog...@kwikin.com Date: Wednesday, April 22, 2009 17:01 Subject: Re: [PHP] ! and != To: George Langley

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

2009-06-14 Thread George Langley
, then sort by first name scenario! Thanks for any pointers. George Langley Multimedia Developer, Audio/Video Editor, Musician, Arranger, Composer http://www.georgelangley.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-07-26 Thread George Langley
, 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, Composer http://www.georgelangley.ca

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 +0200, Ralph Deffke

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

2009-08-31 Thread George Langley
- 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, visit: http

Re: [PHP] header problem

2009-09-10 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] Web Site Directory Layout

2009-09-27 Thread George Langley
/[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] 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

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] 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)? http://www.maxmind.com/app/ip-location has both free and various paid services. George -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] ip-to-country

2009-12-29 Thread George Langley
;-{)] ) 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, SED wrote: How can I access an index

Re: [PHP] sending email with php

2009-12-29 Thread George Langley
http://articles.sitepoint.com/article/code-html-email-newsletters is a straight-ahead overview of what you can/should/cant/shouldn't do in HTML e-mails. Or check out: http://www.devshed.com/c/a/PHP/Composing-Messages-in-HTML-for-MIME-Email-with-PHP/ for some heavy-duty mail

[PHP] $_GET is Mangling Base64 value

2010-03-11 Thread George Langley
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 red spot on the wall! Thanks. George

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 the

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

Re: [PHP] array_multisort into Natural order?

2010-12-13 Thread George Langley
G - Original Message - From: Jim Lucas li...@cmsws.com Date: Monday, December 13, 2010 16:00 Subject: Re: [PHP] array_multisort into Natural order? To: George Langley george.lang...@shaw.ca Cc: php-general@lists.php.net On 12/13/2010 11:59 AM, George Langley wrote: Hi all. Can use

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

2011-06-09 Thread George Langley
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-persistent class? Thanks! George Langley    Multimedia Developer

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

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

2011-07-06 Thread George Langley
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] 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 george.lang...@shaw.ca 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 from an address is from a real person

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

2011-07-13 Thread George Langley
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] Report generation as pdf and csv in php application for huge record set

2011-07-13 Thread George Langley
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-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 george.lang...@shaw.ca 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 PDF directly to the browser

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

2011-07-14 Thread George Langley
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: Re: [PHP] Your language sucks because...

2011-07-14 Thread George Langley
- Original Message - From: Micky Hulse rgmi...@gmail.com On Thu, Jul 14, 2011 at 4:02 AM, Richard Quadling rquadl...@gmail.com 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.

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: [PHP] Re: Code should be selv-maintaining!

2011-08-29 Thread George Langley
The One True Brace Style: http://en.wikipedia.org/wiki/Indent_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 clarify

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

2011-09-01 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 (unless it's a

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] Re: Repetitive answers . . .

2011-09-09 Thread George Langley
search George Langley Interactive Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-09-19 Thread George Langley
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 public. Thanks. George Langley

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

Re: [PHP] book quest

2011-09-29 Thread George Langley
/0321534344 and was a good read. I just wish book publishers offered an upgrade path if you bought an earlier edition, the way software publishers do! Perhaps that will be the greatest advantage an iPad or Kobo will have over paper. George Langley Multimedia Developer

Re: [PHP] Problem with code...

2011-10-06 Thread George Langley
, before adding the line. Can write a default line in its place if missing. George Langley Interactive Developer RIP, Mr. Jobs.

Re: [PHP] different menus for different roles

2011-10-20 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 would

[PHP] BP for Looping through an Array

2011-10-28 Thread George Langley
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?) Thanks. George Langley -- TEST CODE -- ?php echo h1Loop Test/h1; // create a large

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! CPO2 George Langley HMCS

[PHP] Sniping on the List

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

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] Affordable low-fee e-commerce - DIY?

2013-02-18 Thread George Langley
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 Langley Interactive

[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))); //

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. Are my two choices the following: // 1