i am writing a php program to get images from folder and show it . i want to refresh it . i can not put tht javascript code in the php ?
<?php
$action = $_REQUEST['action'];
if ($action == "view"){
$entry =$_GET['al'];
the code for refreah
echo '<script type="text/javascript">';
function refresh(){
document.images("img1").src="/latimage.php?device=$al&ref=" + new Date().getTime();
var e = document.getElementById("blinker");
e.style.visibility = ( e.style.visibility == "visible" )? "hidden" : "visible";
setTimeout("refresh()", 3500);}
</script>;
refresh()from within your page