Re: [PHP] Generating Static Pages

2002-01-01 Thread Prottoss
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

Re: [PHP] Re: Recursive Threading with PHP and MySQL.

2001-12-05 Thread Prottoss
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 attacke

Re: [PHP] Need high bandwidth provider for my Asian community site

2001-12-13 Thread Prottoss
Conisder just using str_replace("\n", "\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 unfor

Re: [PHP] Performance

2001-12-13 Thread Prottoss
zing your queries, or consider using less intensive php functions to retrieve 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 PROTECTE

Re: [PHP] is_numeric for php3

2001-08-28 Thread Prottoss
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"

[PHP] Ip Blocking

2001-10-05 Thread Prottoss
ery to check 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]