hi all..![]()
this code makes me read data from a text file uploaded on server
if is there is a way to read a text file from my pc like:Code:$myFile = "data.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); echo $theData;
?????Code:$myFile = "C:/data.txt"; $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); echo $theData;




Reply With Quote