Thread:Project:Support desk/importTextFile.php is incorrect imports text file

Hello, I try to import Cisco config file, but mediawiki is tries to format it by ignoring end of line in text file. The Cisco device config file is plain text file.

Example of this text file (original) is: Cisco device config file

Command line using while importing is: php /home/public_html/dsnetwiki/maintenance/importTextFile.php --title "cat3750 show tech" --user Myuser /tmp/222.conf

The result after importing is here(screenshot): Screenshot after importing Cisco config to mediawiki

My system is: Linux Opensuse 11.4 i586 MediaWiki	1.16.0 PHP	5.3.5 (apache2handler) MySQL	5.1.53-log

How to tell mediawiki to import this file correctly? Thanks

While importing i've this error messages:

PPHP Notice: Undefined index: HTTP_USER_AGENT in /home/public_html/dsnetwiki/extensions/FCKeditor/fckeditor/fckeditor_php5.php on line 37 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 Import Text File

Using /tmp/222.conf...PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552

Using title 'cat3750 show tech'... Using username 'Myuser'... Performing edit...PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_unset: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 579 PHP Warning: xcache_unset: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 579 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_unset: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 579 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 PHP Warning: xcache_get: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 552 PHP Warning: xcache_set: xcache.var_size is either 0 or too small to enable var data caching in /home/public_html/dsnetwiki/includes/BagOStuff.php on line 567 done.