| |
| 1.File Read with binary mode: |
|
$imagefile=”www.qualitypointtech.com/images/logo.jpg”;
$remotefilepointer = fopen( $imagefile, "rb" );
|
| |
| 2. File Write with binary mode: |
|
$serverfilepointer = fopen("C:/apache/htdocs/bookmarklet/toImages/".$createfilename,"wb");
while (!feof($remotefilepointer) )
{
$contents = fread($remotefilepointer, 4096);
fwrite($serverfilepointer, $contents );
}
|
| |