|
Posted by funkychicken818@gmail.com on 05/21/06 20:54
hey there is a error.
Parse error: syntax error, unexpected ')' in
/home/creative/public_html/mysitesucks/Test/image_graber.php on line 14
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Untitled Document</title>
</head>
<body>
<?php
$url = "http://mysitesucks.com/images/MSS_web_01.jpg";
preg_match('"(\.[^/]+)$"', $url, $match);
$extension = (isset($match[1])) ? $match[1] : '';
$int = '1234567';
$handle = fopen($url, 'r',);
copy($handle,
'/home/creative/public_html/mysitesucks/Test/images/'.$int.$extension);
?>
</body>
</html>
Navigation:
[Reply to this message]
|