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); Quote Link to comment 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 . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.