cherlick Posted May 19, 2008 at 02:35 PM Report Share #186073 Posted May 19, 2008 at 02:35 PM Boas pessoal é o seguinte eu estou a fazer um pequeno trabalho em que com php tenho que modificar outros ficheiros só que estou a ter um problema que não estou a conseguir resolver que é o seguinte: Warning: fopen(/usr/local/nagios/etc/objects/localhost.cfg ) [function.fopen]: failed to open stream: No such file or directory in /var/www/teste/localhost.php on line 12 Esquecime de mencionar que tou a trabalhar em linux. Eu penso que terei de por algo para ele primeiro ir ao root pra depois ir ao diretorio que eu quero mas não estou a ver como poderei fazer isso. $handle= fopen("/usr/local/nagios/etc/objects/localhost.cfg ","r+"); E isto que eu tenho no codigo. ABC fico a espera de resposta. Link to comment Share on other sites More sharing options...
fnds Posted May 19, 2008 at 04:16 PM Report Share #186085 Posted May 19, 2008 at 04:16 PM Warning: fopen(/usr/local/nagios/etc/objects/localhost.cfg ) [function.fopen]: failed to open stream: No such file or directory in /var/www/teste/localhost.php on line 12 Estás a tentar abrir um ficheiro que não existe 🙂 Link to comment Share on other sites More sharing options...
cherlick Posted May 19, 2008 at 04:30 PM Author Report Share #186089 Posted May 19, 2008 at 04:30 PM o problema e esse é que ele existe... so que esta a das esse erro. Esse ficheiro não esta e no mesmo sitio que esta o deste codigo Link to comment Share on other sites More sharing options...
cherlick Posted May 19, 2008 at 04:55 PM Author Report Share #186096 Posted May 19, 2008 at 04:55 PM Obrigado a mesma mas ja resolvi o problema. Tinha um espaço n fim que nao me estava a permitir 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now