[PHP] Remove vars from memory?

2003-09-05 Thread \[cz\]Emo
Hi all. Will PHP remove variables from memory when script will NOT use them in rest of code? for example: ?php $tmp=true; if ($tmp) // here is $tmp used last time, will it be removed from memory? ... ... // $tmp is NOT in the rest of code ... ... ? or I must use allways unset()? Thanx Emo --

[PHP] Memory used by script

2003-09-06 Thread \[cz\]Emo
Hi all. I would like to ask you if exist some way to get size of memory used by current script. I searched for sth, but didn't found any suitable result :o( Thanx Emo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Remove vars from memory?

2003-09-07 Thread \[cz\]Emo
Thanx for your advice. I put this question because I need to increase performacne of the server. So I must use unset() wherever is possible :o) Thanx Emo Dan Anderson [EMAIL PROTECTED] pí¹e v diskusním pøíspìvku news:[EMAIL PROTECTED] Note that you don't technically need to worry about it but

[PHP] Get number of line with error

2003-09-11 Thread \[cz\]Emo
Hi all. I want ask you it exist some way how to get number of line in script producing error. for example: ... ... 100$sql_connection=mysql_connect( ) 101or die ( my_error_report_function ( $line_with_error ) ); ... ... Command at line 100 can produce error. And i need call some

[PHP] Re: Approved

2003-06-06 Thread \[cz\]Emo
I'm glad that no file is attached ... this message is from mail-worm :o) Esteban Fernandez [EMAIL PROTECTED] pí¹e v diskusním pøíspìvku news:[EMAIL PROTECTED] No file attached.. [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Please see the attached file. -- PHP

[PHP] Re: PHP - File Edit

2003-06-06 Thread \[cz\]Emo
Try this: ?php $test='sth=sth'; $test=htmlentities ($test, ENT_QUOTES); echo input type=textarea value=\$test\; ? Matt Zur [EMAIL PROTECTED] píse v diskusním príspevku news:[EMAIL PROTECTED] Does anyone know of a simple program that will let me specify a file within a certain directory to load

[PHP] Re: Browser detection script (css)

2003-06-05 Thread \[cz\]Emo
I don't know if you mean this ... I use for detect browser and send css for it this script: ?php // set default css file (MSIE) $css='main.css'; // if browser is opera ... if (substr_count($_SERVER[HTTP_USER_AGENT], 'Opera')) { // ... set opera css $css='main.opera.css'; } // if browser is

[PHP] Re: Need a function to calculate time difference.

2003-07-02 Thread \[cz\]Emo
I use this: function getmicrotime() { list($usec, $sec) = explode( ,microtime()); return ((float)$usec + (float)$sec*1000); } $time=getmicrotime(); echo Page was generated in .sprintf(%01.7f,((getmicrotime()-$time)/1000)). seconds.; Emo Jack Sasportas [EMAIL PROTECTED] píse v diskusním

Re: [PHP] PHP to Excel Export

2003-07-08 Thread \[cz\]Emo
I like this: http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/ Last time I've readed help there wasn't support for formulas. Anybody know sth which can output formulas? Mainly I need SUBTOTALS, which can show plus-minus to hide some rows. Or another tip how to do it. Thanx

[PHP] Re: Logging PHP Execution time to a file?

2003-07-14 Thread \[cz\]Emo
I use this: function getmicrotime() { list($usec, $sec) = explode( ,microtime()); return ((float)$usec + (float)$sec*1000); } // Start script $time=getmicrotime(); ... ... ... // Script finished echo Page was generated in .sprintf(%01.7f,((getmicrotime()-$time)/1000)). seconds.; You

[PHP] Rgular Expression - 1st alternative

2003-10-09 Thread \[cz\]Emo
Hi all. I've got one problem with %subj%. I need to get 1st appearance of any alternative pattern, but my regexp get last. in $out[2] (input) is columns FROM tables WHERE conditions ORDER BY sth DESC LIMIT 1 OFFEST 0 preg_match(/[[:space:]]*(.*)[[:space:]]+from[[:space:]]+(.*)[[:space:]]+whe