for loop not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

Can someone help me to fix my code. It throwing error. I couldn't determine
how to do the for loop.

Here is my code

<?php


for ($i; in /tmp/sess*)

{


if (time()- filemtime($ip) > 60)

{

$old = 'hadi';

$filename = '$i';

$file = file_get_contents($filename);

strpos($file, $old);

unlink ($filename);

break();

}
}

?>

 

<<attachment: smime.p7s>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux