Re: [PHP] case-insensitive $_REQUEST,$_GET,$_POST keys?

2012-04-13 Thread David OBrien
On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Anyone have a quick-and-dirty way to check $_REQUEST keys that is case-insensitive? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php this what you

Re: [PHP] case-insensitive $_REQUEST,$_GET,$_POST keys?

2012-04-13 Thread tamouse mailing lists
On Fri, Apr 13, 2012 at 12:22 PM, David OBrien dgobr...@gmail.com wrote: On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Anyone have a quick-and-dirty way to check $_REQUEST keys that is case-insensitive? -- PHP General Mailing List

[PHP] Case Insensativity in String Comparisons

2009-08-25 Thread Ben Miller
Is there a simple to way to compare two strings with case insensitivity so that the following will return true? $foo = Arnold; $bar = arnold; If($foo == $bar) { } Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Case Insensativity in String Comparisons

2009-08-25 Thread Eddie Drapkin
On Tue, Aug 25, 2009 at 12:48 PM, Ben Millerbiprel...@gmail.com wrote: Is there a simple to way to compare two strings with case insensitivity so that the following will return true? $foo = Arnold; $bar = arnold; If($foo == $bar) { } Thanks. -- PHP General Mailing List

[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

RES: [PHP] Case Conversion of US Person Names

2009-07-16 Thread Jônatas Zechim
Assunto: [PHP] Case Conversion of US Person Names 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

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]):'

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: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Yeti
I dont think using all these regular expressions is a very efficient way to do so. As i previously pointed out there are many users who had a similar problem, which can be viewed at: http://it.php.net/manual/en/function.strtr.php One of my favourites is what derernst at gmx dot ch used.

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Yeti
Oh, and i forgot about this one ... jorge at seisbits dot com wrote on 11-Jul-2008 09:04 If you try to make a strtr of not usual charafters when you are in a utf8 enviroment, you can do that: function normaliza ($string){ $string = utf8_decode($string); $string = strtr($string, utf8_decode(

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 5:38 AM, Yeti [EMAIL PROTECTED] wrote: I dont think using all these regular expressions is a very efficient way to do so. As i previously pointed out there are many users who had a similar problem, which can be viewed at: http://it.php.net/manual/en/function.strtr.php

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 9:46 AM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Jul 15, 2008 at 5:38 AM, Yeti [EMAIL PROTECTED] wrote: I dont think using all these regular expressions is a very efficient way to do so. As i previously pointed out there are many users who had a similar problem,

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread tedd
At 10:15 AM -0400 7/15/08, Andrew Ballard wrote: On TueWell, OK, I can think of one optimization. This takes advantage of the fact that preg_replace can accept arrays as parameters. In a couple very quick tests this version is roughly 30% faster than my previous version: -snip- Hey, when you

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 12:30 PM, tedd [EMAIL PROTECTED] wrote: At 10:15 AM -0400 7/15/08, Andrew Ballard wrote: On TueWell, OK, I can think of one optimization. This takes advantage of the fact that preg_replace can accept arrays as parameters. In a couple very quick tests this version is

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Yeti
The original problem was User X submits a character string A. A PHP scripts uses A to search for it's occurences in a DB, ignoring special characters. The result of ze search is a list of character strings M-LIST with matches. This list gets outputted to the user X, but before that all the

Re: [PHP] case and accent - insensitive regular expression?

2008-07-15 Thread Andrew Ballard
On Tue, Jul 15, 2008 at 2:07 PM, Yeti [EMAIL PROTECTED] wrote: The original problem was User X submits a character string A. A PHP scripts uses A to search for it's occurences in a DB, ignoring special characters. The result of ze search is a list of character strings M-LIST with matches.

Re: [PHP] case and accent - insensitive regular expression?

2008-07-14 Thread Giulio Mastrosanti
First of all thank you all for your answers, and thank you for your time and yes Tedd, my question was quite ambiguous in that point. Andrew is right, i don't want to change in any way the list of keys I show in the result, I just want to find the way to higlight the matching words,

Re: [PHP] case and accent - insensitive regular expression?

2008-07-14 Thread Andrew Ballard
On Mon, Jul 14, 2008 at 11:06 AM, Giulio Mastrosanti [EMAIL PROTECTED] wrote: First of all thank you all for your answers, and thank you for your time and yes Tedd, my question was quite ambiguous in that point. Andrew is right, i don't want to change in any way the list of keys I show in

Re: [PHP] case and accent - insensitive regular expression?

2008-07-14 Thread Giulio Mastrosanti
Brilliant !!! so you replace every occurence of every accent variation with all the accent variations... OK, that's it! only some more doubts ( regex are still an headhache for me... ) preg_replace('/[iìíîïĩīĭįı]/iu',... -- what's the meaning of iu after the match string?

Re: [PHP] case and accent - insensitive regular expression?

2008-07-14 Thread Andrew Ballard
On Mon, Jul 14, 2008 at 1:35 PM, Giulio Mastrosanti [EMAIL PROTECTED] wrote: Brilliant !!! so you replace every occurence of every accent variation with all the accent variations... OK, that's it! only some more doubts ( regex are still an headhache for me... )

Re: [PHP] case and accent - insensitive regular expression?

2008-07-13 Thread Andrew Ballard
On Sat, Jul 12, 2008 at 10:29 AM, tedd [EMAIL PROTECTED] wrote: At 9:36 AM +0200 7/12/08, Giulio Mastrosanti wrote: Hi, I have a php page that asks user for a key ( or a list of keys ) and then shows a list of items matching the query. every item in the list shows its data, and the list of

Re: [PHP] case and accent - insensitive regular expression?

2008-07-13 Thread tedd
At 8:31 AM -0400 7/13/08, Andrew Ballard wrote: On Sat, Jul 12, 2008 at 10:29 AM, tedd [EMAIL PROTECTED] wrote: At 9:36 AM +0200 7/12/08, Giulio Mastrosanti wrote: Hi, I have a php page that asks user for a key ( or a list of keys ) and then shows a list of items matching the query.

[PHP] case and accent - insensitive regular expression?

2008-07-12 Thread Giulio Mastrosanti
Hi, I have a php page that asks user for a key ( or a list of keys ) and then shows a list of items matching the query. every item in the list shows its data, and the list of keys it has ( a list of comma-separated words ) I would like to higlight, in the list of keys shown for every

Re: [PHP] case and accent - insensitive regular expression?

2008-07-12 Thread tedd
At 9:36 AM +0200 7/12/08, Giulio Mastrosanti wrote: Hi, I have a php page that asks user for a key ( or a list of keys ) and then shows a list of items matching the query. every item in the list shows its data, and the list of keys it has ( a list of comma-separated words ) I would like

Re: [PHP] Case sensitive password

2008-06-21 Thread Pavel
В сообщении от Friday 20 June 2008 23:05:55 Andrew Ballard написал(а): if(preg_match('/^'.$_SESSION['userpass'].'$/i',$login)) { So, why you use /i ? :-) -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED] === А ещё говорят так: The

Re: [PHP] Case sensitive password

2008-06-20 Thread Andrew Ballard
On Thu, Jun 19, 2008 at 7:29 PM, Kyle Browning [EMAIL PROTECTED] wrote: Why not md5 the password, and store the md5 encryption. Then when they type something in, md5 it and compare the md5 strings. That will ensure that it is Case Sensitive On Thu, Jun 19, 2008 at 2:04 PM, R.C. [EMAIL

Re: [PHP] Case sensitive password

2008-06-19 Thread tedd
At 9:36 PM -0700 6/18/08, R.C. wrote: I have coded a php page that accepts a password. What is the code to make sure the password entered is NOT case-sensitive? Thanks much R.C. Why? If a user has selected a password, then leave it alone and don't change it -- it's their password. If a

Re: [PHP] Case sensitive password

2008-06-19 Thread Daniel Brown
On Thu, Jun 19, 2008 at 12:45 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: i hate posting the same answer to a given question thats already been posted, but i had this all typed in when chris submitted his answer, so here it is again.. One of the very, very few things that pisses me off about

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Chris, Thank you. That worked good. Appreciate the assistance. Best R.C. Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] R.C. wrote: Thank you for your reply. The password is not stored, actually, like in a databse. We're only dealing with one password. When the user

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Nathan, Thank you ... very thorough. Best R.C. Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i hate posting the same answer to a given question thats already been posted, but i had this all typed in when chris submitted his answer, so here it is again.. On Wed, Jun

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Tedd, thank you for your input but it's the site client who wants the user to input this ONE password either upper or lower case...it's for accessing a protected page... nothing major. But generally I agree... if the user has selected a password, that is what he/she wants and it should be left

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
I've tried some of the methods mentioned in earlier posts, but I don't understand this correctly. Here is the code I have to validate a hard corded password to access a page, which is in upper case WHERE do I input the code to make sure that whatever case a user inputs this word, it will

Re: [PHP] Case sensitive password

2008-06-19 Thread tedd
At 8:59 AM -0700 6/19/08, R.C. wrote: Tedd, thank you for your input but it's the site client who wants the user to input this ONE password either upper or lower case...it's for accessing a protected page... nothing major. Nothing major until it is. As for the client, I always said Everyone

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Hi Tedd, It is NOT the user who determines this ONE password, it's the client... he gives it out to selected folks to input For example: he says to a few people: use video to access this page okay? He would like to make this word case-insensitive so the few people can type in either Video or

Re: [PHP] Case sensitive password

2008-06-19 Thread Andrew Ballard
On Thu, Jun 19, 2008 at 3:11 PM, tedd [EMAIL PROTECTED] wrote: At 8:59 AM -0700 6/19/08, R.C. wrote: Tedd, thank you for your input but it's the site client who wants the user to input this ONE password either upper or lower case...it's for accessing a protected page... nothing major.

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Andrew, That is correct. Only ONE password to access a restricted page for selected people. But... they want to make that ONE password case-insensitive. I added the following code with 2 variables now, one being upper case, one being lower case but that, of course, doesn't cover all the

Re: [PHP] Case sensitive password

2008-06-19 Thread Daniel Brown
On Thu, Jun 19, 2008 at 4:18 PM, R.C. [EMAIL PROTECTED] wrote: Andrew, That is correct. Only ONE password to access a restricted page for selected people. But... they want to make that ONE password case-insensitive. I added the following code with 2 variables now, one being upper case, one

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Thank you Daniel, I think that did the trick. Am checking this out now... Best R.C. Daniel Brown [EMAIL PROTECTED] wrote in message session_start(); $_SESSION ['userpass'] = $_POST ['pass']; $_SESSION ['authuser'] = 0; $login = VIDEO; $login2 = video; if

Re: [PHP] Case sensitive password

2008-06-19 Thread Kyle Browning
Why not md5 the password, and store the md5 encryption. Then when they type something in, md5 it and compare the md5 strings. That will ensure that it is Case Sensitive On Thu, Jun 19, 2008 at 2:04 PM, R.C. [EMAIL PROTECTED] wrote: Thank you Daniel, I think that did the trick. Am checking

Re: [PHP] Case sensitive password

2008-06-19 Thread tedd
At 4:06 PM -0400 6/19/08, Andrew Ballard wrote: I could be wrong, but I didn't see anything about a username. It sounds to me more like it is a single password shared with all the people who should have access to a specific, non-personalized area of the site. It certainly wouldn't be my

[PHP] Case sensitive password

2008-06-18 Thread R.C.
I have coded a php page that accepts a password. What is the code to make sure the password entered is NOT case-sensitive? Thanks much R.C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Case sensitive password

2008-06-18 Thread Chris
R.C. wrote: I have coded a php page that accepts a password. What is the code to make sure the password entered is NOT case-sensitive? Before you store the password, make it all lowercase (or uppercase, whatever you prefer). $password = strtolower($password); When you compare the passwords,

Re: [PHP] Case sensitive password

2008-06-18 Thread Nathan Nobbe
i hate posting the same answer to a given question thats already been posted, but i had this all typed in when chris submitted his answer, so here it is again.. On Wed, Jun 18, 2008 at 10:36 PM, R.C. [EMAIL PROTECTED] wrote: I have coded a php page that accepts a password. What is the code to

Re: [PHP] Case sensitive password

2008-06-18 Thread R.C.
Thank you for your reply. The password is not stored, actually, like in a databse. We're only dealing with one password. When the user inputs the password, he/she should be able to input either in lower or upper case or both abd they should have access to the protected file in this case. Is

Re: [PHP] Case sensitive password

2008-06-18 Thread Chris
R.C. wrote: Thank you for your reply. The password is not stored, actually, like in a databse. We're only dealing with one password. When the user inputs the password, he/she should be able to input either in lower or upper case or both abd they should have access to the protected file in

Re: [PHP] Case insensitive ksort

2007-09-18 Thread Jim Lucas
Christoph Boget wrote: I looked in the docs but didn't see anything regarding case insensitivity and I fear the functionality doesn't exist. I'm just hoping I'm looking in the wrong place. Is there a way to get ksort to work without regard to case? When I sort an array using ksort, all the

[PHP] Case insensitive ksort

2007-09-18 Thread Christoph Boget
I looked in the docs but didn't see anything regarding case insensitivity and I fear the functionality doesn't exist. I'm just hoping I'm looking in the wrong place. Is there a way to get ksort to work without regard to case? When I sort an array using ksort, all the upper case keys end up at

Re: [PHP] Case insensitive ksort

2007-09-18 Thread Robin Vickery
On 18/09/2007, Christoph Boget [EMAIL PROTECTED] wrote: I looked in the docs but didn't see anything regarding case insensitivity and I fear the functionality doesn't exist. I'm just hoping I'm looking in the wrong place. Is there a way to get ksort to work without regard to case? When I

Re: [PHP] Case insensitive ksort

2007-09-18 Thread TG
the proper upper/lowercase version too, you could store that separately within the array. Just some thoughts on how you could do this. good luck! -TG - Original Message - From: Christoph Boget [EMAIL PROTECTED] To: php-general@lists.php.net Date: Tue, 18 Sep 2007 11:37:01 -0400 Subject: [PHP

[PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Jochem Maas
Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI cache is not connected to the web server cache: From:

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Ray Hauge
On Saturday 29 July 2006 05:47, Jochem Maas wrote: Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI

Re: [PHP] [Case Closed - Idiot Found Behind Keyboard] Re: [PHP] APC - problems with CLI odd return values from apc_clear_cache()

2006-07-29 Thread Jochem Maas
Ray Hauge wrote: On Saturday 29 July 2006 05:47, Jochem Maas wrote: Jon Anderson wrote: Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest

[PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Nicolas Verhaeghe
Hi all! I have a text highlight function which does not behave exactly as needed. Behavior is logical but result is cumbersome. Instead of replacing the portion of the text with the same portion of text with some highlighting code added before and after, it replaces the said text with the chunk

Re: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chris
Here is the function: function highlight_text($text, $highlight) { return eregi_replace($highlight, span class=highlight . $highlight . /span, $text); } In this case, if the text to highglight is: MacOS X Super Gizmo And a client searches for the string macos, the result will be: span

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Nicolas Verhaeghe
, because the string searched for is of a different case. But thanks for helping. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 5:39 PM To: Nicolas Verhaeghe Cc: php-general@lists.php.net Subject: Re: [PHP] Case issue with eregi_replace in text

Re: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chris
Nicolas Verhaeghe wrote: That's not where the issue is. Eregi_replace conducts a case insensitive SEARCH but how the REPLACE operates has nothing to do with it. If you use ereg_replace, then it is most obviously not going to replace MacOS with span class=highlightmacos/span or even span

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chrome
: Nicolas Verhaeghe [mailto:[EMAIL PROTECTED] Sent: 23 February 2006 00:55 To: 'Chris' Cc: php-general@lists.php.net Subject: RE: [PHP] Case issue with eregi_replace in text highlight function That's not where the issue is. Eregi_replace conducts a case insensitive SEARCH but how the REPLACE operates

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Nicolas Verhaeghe
This does not highlight anything... Sorry! Thanks for the help -Original Message- From: Chrome [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 6:19 PM To: 'Nicolas Verhaeghe'; 'Chris' Cc: php-general@lists.php.net Subject: RE: [PHP] Case issue with eregi_replace in text

Re: [PHP] Case-Insensitive include on linux.

2006-01-11 Thread Marco Kaiser
Hi, this is very stupid because you can have files in a directory named: PleaSeINCLUDeMe.php pleaseincludeme.php and if you do a case insensitive include which one should be included? The include stuff works insensitive under windows great because the filesystem does not permit 2 file with the

RE: [PHP] Case-Insensitive include on linux.

2006-01-11 Thread George Pitcher
Mathijs wrote: Is there a way to have include() be case-insensitive? If you are know that all your file and directory names are lower case, but users may input mixed case responses that will be used to determine the include, you can set the case of the user input to lower case with

Re: [PHP] Case-Insensitive include on linux.

2006-01-11 Thread Mathijs
George Pitcher wrote: Mathijs wrote: Is there a way to have include() be case-insensitive? If you are know that all your file and directory names are lower case, but users may input mixed case responses that will be used to determine the include, you can set the case of the user input to

[PHP] Case-Insensitive include on linux.

2006-01-10 Thread Mathijs
Hello there, Is there a way to have include() be case-insensitive? This would be very handy. Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Case-Insensitive include on linux.

2006-01-10 Thread Albert
Mathijs wrote: Is there a way to have include() be case-insensitive? Linux file systems are case sensitive. The include() and require() functions try to open the file specified. If you enter the wrong case the file system will return that the file does not exist. Albert -- No virus found in

Re: [PHP] CASE Tool For PHP OO Programming

2005-07-12 Thread david forums
DIA with the estension xml2php5 Le Mon, 11 Jul 2005 15:22:32 +0200, Pascual De Ruvo [EMAIL PROTECTED] a écrit: Hi, Can someone suggest a free CASE Tool for UML modelling that generates PHP 5 code? Thanks in advance, Pascual De Ruvo -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] CASE Tool For PHP OO Programming

2005-07-12 Thread Linda
I have been using Sparx Systems Enterprise Architect. david forums [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] DIA with the estension xml2php5 Le Mon, 11 Jul 2005 15:22:32 +0200, Pascual De Ruvo [EMAIL PROTECTED] a écrit: Hi, Can someone suggest a free CASE Tool for UML

[PHP] CASE Tool For PHP OO Programming

2005-07-11 Thread Pascual De Ruvo
Hi, Can someone suggest a free CASE Tool for UML modelling that generates PHP 5 code? Thanks in advance, Pascual De Ruvo

[PHP] [case closed][Fwd: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5]]

2005-07-01 Thread Jochem Maas
thanks for that explanation, case closed. :-) Original Message Return-Path: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5] X-Virus-Scanned: amavisd-new at moulin.nl Due to PHPs dynamic typing, unquoted strings are

[PHP] CASE tool

2005-05-14 Thread Krid
Hello, can anybody here tell me if there is a (open souce) CASE tool which supports PHP code generation? I could not find anything like this yet. What's the best way designing PHP applikations? I guess anybody knows a whitepaper or tutorial URI ?! Thanks Krid -- PHP General Mailing List

[PHP] case insensitive sort

2003-08-26 Thread Steve Buehler
I am using the following function for a sort on an array. I hope someone can help me out here and let me know how to change it to make it a case insensitivie sort. Right now, it is case sensitive so the sort of the array will put the Capital letters first. Here are the results of the search:

Re: [PHP] case insensitive sort

2003-08-26 Thread Steve Buehler
Ok. Now I REALLY feel like an idiot. Thanks so much for your help. Steve At 05:46 PM 8/26/2003 +0200, you wrote: It right there under your nose: strcasecmp() Steve Buehler wrote: I am using the following function for a sort on an array. I hope someone can help me out here and let me know

Re: [PHP] case insensitive sort

2003-08-26 Thread Marek Kilimajer
It right there under your nose: strcasecmp() Steve Buehler wrote: I am using the following function for a sort on an array. I hope someone can help me out here and let me know how to change it to make it a case insensitivie sort. Right now, it is case sensitive so the sort of the array will

[PHP] Case Matching

2003-01-06 Thread ed
Not really sure if this would be a PHP or a MySQL issue. I'm using a database to store username for authentication purposes. Is there a way to make the user entry match case in the mysql database? Right now I have some users with all uppercase usernames that are able to login typing their

Re: [PHP] Case Matching

2003-01-06 Thread Michael J. Pawlowsky
What field type did you make the usernames? TEXT types are case incensitives use VARCHAR *** REPLY SEPARATOR *** On 06/01/2003 at 2:09 PM [EMAIL PROTECTED] wrote: Not really sure if this would be a PHP or a MySQL issue. I'm using a database to store username for

[PHP] case statement?

2002-12-19 Thread Max Clark
Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] case statement?

2002-12-19 Thread Rick Emery
switch() { case a: case b: case c: default: } RTFM - Original Message - From: Max Clark [EMAIL PROTECTED] To: Sent: Thursday, December 19, 2002 12:19 PM Subject: [PHP] case statement? Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else

Re: [PHP] case statement?

2002-12-19 Thread Chris Wesley
On Thu, 19 Dec 2002, Max Clark wrote: I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). switch function ... http://www.php.net/manual/en/control-structures.switch.php ~Chris -- PHP General

RE: [PHP] case statement?

2002-12-19 Thread Ford, Mike [LSS]
-Original Message- From: Max Clark [mailto:[EMAIL PROTECTED]] Sent: 19 December 2002 18:19 I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). http://www.php.net/control-structures.switch

Re: [PHP] case statement?

2002-12-19 Thread Manuel Ochoa
Yes, It's called SWITCH Just go to www.php.net and lookup switch in the function list Max Clark [EMAIL PROTECTED] wrote:Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). Thanks in advance, Max --

Re: [PHP] case statement?

2002-12-19 Thread Mark Charette
On Thu, 19 Dec 2002, Max Clark wrote: Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). The documentation and search capabilities at http://www.php.net are your frientd. It would behhove you to at

[PHP] == case-sensitive?

2002-09-23 Thread Hawk
I've never really payed attention to this before, but now I noticed that == is case-sensitive, how do I make it == with different cases ? Håkan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] == case-sensitive?

2002-09-23 Thread Krzysztof Dziekiewicz
I've never really payed attention to this before, but now I noticed that == is case-sensitive, how do I make it == with different cases ? if(strtolower($a) == strtolower($b)) -- Krzysztof Dziekiewicz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] == case-sensitive?

2002-09-23 Thread Jon Haworth
Hi Hawk, I've never really payed attention to this before, but now I noticed that == is case-sensitive, how do I make it == with different cases ? Just force the case while you're comparing the two: if (strtolower($a) == strtolower($b)) { echo case-insensitive match; } else { echo no

RE: [PHP] == case-sensitive?

2002-09-23 Thread Ford, Mike [LSS]
-Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: 23 September 2002 12:33 To: [EMAIL PROTECTED] Subject: [PHP] == case-sensitive? I've never really payed attention to this before, but now I noticed that == is case-sensitive, how do I make it == with different

[PHP] Case Sensitivity

2002-08-11 Thread Rich Hutchins
I've had a web site under development on my Win2k box at home. I built and tested everything with PHP 4.2.2 and Apache 1.3.24. Now, I have transitioned everything up to my host who is using a Linux box, PHP 4.2.2 and Apache 1.3.26. One of the pages I designed has code that retrieves a list of

Re: [PHP] Case Sensitivity

2002-08-11 Thread Andrew Brampton
, August 12, 2002 2:20 AM Subject: [PHP] Case Sensitivity I've had a web site under development on my Win2k box at home. I built and tested everything with PHP 4.2.2 and Apache 1.3.24. Now, I have transitioned everything up to my host who is using a Linux box, PHP 4.2.2 and Apache 1.3.26. One

Re: [PHP] Case Sensitivity

2002-08-11 Thread Rasmus Lerdorf
Filesystems are meant to be case-sensitive, and yes, URL's are as well. It's an abomination that Windows and old-style Mac filesystems are not. You need to keep track of that in your code. 'a' and 'A' are just as different as 'a' and 'b'. -Rasmus On Sun, 11 Aug 2002, Rich Hutchins wrote:

[PHP] case-insensitive str_replace

2002-05-02 Thread Reuben D Budiardja
Hi, I am in need of a case-insensitive str_replace. I've tried the search the archive and documentation, but the mostly suggested thing is to use eregi_replace. But this does not really solve the problem for me since the argument for eregi_replace can't be an array. The feature that I use in

[PHP] Case Statements - lil help please

2002-03-30 Thread Patrick Hartnett
Are case statements not implemented in PHP4? If so, can someone help me debug this one, I seem to have some syntax incorrect, and am not sure what exactly is wrong with the statement. I get a parse error on the first line, but can't find any documentation on case statements in PHP4, so I am

Re: [PHP] Case Statements - lil help please

2002-03-30 Thread Dennis Moore
.; break; default: $message = An unspecified error occurred.; break; } - Original Message - From: Patrick Hartnett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 31, 2002 12:03 AM Subject: [PHP] Case Statements - lil help please Are case statements

[PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Leif K-Brooks
I'm doing some replacing with str_replace, but it's case sensitive. Is there any way to make it not case-sensitive? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Martin Towell
use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but the former function does) -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Case non-sensitive replacing

RE: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Miguel Cruz
On Wed, 20 Mar 2002, Martin Towell wrote: use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but the former function does) Close - it's eregi_replace(). To use preg_replace case-insensitively, just toss an 'i' at the end of your pattern. Instead of:

Re: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Leif K-Brooks
PROTECTED] Subject: [PHP] Case non-sensitive replacing with str_replace? I'm doing some replacing with str_replace, but it's case sensitive. Is there any way to make it not case-sensitive? First of all, the function is eregi_replace(), not ereg_ireplace(). Anyway, that one goes slower because it has

RE: [PHP] case insenstive

2002-03-07 Thread Kearns, Terry
PROTECTED]] Sent: Tuesday, 5 March 2002 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] case insenstive I need to make this case insensitive. This seems like over kill? if((substr($author, 0, 1) == a) or (substr($author, 0, 1) == a)) { } -- PHP General Mailing List (http

[PHP] case insenstive

2002-03-04 Thread jtjohnston
I need to make this case insensitive This seems like over kill? if((substr($author, 0, 1) == a) or (substr($author, 0, 1) == a)) { } -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

RE: [PHP] case insenstive

2002-03-04 Thread Jason Murray
I need to make this case insensitive. This seems like over kill? if((substr($author, 0, 1) == a) or (substr($author, 0, 1) == a)) { } if((strtolower(substr($author, 0, 1)) == a) { } :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] case insenstive

2002-03-04 Thread Niklas Lampén
if (eregi(^a, $author)) { print blah!; } Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 8:08 To: [EMAIL PROTECTED] Subject: [PHP] case insenstive I need to make this case insensitive. This seems like over kill? if((substr

Re: [PHP] case insenstive

2002-03-04 Thread Kevin Stone
] To: [EMAIL PROTECTED] Sent: Monday, March 04, 2002 11:08 PM Subject: [PHP] case insenstive I need to make this case insensitive. This seems like over kill? if((substr($author, 0, 1) == a) or (substr($author, 0, 1) == a)) { } -- PHP General Mailing List (http://www.php.net

Re: [PHP] case insenstive

2002-03-04 Thread Frank
if ($author[0]=='a' || $author[0]=='A') { } or (much slower) if (strtolower($author[0])=='a') { } -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] Case insensitive str_replace

2002-01-10 Thread Valentin V. Petruchek
Hello list. Need you help. My aim is to str_replace ($word,b$word/b,$str). But: i want str_replace not to differ uppers and lowers: Rector = bRec/btor after str_replace ('rec',brec/b,Rector) in other words. It seemes to me ereg can help, but i'm still not good at it. Help please Valentin

  1   2   >