Jump to content

Ervin

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Ervin

  1. What is the best and correct solution for delete variables? I run script d:\php\php.exe -f script.php on win11. This script run 24h. If the best and correct solution: for ($zanke = 1; ; $zanka++) { set_time_limit (0); $data=file_get_contents("http://localhost:5897/x/query.cgi?q=status"); if(preveri($data)) { shrani($data); poslji($data); } sleep (5); flush(); $data=""; $zanka = 0; } or: for ($zanke = 1; ; $zanka++) { set_time_limit (0); $data=file_get_contents("http://localhost:5897/x/query.cgi?q=status"); if(preveri($data)) { shrani($data); poslji($data); } sleep (5); $vars = array_keys(get_defined_vars()); for ($i = 0; $i < sizeOf($vars); $i++) { unset($$vars[$i]); } unset($vars,$i); ali pa: $vars = array_keys(get_defined_vars()); foreach($vars as $var) { unset(${"$var"}); } $zanka = 0; } Thank you for help!
  2. Yes, working... Thank you
  3. Hello! I add one table (dodano) into SQL, but php scriot display error: PHP Warning: Undefined property: MySQLtabledit::$content in /mte/mte.php on line 846 How resolve this? Regards, Ervin example.txt fono.txt mte.txt
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.