Overview
Comment:déterminer automatiquement le délimiteur
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cd99ccd27411fde4d995aa649fcaf5cdb107145a
User & Date: bohwaz on 2014-03-26 16:47:05
Other Links: manifest | tags
Context
2014-03-26
17:06
Possibilité de faire un rappel le jour de l'expiration check-in: da117a9e3e user: bohwaz tags: trunk
16:47
déterminer automatiquement le délimiteur check-in: cd99ccd274 user: bohwaz tags: trunk
2014-03-25
14:43
Gestion SNI dans requêtes https check-in: 26cd3b0213 user: bohwaz tags: trunk
Changes

Modified src/include/class.compta_import.php from [7e6d1114ca] to [028dad2163].

97
98
99
100
101
102
103

104
105
106
107
108
109
110
111
112
113
114
...
276
277
278
279
280
281
282

283
284
285
286
287
288
289
290
291
292
293
			if (!isset($row[$columns[$column]]))
				return null;

			return $row[$columns[$column]];
		};

		$line = 0;


		while (!feof($fp))
		{
			$row = fgetcsv($fp, 4096);
			$line++;

			if (empty($row))
			{
				continue;
			}

................................................................................
			if (!isset($row[$columns[$column]]))
				return null;

			return $row[$columns[$column]];
		};

		$line = 0;


		while (!feof($fp))
		{
			$row = fgetcsv($fp, 4096, ';');
			$line++;

			if (empty($row))
			{
				continue;
			}








>



|







 







>



|







97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
...
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
			if (!isset($row[$columns[$column]]))
				return null;

			return $row[$columns[$column]];
		};

		$line = 0;
		$delim = utils::find_csv_delim($fp);

		while (!feof($fp))
		{
			$row = fgetcsv($fp, 4096, $delim);
			$line++;

			if (empty($row))
			{
				continue;
			}

................................................................................
			if (!isset($row[$columns[$column]]))
				return null;

			return $row[$columns[$column]];
		};

		$line = 0;
		$delim = utils::find_csv_delim($fp);

		while (!feof($fp))
		{
			$row = fgetcsv($fp, 4096, $delim);
			$line++;

			if (empty($row))
			{
				continue;
			}