$hndl=fopen("$imgfile","r");
$imgdata=fread($hndl,filesize("$imgfile"));
$imgdata=addslashes($imgdata);
$strSQL = "Update tblimage Set imgtype='$imgtype', imglink='$imglink',imgdata='$imgdata'
Where imgname='$imgname'";
mysql_query($strSQL)
or die("Could not execute query");
fclose($hndl);
The $img variables come from a form.
This works fine on my local machine however when uploaded to the server and test it i get:
Warning: fopen("C:\\Inetpub\\wwwroot\\websites\\llandrpcen\\img\\mainimg\\lotfdeng.gif", "r") - No such file or directory in /home/torpex/public_html/proj/llandrpcen/upimg.php on line 14
I know this is because the file is local on the testing server (my machine), how can i resolve this,
thanks for any help



