Hello,
I am having a issue with importing a csv file into the database with a php file on my site. The csv file consists of about 225 lines of ex. (111,111,111,111,111,111,111,111,17980) which is image coordinates and at the end product number. The issue is that if I upload the complete csv file through the php file, somewhere it will mis match coordinates and items will show up in the wrong searches. But if I make the csv smaller, approx, 25-30 lines, it uploads fine. Where can I look for this issue. Is there somewhere possibly in the code that identifies the size restraint of a file upload. I know it is not the server timing out, I upload much larger files for another part of the site. Just by chance I see this in the code, but not sure if it plays any part to my issue,
if (tep_not_null($action)) {
switch ($action) {
case 'bulk_insert':
$target = "temp/";
$target = $target . basename($_FILES['uploaded']['name']) ;
$file_name = basename($_FILES['uploaded']['name']);
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
$messageStack->add("The file ".$file_name . " has been uploaded", 'error');
$image_maps_id = $HTTP_GET_VARS['iID'];
$handle = fopen($target,"r");
$num =0;
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
/*
$top_right_x = $data[0];
if(!$top_right_x)
break;
$top_right_y = $data[1];
$bottom_left_x = $data[2];
$bottom_left_y = $data[3];
$product_model = $data[4];
Thanks JR