Re: Read file on file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Have you doubled the backslash to escape it? Or put it in between single quotes? Either:

"c:\\test.csv"  or 'c:\test.csv' or even 'c:/test.csv'

Otherwise, a \t in between double quotes will be interpreted as a tab

Satyam

----- Original Message ----- From: "Bagus Nugroho" <bnugroho@xxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Sunday, February 04, 2007 2:47 PM
Subject:  Read file on file system


Hi All,

If I have file on[windows] c:\test.csv.
How I can read the entire contents of this file?

I have try file_get_contents, fgetcsv and etc but didn't work.
May I'm mis-understanding about using those function.

Thanks in advance
Regards,
bn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux