I tried the CodeGraph after installing the Graphviz under Windows XP. I created the "graphs" directory and executed the code. I tried to parse the parse_gen.php file and it did not work. Here is the message I got (the graphs/aa84b75d967e55d40a0e6a9045072504.jpg is not created):
expected output in graphs/aa84b75d967e55d40a0e6a9045072504.jpg
failed to generate for some reason dot file is shown below
You'll definitely need to change the path to the dot interpreter.
Also in the definition of function clean_cache() it calls the Unix cli tool 'find' (the MSDOS FORFILES can provide the same functionality).
However I'm a bit confused that you did not even seem to get a valid .dot file out of the script.
I suggest you add some code in do_result to return the name and path of $tmpfile - and check if the file actually got created. It should at least create the output file even if input file was empty/unreadable.
Jan de Jong - 2011-02-07 02:06:29 - In reply to message 1 from Laurent Girard
It took me about two days to find out that at least these things should be noticed to get it working on Win7:
1. adapt set_error_handler(error_logging) i.e. replace 'error_logging' to
2. the grapviz-program should be placed not in "\Program files\" because
the space prevents the start of the dot program. Make a copy somewher else e.g. c:\APPL\
3. do not use the function get_dest_file();
By the way, this is an excellent and very usefull program. I strongly recommend it. Maybe someone can extend it to include a drawing of a control graph of function. Thanx