Re: Parsing a local file
| From: | DvDmanDT | Date: | Wed, 30 Jul 2003 02:45:13 +0000 |
| Subject: | Re: Parsing a local file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157478@lists.php.net to get a copy of this message | ||
Also, it's a remote file you are trying to parse, not a local...
local=server, remote=user... Like John linked, you must upload it... Can't
do it other ways...
--
// DvDmanDT
MSN: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"Jason D. Williard" <jason@jasondubya.com> skrev i meddelandet
news:20030730010840.3407.qmail@pb1.pair.com...
> I am trying to build script that will parse a file on the user's computer.
> There are 2 things that I am not quite sure about.
>
> 1) How to read a file on the user's computer, and not on the server.
>
> 2) How to parse a line similar to the one below:
>
> "7/29/2003" , "Report Title" , "Page" , "Agent Name" ,
"5200" , "30" ,
> "3:30" , "" , "" , ""
>
> Now, in this line, there are items that I would like to discard. As well,
> there are items between the "s that I would like the parse further. Below
> is how I would like it parsed
>
> "$month/$day/$year" , "DISCARD" , "DISCARD" , "DISCARD"
, "$agentid" ,
> "$calls_taken" , "$avg_call_time" , "DISCARD" ,
"DISCARD" , "DISCARD"
>
>
> Any help would be appreciated.
>
> Thanks,
> Jason
>
>
>
>
>
>