Hi Christian,
>$html_code = eregi_replace (..., $html_code);
arghhh ... I'm so stupid !! Yes, u're right ...
really, many thanks
max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
On Sunday 18 February 2001 19:54, n e t b r a i n wrote:
> >> function change_sess(&$html_code){
> >>if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){
> >>
> >> str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}"," >>l() ;?>", $html_code);
> >
> >str_replace doesn't know ab
did you check the value *before* writing it to a file?
before trying to solve any problem, you have to know
where to look perhaps the problem lies with the file
instead of the regexp.
the following code worked great for me:
Lnk';
$html = preg_replace('/&flag=(\d{9})&PHPSESSID=(\w{32})/', ap
Hi Christian,
>> function change_sess(&$html_code){
>> if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){
>>
>> str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",">;?>", $html_code);
>str_replace doesn't know about regular expressions, so it tries to find
>the literal st
On Saturday 17 February 2001 21:49, n e t b r a i n wrote:
> function change_sess(&$html_code){
> if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){
>
> str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",";?>", $html_code);
str_replace doesn't know about regular expressio
5 matches
Mail list logo