Why am I getting a fail to open stream?
===

I am getting fail to open stream at Warning: `file_get_contents(img/service/polaroid/pol_b1cfb94c5c28b8c2ffaa0db64132b700.png) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\XXX\class\service.php on line 18`

The image is stored at `/XXX/img/service/polaroid/pol_b1cfb94c5c28b8c2ffaa0db64132b700.png`. 

PHP_SELF displays `/XXX/main.php`. 


Can someone tell me what is wrong? I tried doing relative path `"../img/etc"` thinking because I am calling from the class folder, but that's not working as well. 

	$image = $row->pol_path;
			$image_data = base64_encode(file_get_contents($image));
			$src='data: image/png;base64, '.$image_data;