To change the rights from a php script put the following lines

define('CHMOD_FILES', 0666);
//define('CHMOD_DIRS', 0777);

@chmod(Your file name, CHMOD_FILES);



Un saludo, Danny


                                                                                       
                                                
                      Carlos Castillo                                                  
                                                
                      <[EMAIL PROTECTED]      Para:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>                     
                      com.co>                  cc:                                     
                                                
                                               Asunto:   [PHP] jabber - chmod on files 
                                                
                      31/07/2003 23:51                                                 
                                                
                                                                                       
                                                
                                                                                       
                                                




HI,





I'm using jabber but I have one problem, I did an administrator webpage for
it, so I create the users for jabber in that page, when I create the user,
it creates a xml file with permission of 644 and the owner is apache, but
when I connect on the jabber or that user connects the xml file changes to
600 and the owner to root.





The problem is that I have to read that file after he connects but when I
try I don't have access, because the perm is on 600,





How can I change the perm from the php page, so I change with chmod 644
xxxx.xml before I open it....or how can I modify jabber so it doesn't
change the perm of the files?





Thanks!





Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]
____________________________________



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
____________________________________












--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to