Re: [PHP] Include Files in HTML

2009-09-04 Thread phphelp -- kbk
On Sep 4, 2009, at 5:03 PM, sono...@fannullone.us wrote: Depends on what you are including. The only tags that can be inside the head are , , ,

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread phphelp -- kbk
Here is a simple but effective one, which has the advantage of optionally doing datetime. -- -- http://www.rainforestnet.com If anyone knows of others that do both date and datetime, I'd love to see them. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Case Conversion of US Person Names

2009-07-16 Thread phphelp -- kbk
On Jul 16, 2009, at 4:06 PM, Leonard Burton wrote: Try this class here: http://code.google.com/p/lastname/ Oo! That looks *very* interesting. Thank you. Have you tried it? Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RES: [PHP] Case Conversion of US Person Names

2009-07-16 Thread phphelp -- kbk
On Jul 16, 2009, at 1:19 PM, Jônatas Zechim wrote: U can try this: function fNme($n){ $tN=count($n=explode(' ',strtolower($n))); $nR=''; for($i=0;$i<$tN;$i++){if($i==0){$nR.=strlen($n[$i])>3?ucwords($n [$i]):$n[$i] ;}else{$nR.=strlen($n[$i])>3?' '.ucwords($n[$i]):' '.

[PHP] Case Conversion of US Person Names

2009-07-16 Thread phphelp -- kbk
Hi, All -- -- - - I occasionally find myself in need of a utility to do case conversion of people's names, especially when I am converting data from an old to a new system. This is the first such occasion in PHP. I know about ucwords() and mb_convert_case(). They do not accommodate names

[PHP] Container or Calling Class

2009-05-24 Thread phphelp -- kbk
Hey -- folks -- -- - I am trying to figure out one aspect of PHP's object model. Is it good practice to have a class be a property of another class? In other words: class foo_handler { function add_bar() { include bar_class.inc; $this->bar_handler = ne

Re: [PHP] Forms validation and creation- easier solution?

2009-05-22 Thread phphelp -- kbk
On May 20, 2009, at 2:03 AM, Angelo Zanetti wrote: We have done quite a few projects and we are looking to find better ways to implementing forms. This is fairly simple to roll-your-own. I do it from metadata. I check MySQL metadata for data types, lengths, and defaults. In addition, my

Re: [PHP] Session data files

2009-05-09 Thread phphelp -- kbk
Thanks, Tom - - On May 8, 2009, at 12:37 PM, Tom Worster wrote: On 5/8/09 11:09 AM, "phphelp -- kbk" wrote: Just something I'm curious about: When I run PHP on my development box (W2K), I just get one session file per connection which gets deleted (usually) after the session

[PHP] Session data files

2009-05-08 Thread phphelp -- kbk
Hey, folks --- Just something I'm curious about: When I run PHP on my development box (W2K), I just get one session file per connection which gets deleted (usually) after the session expires. When I look at the session files on the client server (linux/apache), there seems to be one sessi

Re: [PHP] https and Credit Cards

2009-04-14 Thread phphelp -- kbk
On Apr 13, 2009, at 10:19 PM, Skip Evans wrote: But doesn't also the form need to be secure since you're sending CC information from that form back to the web site's server? That's what I've always assumed. I need some opinions on this, and if I'm right I think the client will defer to a f

Re: [PHP] Logical next step in learning?

2009-04-14 Thread phphelp -- kbk
On Apr 14, 2009, at 10:58 AM, Gary wrote: I think most books have you writing code, and Head First did as well, so I think that is covered.. No, it isn't. There is a big difference between writing it the way a book tells you to do it, hand-holding all the way and doing it. When you actu

Re: [PHP] Web Development work

2009-02-25 Thread phphelp -- kbk
Hello -- - Ernie -- -- - Consulting work is a business. Work doesn't fall from the sky. You have to figure out what you do. Not good enough to say "I'm a programmer" -- that and a dollar will get you half-a-cup of coffee at McDonalds. Figure out where your strengths are. Figure out where

Re: [PHP] Anyone else have trouble with Apple Mail threading this list?

2009-01-02 Thread phphelp -- kbk
On Dec 31, 2008, at 5:55 PM, Brian Dunning wrote: ... When I hit Reply or Reply All in Mail, it wants to reply directly to the poster, and only CC's the list... That is just the way the list works. (If you look at threads, you will see a fairly-constant stream of reminders to "reply all" to

Re: [PHP] When is an Exception not an Exception?

2008-12-31 Thread phphelp -- kbk
On Dec 31, 2008, at 2:12 PM, c...@l-i-e.com wrote: Sorry for the noise. Now that I know what is happening, I'm feeling silly for asking. For me, hitting the the "Send" button often suddenly opens my eyes. Too bad there is no "un-Send" button. Ken -- PHP General Mailing List (http://www.

Re: [PHP] Decorator with public methods

2008-12-27 Thread phphelp -- kbk
On Dec 26, 2008, at 7:53 PM, Larry Garfield wrote: I have an object to which I want to add behavior (methods). I cannot use inheritance here because the object is already of a type or subtype (vis, I am already using inheritance for something else), and because I want to be able to add mu

[PHP] cURL: curl_exec return value

2008-12-20 Thread phphelp -- kbk
Hey - - - - - - - I am new to using cURL, so I would appreciate your help. Fortunately, I have samples to follow, but the return value is not as I expect. In short, instead of returning a Resource, it is just returning TRUE. I have tried setting: curl_setopt($ch, CURLOPT_RETURNTRANSFER,

Re: [PHP] Credit Card processing: Chase PaymenTech

2008-12-15 Thread phphelp -- kbk
Thanks, Guys -- To those who say 'move providers' -- I can't. My client, which also sells a bunch of other stuff on-line has an exclusive arrangement with that processor. How about using gateway providers? Any experience with that? Ken On Dec 15, 2008, at 1:06 AM, clive w

[PHP] Credit Card processing: Chase PaymenTech

2008-12-12 Thread phphelp -- kbk
Hello - - --- -- - -- I need to develop Credit Card processing for my current application. We have our own shopping cart. We have been trying in vain to get technical information from PaymenTech for *months* -- but it seems that Chase sold part of it, or split it off into a separate compan

Re: [PHP] Re: Foreign Keys Question

2008-12-12 Thread phphelp -- kbk
In my enrollment database, we keep historical information. My client is a big computer training organization (for which I also teach). The enrollment information is quite fluid -- people are always canceling or rescheduling. It is important for us to know a person's history. $.02 Ken On D

Re: [PHP] Foreign Keys Question

2008-12-11 Thread phphelp -- kbk
On Dec 11, 2008, at 12:55 PM, Robert Cummings wrote: On Thu, 2008-12-11 at 13:46 -0500, tedd wrote: At 12:29 PM -0600 12/11/08, phphelp -- kbk wrote: Hey tedd --- Do I understand your structure correctly that you have something like: Courses (table) course_id, subject_id, student1_id

Re: [PHP] Foreign Keys Question

2008-12-11 Thread phphelp -- kbk
Hey tedd --- Do I understand your structure correctly that you have something like: Courses (table) course_id, subject_id, student1_id, student2_id, student3_id, student4_id, Is that right? Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu