PHP GENERAL 24 RE RE 2 PHP READ A FILE
Date: Tue, 8 Jul 2003 11:49:56 -0500

Subject: RE: Re[2]: [PHP] Read a file
From: ccastillo@no-spam (Carlos Castillo)

Thanks, i already solve that problem, but now i have another...sorry...jejejeje.....

Look I need to change the permissions for the files, I use $cmd =3D "chmod 644 $archivo";
system($cmd);

but I can do it, only the root can do that....you have an idea how I can do it?

Thanks,

Carlos A. Castillo.
Ingeniero de desarrollo ccastillo@no-spam ____________________________________
=20
Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)6163218
Bogot=E1 - Colombia=20
____________________________________
- Soluciones web para Internet e Intranet - Soluciones para redes - Licenciamiento de Software - Asesor=EDa y Soporte T=E9cnico ____________________________________

-----Mensaje original-----
De: Burhan Khalid [mailto:phplist@no-spam Enviado el: martes, 08 de julio de 2003 11:03
Para: carlos castillo; php-general@no-spam Asunto: Re[2]: [PHP] Read a file
On Tuesday, July 8, 2003, 6:52:56 PM, carlos wrote:

cc> But them how i can look for the tag i need if i have the file in an cc> array, i need to read an xml file and extract the info between tags cc> <password xxxxx> and </password>.....

Well, I wish you would have said that earlier. Parsing XML files is different than parsing text (or other files).

PHP has XML parsing built-in thanks to expat. More information on XML support in PHP is at http://www.php.net/xml
I have written a tutorial at my website <plug>http://www.meidomus.com/archives/000075.php</plug> that shows an example of parsing XML files in PHP. It does not use the XMLDOM extension. It might be of help to you.

--=20
Regards,
Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com
--=20
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php