image_graphviz で警告が表示されました。同様のエラーが発生した投稿を見ました。pear image_graphviz パッケージ ( Image_GraphViz-1.2.1 ) をインストールしました。また、graphviz.msi ( Graphviz2.25.msi ) を Windows にインストールしました (しかし、image_graphviz で何かを実行するかどうか、および実行時に何らかの効果があるかどうかはわかりません)。 image_graphviz を使用します)。
他に何かする必要がありますか?
これは、pear image_graphviz サイトのコードです。
<?php
require_once 'Image/GraphViz.php';
error_reporting(E_ALL ^ E_NOTICE); //Added E_NOTICE
$gv = new Image_GraphViz();
$gv->addEdge(array('wake up' => 'visit bathroom'));
$gv->addEdge(array('visit bathroom' => 'make coffee'));
$gv->image();
?>
これは警告です:
Warning: fopen(C:\WINDOWS\Temp\gra50.tmp.svg) [function.fopen]: failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.0\PEAR\Image\GraphViz.php on line 210
Notice: Undefined variable: data in C:\wamp\bin\php\php5.3.0\PEAR\Image\GraphViz.php on line 218
ありがとうペッカガイザー、私は使用しerror_reporting(E_ALL ^ E_NOTICE);
ました。一時ディレクトリを変更する方法がわかりませんが、私のコンピューターには c:/windows/temp が存在します。
私は問題を解決していません。アドバイスありがとうございます。