From: ellson Date: Wed, 9 Jan 2008 21:20:16 +0000 (+0000) Subject: fix php demo X-Git-Tag: LAST_LIBGRAPH~32^2~4891 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c51f235bbdbf4f337056981e92f00420830dc42a;p=graphviz fix php demo --- diff --git a/tclpkg/gv/demo/modgraph.php b/tclpkg/gv/demo/modgraph.php index 2b6640e22..a15a88e8e 100755 --- a/tclpkg/gv/demo/modgraph.php +++ b/tclpkg/gv/demo/modgraph.php @@ -25,8 +25,8 @@ while ( ! feof($f)) { $rec = fgets($f); $matches = preg_split("/[\s]+/", $rec, -1, PREG_SPLIT_NO_EMPTY); - $n = gv::node($G,$matches[0]); - $usedbylist = preg_split("/[,]/", $matches[3], -1, PREG_SPLIT_NO_EMPTY); + $n = gv::node($G,$matches[0:0]); + $usedbylist = preg_split("/[,]/", $matches[3:0], -1, PREG_SPLIT_NO_EMPTY); foreach ($usedbylist as $i => $usedby) { if ($usedby != "-") { gv::edge($n, gv::node($G, $usedby)); @@ -36,6 +36,6 @@ while ( ! feof($f)) { fclose($f); gv::layout($G, "dot"); -gv::render($G, "png"); +gv::render($G, "xlib"); ?>