Jump to content

warning from getcsv


shane07

Recommended Posts

$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

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.