Jump to content

Error message when uploading


xxreenaxx1

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.