shane07 Posted April 5, 2008 Share Posted April 5, 2008 $file1=$_FILES["file_name"]["tmp_name"]; @mkdir("temp",0777); $destination="temp/".$file_name; if(move_uploaded_file($file1, $destination)) { $sheet=$destination; if(file_exists($sheet)) { //echo $sheet; $file=fopen($sheet,'r'); while (($line = fgetcsv($file,1000,",")) !== FALSE) { This is my code fragment. I am getting warning from the last line it says Warning: fgetcsv(): 107 is not a valid stream resource So, I cannot proceed from here onwards. Is there any suggestions? Thank You Link to comment https://forums.phpfreaks.com/topic/99712-warning-from-getcsv/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.