trochę poszperałem i znalazłem trochę przykładów.
Zrobiłem na nowo, ale i tak nic do przeglądarki nie przekazuje.
Kod:
<html>
<head>
<script language="JavaScript">
<!--
var loaded=0;
setTimeout("info()",5000);
function info() {
txt=document.body.innerHTML;
ar=txt.split("_prg_:");
prg=ar[ar.length-1];
if (ar.length>1) document.getElementById('progress').innerHTML="Liczba wykonanych zapytan: "+ prg;
setTimeout("info()",5000);
}
//-->
</script>
</head>
<body>
<div id="progress"> </div>
<table style="border: 2px; width: 500px; height: 20px">
<tr>
<td>
<table><tr><td id="postep" border="2px" width="1%" height="18px" bgcolor="green"></td></tr></table>
</td>
</tr>
</table>
<div id="ukryj">
<?php
function Clen($document){
$search = array('@<script[^>]*?'.'>.*?</script>@si', // Strip out javascript '@<head[^>]*?'.'>.*?</head>@si', //<head>
'@<div class="navigation">.*?<ol>.*?</ol>.*?</div>@si', //menu
'@<div class="tab1 page">.*?<div class="row headline">@si',
'@<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">.*?<div class="margin" style="width:430px;">@si',
'@<!-- .box-content -->.*?</html>@si',
'@<!-- tabOverview.ftl -->.*?</div><!-- .col -->@si',
'@<div class="feature-pairs">.*?@si',
'@<body class="des pl des_pl ">.*?<!-- d-59-destext -->@si',
'@<div id="contactFormDiv1">.*?<!-- /bottomContactForm -->@si',
// '@<style[^>]*?'.'>.*?</style>@siU', // Strip style tags properly
// '@<[/!]*?[^<>]*?'.'>@si', // Strip out HTML tags
'@<![sS]*?--[ tnr]*>@', // Strip multi-line comments including CDATA
'@\n@si',
'@<div class="infoBoxContent ">.*?</div>@si',
'@<a title="Informacje"^.*?@si',
);
return $datat;
}
if (!$link) {
}
if (!$db_selected) {
}
$i = 0;
$i++;
$url = NULL;
$cena = NULL;
$strona3 = NULL;
$urls = NULL;
$cena = $row['a2'];
$url = $row['add'];
include ('downpage.php');
$urls= ''.$row['link'].'';
if ($fo = @fopen($urls,'r')) { if ($strona3 != $cena)
{ $d = 2; } else {$d = 1;}
} elseif ($pt == TRUE) {$d = 3;}
else {$d = 4;}
} else { $d = 0;}
$pasek = round( $i/$ilosc_wierszy * 100
); echo '<script language="JavaScript"> <!-- document.getElementById(\'postep\')..setAttribute(\'width\',\''.$pasek.'%\'); //-->
</script>';
if (!$link) {
}
if (!$db_selected) {
}
$query = mysql_query("UPDATE a SET status='".$d."' WHERE id='".$row['id']."'");mysql_close
(); }
for ($i=0;$i<100;$i++) {
}
?>
</div>
</body>
</html>
skrypt który wykożystałem jest z tej strony:
http://forum.php.pl/index.php?showtopic=92...rt=#entry463282ale on sam bez zmian też nie działa
Czy może to być spowodowane tym, że skrypty uruchamiam w trybie CGI ? czy nie ma to znaczenia?