Re: Read file on file system
| From: | Satyam | Date: | Sun, 04 Feb 2007 14:18:30 +0000 |
| Subject: | Re: Read file on file system | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248280@lists.php.net to get a copy of this message | ||
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@aitemail.com>
To: <php-general@lists.php.net>
Sent: Sunday, February 04, 2007 2:47 PM
Subject: [PHP] 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