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 200
ring);
$l = strlen($string);
for ( $x = 0 ; $x < $l ; $x++ )
{
$c = $s[$x];
$newc = $c ;
foreach ( $replacements as $key => $val )
{
if ( $key == $c )
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
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: http://www.php
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:
> > OSCom
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
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) bu
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, the
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
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 bro
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 see
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.
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 fro
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
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
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.
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 f
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
18 matches
Mail list logo