In my experience the speediest way was to create a temporary buffer to which
you append the html you wish to output and then write the buffer to file in
one go.
Prottoss
[EMAIL PROTECTED]
http://www.mediaminer.org/
On January 1, 2002 01:41 pm, David Jackson wrote:
This may seem a little odd
mysql data such as
mysql_fetch_row mysql_fetch_obect
Prottoss
[EMAIL PROTECTED]
ICQ: 23361082
http://mediaminer.org/
--
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
Conisder just using str_replace(\n, br\n, $your_string) instead of
nl2br.
On December 13, 2001 10:10 am, sunny AT wde wrote:
yeah i'll have a look at making the html a lot smaller as well :) i
guess thats a cheap way of tryin to hold out on the machine as much
as possible.
the br /
Recursive functions are generally a bad idea especially in php.
By using a recursive function it is possible you may smash the stack, which
will crash an apache child (segfaults) and on a multi-threaded server take
down the whole webserver.
Even with a default memory limit of 8 megs an attacker
if that ip is found in Blocked Users
table.
Replies would be appriciated
Prottoss
--
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]
You can use sprintf() to determine if a number is numeric or not.
/*
Return TRUE if numeric and FALSE if not.
*/
function is_numeric_php3($var)
{
if( !isset($var) )
return FALSE;
if( $var==0 )
return TRUE;
if( sprintf(%f,
6 matches
Mail list logo