I am using file_put_contents($filename, $jpg)
to upload my jpg files to some location.
How to use file_get_contents ($filename);
with ($GLOBALS["HTTP_RAW_POST_DATA"])
?
I am trying something like $jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
$img = $_GET["img"];
$filename = "applicantsPhotos/applicantPhoto". mktime(). ".jpg";
file_put_contents($filename, $jpg);
echo file_get_contents ($filename); die;
but this is not working well(neigther I am getting filename, Not die stops script). Am I using wrong method to get the name ?