[PHP-DEV] Re: file()+strip_tags() Vs. fgetss(). huge diffrence normal?

2004-08-15 Thread Hannes Magnusson
On Sun, 15 Aug 2004 20:56:42 -0700 [EMAIL PROTECTED] (Sara Golemon) wrote: > Look at the lines that differ. strip_tags() doesn't know anything about > tags that started on previous lines. Ahhh! noticed now. Thx. :) > > > "Hannes Magnusson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROT

[PHP-DEV] Re: file()+strip_tags() Vs. fgetss(). huge diffrence normal?

2004-08-15 Thread Sara Golemon
Look at the lines that differ. strip_tags() doesn't know anything about tags that started on previous lines. "Hannes Magnusson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hibb. > > Is there suppost to be such a huge diffrence between these two methods? > Would have thougt comb

[PHP-DEV] file()+strip_tags() Vs. fgetss(). huge diffrence normal?

2004-08-15 Thread Hannes Magnusson
Hibb. Is there suppost to be such a huge diffrence between these two methods? Would have thougt combination of file() & strip_tags() would result in same results as fgetss() http://no2.php.net/"; ); $fp = fopen ( "http://no.php.net/";, "r" ); $i = 0; while ( !feof ( $fp ) ) {

Re: [PHP-DEV] [PATCH] PHP_IMAP New Function "imap_partialbody" to fetch chunks of a MIME attachment

2004-08-15 Thread Crispin Olson
Uwe Schindler wrote: This would be also interesting: For decoding base64 binarys you could use the string.base64 stream filter then (PHP5)! :) Uwe That does make sense - I didn't realise there was a base64 stream filter in PHP5 (I'm still using 4.3) That would make it possible to hook a stream d

Re: [PHP-DEV] [PATCH] PHP_IMAP New Function "imap_partialbody" to fetch chunks of a MIME attachment

2004-08-15 Thread Uwe Schindler
This would be also interesting: For decoding base64 binarys you could use the string.base64 stream filter then (PHP5)! :) Uwe At 18:50 15.08.2004, Crispin Olson wrote: Uwe Schindler wrote: How about the idea to make a function like "imap_getbodystream(...)" that returns a PHP stream that can be

Re: [PHP-DEV] [PATCH] PHP_IMAP New Function "imap_partialbody" to fetch chunks of a MIME attachment

2004-08-15 Thread Crispin Olson
Uwe Schindler wrote: How about the idea to make a function like "imap_getbodystream(...)" that returns a PHP stream that can be read with fread() etc. and then closed by fclose()?. This could be done by using Wez's PHP stream wrappers in PHP5 (even in PHP4.3). Uwe Uwe, Not a bad idea, and I had

Re: [PHP-DEV] On Namespaces...

2004-08-15 Thread Zeev Suraski
Please read the archives! Zeev At 18:55 15/08/2004, Manuel Vázquez Acosta wrote: [Is this the right news?] Recently I downloaded PHP 5.0.0 and read the RFCs, I sadly noticed that a Namespace proposal was declined. Why? I've been using PHP for many years and I've found problems when trying to "glue"

[PHP-DEV] On Namespaces...

2004-08-15 Thread Manuel Vázquez Acosta
[Is this the right news?] Recently I downloaded PHP 5.0.0 and read the RFCs, I sadly noticed that a Namespace proposal was declined. Why? I've been using PHP for many years and I've found problems when trying to "glue" several third parties codes. PEAR has come with a not-quite-nice solution to t

Re: [PHP-DEV] [PATCH] PHP_IMAP New Function "imap_partialbody" to fetch chunks of a MIME attachment

2004-08-15 Thread Uwe Schindler
How about the idea to make a function like "imap_getbodystream(...)" that returns a PHP stream that can be read with fread() etc. and then closed by fclose()?. This could be done by using Wez's PHP stream wrappers in PHP5 (even in PHP4.3). Uwe At 00:47 15.08.2004, you wrote: This new function i

[PHP-DEV] Checking whether parameter is passed by ref

2004-08-15 Thread Andrey Hristov
Hello, the topic clearly states what I would like to achieve. I know that parameter can be forced to be passed by reference when declared but in my case this is not an option (still). I would like to determine this at run time based on some other conditions I have to check whether the param is a re