[PHP] str_replace problem

2002-02-04 Thread Tomy Wagner

hi, 

got a weird problem... what i am trying is this:
$str = str_replace("é", "e", $str);
in a string containing a 'é' for sure...
but it doesn't replace it..
when i try this: 

echo str_replace("é", "e", "dfsdfsdfé");
it works !?

any suggestions?

Tomy Wagner



Re: [PHP] Re: Sessions and Opera

2002-04-10 Thread Tomy Wagner

and btw the browsers dont save the registered vars they are stored on the
server side... :) the browser only stores a cookie containing the session id
...

Tomy Wagner
- Original Message -
From: "Steve Fitzgerald" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:38 PM
Subject: [PHP] Re: Sessions and Opera


> Cookies it was. Thanks
>
> Julio Nobrega Trabalhando wrote:
>
> >   Cookies disabled? Or cache? Have you tried a 'fresh' Opera install or
a
> > newer version?
> >
> > --
> >
> > Julio Nobrega.
> >
> > Um dia eu chego lá:
> > http://sourceforge.net/projects/toca
> >
> > Ajudei? Salvei? Que tal um presentinho?
> > http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
> >
> > "Steve Fitzgerald" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > While testing a login page with different browsers I noticed that
Opera
> > > (vers5.02)
> > > didn't allow me access to the site despite using the correct input, so
I
> > > wrote the
> > > following pages to test Opera's performance. It seems that Opera
doesn't
> > >
> > > pass registered variables to the new page. IE & NS both print the
output
> > >
> > > as expected, but in Opera all variables are empty.
> > > Has anyone got any thoughts/solutions/experiences?
> > >
> > > regards
> > > Steve
> > >
> > > --
> > > ## login page
> > >
> > >  > >   $password = "letmein";
> > >   if (isset($input)){
> > >   if ($input == $password){
> > >   $auth = 1;
> > >   session_start();
> > >   session_register(enter,input,password,auth);
> > >   header("Location: 2.php");
> > >   exit;
> > >   }
> > >   }
> > > ?>
> > > 
> > >  method="POST">
> > > Enter password: 
> > > 
> > > 
> > >
> > >  > >   print "The value of \$enter is \"$enter\"";
> > >   print "The value of \$input is \"$input\"";
> > >   print "The value of \$password is \"$password\"";
> > >   print "The value of \$auth is \"$auth\"";
> > > ?>
> > >
> > > --
> > > ## 2.php
> > >
> > >  > >   session_start();
> > >
> > >   print "The value of \$enter is \"$enter\""; // empty
> > >   print "The value of \$input is \"$input\""; // should print
> > > 'letmein'
> > >   print "The value of \$password is \"$password\""; // should
print
> > > 'letmein'
> > >   print "The value of \$auth is \"$auth\""; // should print '1'
> > > ?>
> > >
> > >
> > >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Funny thing with variables

2001-10-22 Thread Tomy Wagner

rtfm :o
http://www.php.net/manual/en/language.operators.bitwise.php

Wagner Tomy
Web Developer
Editus Luxembourg S.A.

- Original Message -
From: "Niklas Lampén" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 1:59 PM
Subject: [PHP] Funny thing with variables


> What causes this:
>
> I have a page getting variable $BackLink with string
"http://www.domain.com/my_page.php4.
> I accidentaly wrote  and what I got out was 
>"—‹‹ÅÐЈˆˆÑ™–
‘“ž‘›š‡‹ŒÑœ’А™™š šŽŠšŒ‹ 
™‘‹Ñ—Ë". What causes this? What does that
~ sign do before a variable?
>
>
> Niklas Lampén
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]