Hi, I was trying to save a qr code into a directory path (../QR_Code/image.png) which will later will be saved on my database.

PHP Code:
 <?php
//if ($_POST['submit']) { 
if ($_SESSION['MM_Username']) {


    
//$msg = $_REQUEST['msg'];
$msg$row_RSU['QR_CODES'];
    
$url  'http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl='.$msg;
 
    
// initialize cURL settings
    
$ch curl_init ($url);
    
curl_setopt($chCURLOPT_HEADER0);
    
curl_setopt($chCURLOPT_RETURNTRANSFER1);
    
curl_setopt($chCURLOPT_BINARYTRANSFER,1);
    
curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
 
    
// fetch raw data
    
$rawdata curl_exec($ch);
    
curl_close($ch);
     
    
// convert it to a GD image and save
    
$img imagecreatefromstring($rawdata);

// declare image path

$image_path='c:\domains\mywebsite.com\wwwroot\PDRM\QR_Code\image.png';

    
// now save a copy of the new image to the cache directory
    
imagePNG($img$image_path);

    print 
'<center><img src=http://mywebsite.com/PDRM/image.png><br>';

    
    
//print('<font color=#30afd8><H2>Saved QR Code.</H2></font>');

    
imagedestroy($img);
}   
?>
But when I check at my database the value is still null. I'm not very familiar with window server. Before this when I was working on Apache server, the image path i used was /var/www and it saved the image perfectly on the database. Maybe the image path is incorrect? Any thoughts would be helpful. Thanks!