- Impact
- 66
ok now this is a really weird parse error. what im trying to do is to input a number and then make a dynamic hyperlink that (if exists) will be downloaded. to my PC. i also put an auto refresh in there so that if it wasnt there, it wud refresh in half an hour and run the script again. now whenever i run my script, it comes up with a parse error on line 28, unexpected $, which is weird because i close my </html> tags on line 27 and there's nothing after it. why is it doing this? here's my whole script:
HTML:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
$source = array();
$source[0] = "http://abc.com/xyz/123";
$source[1] = $_POST['url'];
$source[2] = ".txt";
$dest="C:\\Documents and Settings\Admin\Desktop\";
$fullsource=$source[0].$source[1].$source[2];
$open=fopen($fullsource, 'r');
$copy=copy($fullsource, $dest);
if (!$copy)
{
echo('File not found');
}
fclose($open);
?>
<script type=text/javascript>
setTimeout(' document.location=document.location' ,1800000);
</script>
</body>
</html>







