Re: [PHP] Array question

2007-02-27 Thread Gerry D
Mike, See entire function under topic Array question - maybe UTF?... I am trying to change accented characters to their equivalent without accents. And yes, the arrays look fine after var_dump()... Gerry On 2/27/07, Ford, Mike [EMAIL PROTECTED] wrote: On 27 February 2007 04:23, Gerry D

[PHP] Array question

2007-02-26 Thread Gerry D
I have a question on how to retrieve the value that corresponds to a key in an array. $fruit = array('a' = 'apple', 'b' = 'banana', 'c' = 'cranberry'); $key = array_search($c, $fruit); if ( $key === FALSE ) $n = $c; else

[PHP] JPEG info needed

2007-01-22 Thread Gerry D
I need PHP to find out if a jpeg file uses progressive encoding. None of the standard exif or image functions seem to be able to tell me that. (please correct me if I'm wrong) Can anybody help me? TIA Gerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Shopping cart

2006-08-21 Thread Gerry D
So if I understand you gentlemen correctly, these pre-builds serve as examples how NOT to do it? Gerry On 8/20/06, Larry Garfield [EMAIL PROTECTED] wrote: On Sunday 20 August 2006 20:17, Gerry D wrote: On 8/19/06, Larry Garfield [EMAIL PROTECTED] wrote: OSCommerce is crap. Don't bother

Re: [PHP] Shopping cart

2006-08-20 Thread Gerry D
On 8/19/06, Larry Garfield [EMAIL PROTECTED] wrote: OSCommerce is crap. Don't bother. Why do you say that, Larry? I may want to get into an app like that because I think one of my clients is ready for it. What are the cons, and what are my options? What are Drupal's limitations? TIA Gerry

Re: [PHP] How to run one php app from another?

2006-08-13 Thread Gerry D
I don't know if you solved this already, but I use it to redirect to different pages depending on whther the user is logged in or not. Something like header(location:/page/?p=login); works fine. You were on the right track. Gerry On 6/15/06, tedd [EMAIL PROTECTED] wrote: Hi gang: This seems

Re: [PHP] Re: How to run one php app from another? RECAP

2006-08-13 Thread Gerry D
On 6/16/06, tedd [EMAIL PROTECTED] wrote: At 2:35 PM +0200 6/16/06, Barry wrote: But once output is made. You can't remove it. That isn't possible with PHP. I think I get it now. PHP does everything before the user see's anything. Any links (direct or via a form) are objects that the browser

Re: [PHP] page redirecting

2006-08-13 Thread Gerry D
On 6/28/06, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, June 28, 2006 5:17 am, kristianto adi widiatmoko wrote: i need to redirecting page, it could be done by using header function like this header(Location : page2.php?var1=foo); Then, the URL should be a full, complete URL, and not

Re: [PHP] Preventing double-clicks

2006-08-13 Thread Gerry D
Jay, I use a technique to prevent hitting the back button and resubmitting data. I use a 2-script process, one with the form and submit button (I set a session var here), and a second form (the action script). The action script makes sure the session variable is set, processes the info, then

Re: [PHP] Functions

2006-08-13 Thread Gerry D
On 6/30/06, Richard Lynch [EMAIL PROTECTED] wrote: #2. Don't alter the case of the input data, if at all possible. Accept what the user has given, and take it as it is. You can make your application not care about case, and you can format the case on ouput (maybe even with fancy CSS stuff) but

Re: [PHP] Chicago PHP Conference

2006-08-12 Thread Gerry D
Richard, Within the US that might be ok, but given latest developments, who wants to fly into the US from elsewhere? I could drive from Canada if I take 2 weeks vacation... I don't want to be a show stopper, but I think you need to explain what your target audience is re global travel, not just

Re: [PHP] Comment form spammer

2006-08-12 Thread Gerry D
My implementation of captcha eliminated chinese spam. See http://www.lilyregister.com/page/?p=contact Gerry On 8/9/06, Micky Hulse [EMAIL PROTECTED] wrote: Hi, Recently, a client of mine was getting a ton of spam email from a site called hotbox.com. I updated her form to one with more spam

Re: [PHP] A way to stop spam on this list

2006-08-12 Thread Gerry D
They're not Jap but Chi. And they drove me crazy on my websites until I fixed them. http://www.lilyregister.com/page/?p=contact is what stopped the idiots. Gerry On 6/19/06, Denis Gerasimov [EMAIL PROTECTED] wrote: Hello List Members, I am very tired of deleting spam messages received from

Re: [PHP] Unicode

2006-08-12 Thread Gerry D
Tedd, Interesting that nobody knows the answer... I am struggling with this very issue for an international lily register... http://www.lilyregister.com/ Gerry On 6/5/06, tedd [EMAIL PROTECTED] wrote: At 7:08 PM -0700 6/4/06, Rasmus Lerdorf wrote: Larry Garfield wrote: In C or C++, yes. In

Re: [PHP] New Help with Javascript Navigation

2006-04-29 Thread Gerry D
Yah, and why are people still mindlessly clicking OK to install ActiveX plugins? On 4/27/06, Porpoise [EMAIL PROTECTED] wrote: Gerry D [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Interesting discussions... :) I see two issues: 1. if you are exposing php scripts to the client

Re: [PHP] New Help with Javascript Navigation

2006-04-27 Thread Gerry D
Interesting discussions... :) I see two issues: 1. if you are exposing php scripts to the client, how does the server side processing know what it should do and what the client should see? 2. and why can't JS write to the client's file system? Or read from files? Come to my website and let me

[PHP] Removing special chars

2006-04-25 Thread Gerry D
I would like to replace all chars in a string that are not a-z or 0-9 with a space. I can use a series of str_replace functions, but there has to be a faster way. I know there is a solution but my chemo-brain is slowing me down today. Sorry... Any suggestions? TIA Gerry -- PHP General Mailing