What wrong about my script?
hello,
I Have file time.php like bellow :
<html>
<head>
<title></title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<META HTTP-EQUIV=”REFRESH” CONTENT=”55;URL=time.php”>
</head>
<body bgcolor=”#000000″ bottommargin=”0″ leftmargin=”0″ rightmargin=”0″ topmargin=”0″>
<?
$m =date(“i”);
$h = date(“H”);
$menit = $m % 10;
if ($h > 5 && $h < 19)
{
if ($menit ==1 )
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=2″></script>
<?
}
else if ($menit ==2)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=6″></script>
<?
}
else if ($menit ==3)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=8″></script>
<?
}
else if ($menit ==4)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=2″></script>
<?
}
else if ($menit ==5)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=5″></script>
<?
}
else if ($menit ==6)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=4″></script>
<?
}
else if ($menit ==7)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=1″></script>
<?
}
else if ($menit ==8)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=8″></script>
<?
}
else if ($menit ==9)
{
?>
<script type=”text/javascript” src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=5″></script>
<?
}
else if ($menit ==0)
{
?>
<script type=”text/javascript”src=”http://a.b.c.d:e/nphControlCamera?Direction=Preset&PresetOperation=Move&Data=7″></script>
<?
}
}
?>
</body>
</html>
Then I run the time.php file by runningfile.php file like below:
<? include “header.php”;
include “config/database.php”;
?>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title></title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body bgcolor=”#000000″ text=”#FFFFFF”>
<iframe src=”time.php” scrolling=”no” frameborder=”0″ width=”5″ height=”5″ marginheight=”0″ marginwidth=”0″></iframe>
</html>
<? include “footer.php”;?>
then view message error like bellow :
Line : 2
Char : 1
Error : Syntax Error
Code : 0
URL : [url]http://www.mydomain.com/time.php
How solution for me?
any help me?
Help me..please….!!
thank you for your attention…