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
--
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo