Re: [PHP] Anyone for cookies and milk? :-)

2003-07-16 Thread Nomadeous
>From the official doc: http://www.php.net/manual/en/function.setcookie.php All the arguments except the name argument are optional. You may also replace an argument with an empty string ("") in order to skip that argument. Because the expire and secure arguments are integers, they cannot be skippe

[PHP] Re: Using Extensions

2003-07-16 Thread Nomadeous
Of course on the official page ;-) http://www.php.net/manual/en/funcref.php Each extension defines functions which can easily be recognised by their prefix: example: xslt_create => xslt extension bzwrite => bzip2 extension "Brenton Dobell" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMA

[PHP] Re: Anyone for cookies and milk? :-)

2003-07-16 Thread Nomadeous
"Ryan A" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Hey, > Am just getting into PHP cookies and have gotten a problem...(surprise > surprise) > > Am trying to set a basic cookie to see exactly how things work before I > start using it in my apps, heres the code i am us

[PHP] Re: MySQL query problems

2003-07-16 Thread Nomadeous
But what's your prob ? When you say the second one seems to never be executed ... Does the line: $row = mysql_fetch_array($result2); launches a Php Error ? And pay attention, because you're using mysql_fetch_array and mysql_fetch_row, be sure that you are not treating the result in the same way ;-

[PHP] Re: Regex help needed

2003-07-16 Thread Nomadeous
First, the prob you got : WARNING comes from the following error: (\s+face=\"Verdana, Arial, Helvetica, sans-serif\"|)> After the | (OR) sign, you must define another case, example: echo eregi_replace ("(\s*)\s*\s*purchasing power parity", '%POWER%', 'sdsdssPurchasing power parity'); Secondl

Re: [PHP] Regex and variable usage

2003-07-16 Thread Nomadeous
Gerard Samuel a écrit: Curt Zirzow wrote: Gerard Samuel <[EMAIL PROTECTED]> wrote: or even preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string) I think, you Forgot, a \ before the $ at the end of the expression... that should work. Unfortunately it doesn'