You are here: read file .udl « PHP Language « IT news, forums, messages
read file .udl

Posted by *Davide* on 06/29/05 18:49

Hi to all,
I must read and work with a .udl file (this is unicode)
And so I use the istruction $array = file($path_udl), but:
$array[1] = P r o v i d e r = S Q L O L E D B . 1 ; P a s s w o r d = R a
d 1 s h ;
With the "space" from char to char, if I open the file in binary mode from
chat to char there is a 00 (NULL)
I use the function mb_*, but nothing change, also the mb_ereg_replace.

I tried this istructions, but nothing change!
$utf_content = file_get_contents ('file.udl');
$decoded_content = utf8_decode ($utf_content);
$array = explode ("\r\n", $decoded_content);

Thanks in advantage!
*Davide*

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация