RE: Re[2]: [PHP] Read a file

From: Date: Tue, 08 Jul 2003 16:49:06 +0000
Subject: RE: Re[2]: [PHP] Read a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154401@lists.php.net to get a copy of this message
Umm, sudo? On Tue, 2003-07-08 at 12:49, carlos castillo wrote: > 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 = "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@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 11:03 > Para: carlos castillo; php-general@lists.php.net > 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. > > -- > Regards, > Burhan Khalid > phplist[at]meidomus[dot]com > http://www.meidomus.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.general (#154401) next »