xxreenaxx1 Posted January 17, 2011 Share Posted January 17, 2011 Hi, I tired to upload some information on to mysql but I am getting an error message. Warning: fopen() [function.fopen]: Filename cannot be empty in C:\xampp\htdocs\upload.php on line 11 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\upload.php on line 12 Warning: fclose() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\upload.php on line 32 Php code below is what is on line11 $fp=fopen($file, "r"); Php code below is what is on line12 while ($data = fgetcsv ($fp, 1000, ",")) { On line 32 fclose ($fp); Link to comment https://forums.phpfreaks.com/topic/224698-error-message-when-uploading/ Share on other sites More sharing options...
suresh_kamrushi Posted January 17, 2011 Share Posted January 17, 2011 If your first error solve than other two will be solve automatically. Please check path given in variable $file is correct. Can you provide more details about $file . Link to comment https://forums.phpfreaks.com/topic/224698-error-message-when-uploading/#findComment-1160646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.