_neto_ 0 Denunciar post Postado Outubro 26, 2007 Olá pessoal,estou fazendo um sistema que usa gráficos gerados com classes do PEARmeu problema é em um gráfico que teima em não ser gerado que usa o GraphVizo erro é o seguinte: PHP Warning: fopen(C:\\WINDOWS\\Temp\\graA00.tmp.png) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in C:\\php\\PEAR\\Image\\GraphViz.php on line 210PHP Notice: Undefined variable: data in C:\\php\\PEAR\\Image\\GraphViz.php on line 217Eu achei muito estranho esse erro, ele basicamnete diz que não encontra um arquivo que ele mesmo gera.Alguém pode dar uma luz sobre o que pode estar causando isso? Compartilhar este post Link para o post Compartilhar em outros sites
Micael Vianna 0 Denunciar post Postado Outubro 26, 2007 Acho que o problema ta na configuração do local onde esta o PEAR Compartilhar este post Link para o post Compartilhar em outros sites
_neto_ 0 Denunciar post Postado Outubro 26, 2007 Mas eu tenho outras bibliotecas do PEAR no sistema e elas não dão problema. Só o GraphViz. Compartilhar este post Link para o post Compartilhar em outros sites
Micael Vianna 0 Denunciar post Postado Outubro 26, 2007 Bom, daih nao sei cara =\Nao uso PEAR Compartilhar este post Link para o post Compartilhar em outros sites
_neto_ 0 Denunciar post Postado Outubro 30, 2007 No site do PEAR eu achei essa resposta de um cara com um problema parecido: Ok I think I solved this problem. I had two problems actually, the first must sound painfully obvious but it wasn't to me. I needed to download and install GraphViz - http:// www.graphviz.org/ I assumed the GraphViz libraries were installed as part of the PEAR package. Second and probably of more use to the readers is that in order for Apache (2 at least) to talk to the "dot" program it must have permission to interact with the desktop. (Thanks to tr4nc3 at msn dot com on php.net for that tip...) To allow this do the following: Start>Run>services.msc Right click on Apache2, select Properties Click on the LOG ON tab Check the box "Allow this service to interact with desktop" Click OK Restart Apache Its worth mentioning that this seems like a security disaster. By default Apache runs as SYSTEM on windows and so will every process it creates... This gives PHP carte blanche to do whatever it feels like to your poor windoze box :-(. However... you will get to see your pretty graphviz charts :-). Hope this helps. Perhaps this should be added to a FAQ somewhere... mas isso também não resolveu, eu já tinha o GraphViz instalado, então me concentrei em permitir o apache a interagir com o desktop, mas isso também não funcionou. Compartilhar este post Link para o post Compartilhar em outros sites