Reply to Why this security warning?

Your name:

Reply:


Posted by Sonnich on 07/18/06 12:28

Hi all!

I have a PHP file, which creates an <iframe> for showing status. First
it created the Iframe, then it enters the loop and starts creating the
file file, which has a meta in order to reload every 2 seconds.

THE PROBLEM is that is pops up a window, whether I'd like to continue.
Why this?
It works, but I'd like to have it run smoothly.

I wonder whether the problem might be that the file for the iframe in
not ready at the moment the where the iframe is created, but it does
load (and go on reloading) as is should. The functionality is present.
Any ideas?

BR
Sonnich

The Iframe:

echo "<iframe name=\"status\" src=\"$scriptReport\" width=\"200\"
height=\"40\" scrolling=\"no\" frameborder=0></IFRAME><br>";

The scriptReport will reload using a Meta as this

$ff3=fopen($scriptReport, "w");
// 4 lines add for testing - they did not do the trick
fwrite($ff3, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\"> ");
fwrite($ff3, "<META http-equiv=\"Content-Type\" content=\"text/html;
charset=windows-1251\"> ");
fwrite($ff3, "<META name=\"resource-type\" content=\"document\"> ");
fwrite($ff3, "<META content=\"text/html; charset=windows-1251\"
http-equiv=Content-Type> ");

// main and original part
// tal = current step, tot = total amount of steps

if(($tal/$tot) == 1.0)
fwrite($ff3, "<HTML>"); // when done then do not reload
else
fwrite($ff3, "<HTML><META HTTP-EQUIV=\"refresh\" CONTENT=\"2;
URL=$scriptReport\">");
fwrite($ff3, "<head><title>none</title></head><BODY>Status: ");
fwrite($ff3, $tal."/".$tot." (". intval($tal/$tot*100) ."%)");
fwrite($ff3, "</BODY></HTML>");
fclose($ff3);

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация