Php 关于image_graphviz的简单问题

Php 关于image_graphviz的简单问题,php,graphviz,Php,Graphviz,我试图显示image_graphviz的示例,但它在我的页面中没有显示任何内容 这是我的页面: test.php <?php require_once 'Image/GraphViz.php'; $gv = new Image_GraphViz(); $gv->addEdge(array('wake up' => 'visit bathroom')); $gv->addEdge(

我试图显示image_graphviz的示例,但它在我的页面中没有显示任何内容

这是我的页面:

test.php

       <?php
        require_once 'Image/GraphViz.php';

        $gv = new Image_GraphViz();
        $gv->addEdge(array('wake up'        => 'visit bathroom'));
        $gv->addEdge(array('visit bathroom' => 'make coffee'));
        $gv->image(); 

?>

我认为路径有问题,然后我使用绝对路径,即“C:/wamp/bin/php/php5.3.0/PEAR/Image/GraphViz.php”。但它也不起作用

有什么不对劲吗?你知道吗


非常感谢

您应该尝试将错误报告转为E\u ALL

i、 e

我很确定PHP会遇到错误,但不会输出它。此外,作为一项好政策,建议在开发时始终打开所有错误报告级别

查看文档时,它似乎传递了图像数据,因此确保PHP文件开头没有任何空间,如果执行
header
功能,则该功能将无法工作

*NO_SPACE_HERE*<?php
                require_once 'Image/GraphViz.php';

                $gv = new Image_GraphViz();
                $gv->addEdge(array('wake up'        => 'visit bathroom'));
                $gv->addEdge(array('visit bathroom' => 'make coffee'));
                $gv->image(); 

?>
*此处没有空间*

您应该安装GraphVIZ,检查以下链接,希望对您有所帮助

谢谢@Ragez,我尝试了错误报告,没有错误。我想我已经安装了pear image_graphviz,我已经在cmd中测试了它。但实际上它不适用于php。我不知道为什么。您可能想编辑
GraphViz.php
,并通过在文件中添加一些调试内容来查看发生了什么。@RageZ,谢谢您的建议。我试了又试,没有错误,什么也没显示。我很困惑。
*NO_SPACE_HERE*<?php
                require_once 'Image/GraphViz.php';

                $gv = new Image_GraphViz();
                $gv->addEdge(array('wake up'        => 'visit bathroom'));
                $gv->addEdge(array('visit bathroom' => 'make coffee'));
                $gv->image(); 

?>