words condition dont match
Posted: Fri Dec 15, 2006 10:16 am
Code: Select all
$b='DEF=abc abc=DEF';
preg_match("/(?!abc)=(?!def)/i",$b,$enc);
echo '<pre>';
print_r($enc);
echo '</pre>';Code: Select all
DEF=abcA community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$b='DEF=abc abc=DEF';
preg_match("/(?!abc)=(?!def)/i",$b,$enc);
echo '<pre>';
print_r($enc);
echo '</pre>';Code: Select all
DEF=abcjayshields wrote:You really need to revise your take on the English language and punctuation or you're not going to get much help around here. I cannot understand what point you're trying to make, and I doubt anyone else can grasp it that well either.
Code: Select all
preg_match("/(?!abc)=(?!def)/i",'DEF=abc abc=DEF',$enc);
print_r($enc);Code: Select all
Array
(
[0] => =
)Code: Select all
Array
(
[0] => DEF=abc
)Code: Select all
Set-Cookie: name=value; expires=xxxxxxxxxx; domain=xxxxxx; path=/Code: Select all
$a='Set-Cookie: name=value; expires=xxxxxxxxxx; domain=xxxxxx; path=/';
preg_match("/(?!domain|expires|path)=([^;\r\n]*)/i",$a,$enc);
print_r($enc);Code: Select all
Array
(
[0] => =value
[1] => value
)Code: Select all
$a='Set-Cookie: name=value; expires=xxxxxxxxxx; domain=xxxxxx; path=/';
preg_match("/(?<!domain|expires|path)=([^;\r\n]*)/i",$a,$enc);
print_r($enc);Code: Select all
Array
(
[0] => =value
[1] => value
)feyd wrote:You're still using zero width assertions. What specifically are you trying to accomplish?
Code: Select all
The NAME=VALUE attribute-value pair MUST come first in each cookie.i read pages content with fsockopen and keep their cookies in a another cookie of site where i dofeyd wrote:What's this for? Are you trying to build a php based browser of sorts?
feyd wrote:As far as I know that is the correct statement for this particular header value.