RE: [PHP] Read a file
| From: | Dan Anderson | Date: | Tue, 08 Jul 2003 15:51:38 +0000 |
| Subject: | RE: [PHP] Read a file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154392@lists.php.net to get a copy of this message | ||
implode the array and explode it when you're done...
-dan
On Tue, 2003-07-08 at 11:52, carlos castillo wrote:
> But them how i can look for the tag i need if i have the file in an
> array, i need to read an xml file and extract the info between tags
> <password xxxxx> and </password>.....
>
> Thanks,
>
> Carlos A. Castillo.
> Ingeniero de desarrollo
> ccastillo@imagine.com.co
> ____________________________________
>
> Su Aliado Efectivo en Internet
> www.imagine.com.co
> (57 1)2182064 - (57 1)6163218
> Bogotá - Colombia
> ____________________________________
> - Soluciones web para Internet e Intranet
> - Soluciones para redes
> - Licenciamiento de Software
> - Asesoría y Soporte Técnico
> ____________________________________
>
>
> -----Mensaje original-----
> De: Burhan Khalid [mailto:phplist@meidomus.com]
> Enviado el: martes, 08 de julio de 2003 10:15
> Para: Carlos Castillo
> Asunto: Re: [PHP] Read a file
>
> On Tuesday, July 8, 2003, 6:08:20 PM, Carlos wrote:
> CC> I need to read a whole file and then look for an info on it, i want
> to know
> CC> with which function is better, fopen(),
> fpasstrhu().......fseek()....
>
> The function that will be best will depend on what kind of file you
> are wanting to read. For simple text files, this works well :
>
> $contents = file("somefile.txt");
>
> Which puts all the information in the file in an array.
>
> http://www.php.net/file
>
>
> --
> Regards,
> Burhan Khalid
> phplist[at]meidomus[dot]com
> http://www.meidomus.com
>
>
>