ok, I've changed this part:
//print '<center><img src=http://mywebsite.com/PDRM/image.png><br>';
into same directory:
print '<center><img src=http://mywebsite.com/PDRM/QR_Code/image.png><br>';
My real problem is with this one instead,
$img = imagecreatefromstring($rawdata);
// declare image path
// now save a copy of the new image to the cache directory
I want it to save the image inside QR_Code directory and write into my database with field named 'imagePNG'. But nothing happened. And the imagePNG still contain NULL value.
Previously, I've been using the same codes on linux with this image path:
The image.png was written at both QR Code directory and into imagePNG field. So i'm thinking this must be a wrong way/wrong directory to write the image( c:\domains\mywebsite.com\wwwroot\PDRM\QR_Code\image.png'; ). Or is it not?