I can read an image file but i cannot save it to my server. My code is:-<?
$fp = fopen('http://ip_address/cgi/nph-jpeg.exe?-aw+160+-ah+120+-single+-device+9+-video+0', 'r');
$sLine = '';
while (!feof($fp))
{
$sLine.=fread($fp, 1024);
};
fopen('/usr/users1/me/pics/newpic','w');
?>
It creates a file called newpic, but contains no data. What am i doing wrong?
Thanks for Vincent for the earlier help.
Jules