Hi,

You can try doing a string replace on \r or \n.

Sincerely,
Mike
-- 
Mike Brandonisio          *    Web Hosting
Tech One Illustration     *    Internet Marketing
tel (630) 759-9283        *    e-Commerce
[EMAIL PROTECTED]    *    http://www.jikometrix.net

     JIKOmetrix - Reliable web hosting


On Apr 25, 2006, at 6:31 AM, Jim Byrne wrote:

> Hi,
>
> I'm using fgetcsv()to import data from a file supplied by my client -
> but unfortunately the content of the file has a carriage return at the
> end which fgetcsv() chokes on, i.e., it doesn't work.
>
> If I manually delete the carriage return and try to import it works
> fine - so how do I delete this carriage return from the file in my
> script before using fgetcsv()?
>
> Thanks.
>
> All the best,
> Jim
>
>
>
>
>
>
> The php_mysql group is dedicated to learn more about the PHP/MySQL 
> web database possibilities through group learning.
> Yahoo! Groups Links
>
>
>
>
>
>
>
>



The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.



SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life
American general mortgage American general life insurance Computer internet security


YAHOO! GROUPS LINKS




Reply via email to