P
pek
OK, I believe I looked enough on the web (google.com, irc.freenode.net,
google groups etc. etc.).
I can't seem to find a single PHP Parser that I can use in Java.
I have downloaded Apache Xerces but I believe it is not relevant (or
I'm missing something).
Anyway, to make it easier, this is what I want *exactly*:
I'm developing a small program that parsers HTML files, gets only the
PHP code and tries to recognize all PHP functions that use a PHP
library.
Example:
<html>
<?php
mysql_connect("localhost","pek","peker");
?>
</html>
The program will parse the PHP code, recognize that "mysql_connect(*)"
is a function, tries to find in which library the function belongs from
an XML file which has a list of libraries and associated functions
(this is where Xerces comes) and outputs an array of Strings with these
informations: CodeLine, Function, Library etc.
I simply need a PHP Parser.
Any help/ideas/tips/suggestions/etc..?
Thank you for your time.
google groups etc. etc.).
I can't seem to find a single PHP Parser that I can use in Java.
I have downloaded Apache Xerces but I believe it is not relevant (or
I'm missing something).
Anyway, to make it easier, this is what I want *exactly*:
I'm developing a small program that parsers HTML files, gets only the
PHP code and tries to recognize all PHP functions that use a PHP
library.
Example:
<html>
<?php
mysql_connect("localhost","pek","peker");
?>
</html>
The program will parse the PHP code, recognize that "mysql_connect(*)"
is a function, tries to find in which library the function belongs from
an XML file which has a list of libraries and associated functions
(this is where Xerces comes) and outputs an array of Strings with these
informations: CodeLine, Function, Library etc.
I simply need a PHP Parser.
Any help/ideas/tips/suggestions/etc..?
Thank you for your time.