Results 1 to 10 of 10
Thread: csv
Hybrid View
-
28th February 2008 01:49 #1Registered User
Join Date: Dec:2005
Location: yvr
Posts: 5,167
csv
Debian etch AMD64, PHP 5.2.0-8+etch10, MySQL 5.0.32, Apache 2.2.3.
vtiger 5.03 leads- 10 , 24000 - , , , MySQL. Apache error.log-
, 3-4 , vtiger.Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /var/www/vtigercrm/modules/Import/parse_utils.php on line 48
vtiger CentOS4.6 PHP 4.3.10 11, apache 2. , 8-10 . . php.ini , debian memory_limit CentOS- 64MB. - .
php.ini-
max_execution_time = 600
max_input_time = 600
memory_limit = 64M
post_max_size = 16M
upload_max_filesize = 10M
parse_utils.php:
Code:function parse_import($file_name,$delimiter,$max_lines,$has_header) { $line_count = 0; $field_count = 0; $rows = array(); if (! file_exists($file_name)) { return -1; } $fh = fopen($file_name,"r"); if (! $fh) { return -1; } while ( (( $fields = fgetcsv($fh, 4096, $delimiter) ) !== FALSE) && ( $max_lines == -1 || $line_count < $max_lines)) { if ( count($fields) == 1 && isset($fields[0]) && $fields[0] == '') { break; } $this_field_count = count($fields); if ( $this_field_count > $field_count) { $field_count = $this_field_count; } array_push($rows,$fields); $line_count++; }48. ? PHP/apache ? ? , , - ?Code:while ( (( $fields = fgetcsv($fh, 4096, $delimiter) ) !== FALSE) && ( $max_lines == -1 || $line_count < $max_lines))
vtiger - .
, , php , ,
, import now .Last edited by ilko; 28th February 2008 at 02:05.
-
28th February 2008 17:27 #2
, parse_utils.php?
, while , brak-... ?!
$max_lines == -1 while , ..
Code:while ( (( $fields = fgetcsv($fh, 4096, $delimiter) ) !== FALSE) && $line_count < $max_lines) { if( $max_lines == -1) break; ... }" , , , , ."
-
28th February 2008 19:09 #3Registered User
Join Date: Dec:2005
Location: yvr
Posts: 5,167
, . . , apache/php/mysql.
, PHP4 , 5 . , . , "$123767.56", , .. - .
-
28th February 2008 23:48 #4
-
29th February 2008 01:33 #5Registered User
Join Date: Dec:2005
Location: yvr
Posts: 5,167
- .
VMware debian 4 + AMP, vtiger. PHP . 5.2, 5.0 , 5.2, . .
5.0 5.2 , ,
.
-
29th February 2008 15:40 #6
, , ?
, : ( ) , : "INSERT INTO _... VALUES(comma separated1, comma separated2)" , : "insert into table key="val", key2="val2" ", . , , ( ). ...
, 5.0 5.2 . . ( )? ....Last edited by Skydive; 29th February 2008 at 15:45.
-
1st March 2008 04:51 #7Registered User
Join Date: Dec:2005
Location: yvr
Posts: 5,167
php4* apt-get- .
5- . wmware- , .
phpinfo() .
2, :
Apache Environment:
HTTP_PRAGMA no cache
HTTP_CACHE_CONTROL no cache
. .
Skydive, ,
edit: , ctrl+F5
-
PHP Core:
extension_dir /usr/lib/php5/20060613+lfs
-
extension_dir /usr/lib/php5/20060613

edit2: , , +lfs - 15-20%, php4 .Last edited by ilko; 1st March 2008 at 05:09.
-
5th October 2008 11:21 #8Registered User
Join Date: Oct:2008
Location:
Posts: 2
-
5th October 2008 22:47 #9Registered User
Join Date: Dec:2005
Location: yvr
Posts: 5,167
:
http://forums.vtiger.com/viewtopic.php?t=18596
php.ini , FAQ install FAQ .
, , php4, php5 . 24 000 3 , , .
...
VTiger .
edit: 499 :
http://forums.vtiger.com/viewtopic.php?t=5924&start=0
http://forum.vtiger.com/viewtopic.ph...f1d9339d1414b7
5.0.4 , 500 , 500, . 500 . ...Last edited by ilko; 5th October 2008 at 22:53.
-
24th October 2008 11:34 #10




Reply With Quote
custom , ...)
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in