Reply to Parsing a PHP file

Your name:

Reply:


Posted by Ryan Govostes on 04/30/07 21:09

In my PHP script, I'd like to examine another PHP file to get
information on the classes it will define before I include it
(alternatively, getting a list of the classes after I've included it
would be fine too). I realize that I could do some regular expressions
and hope for the best, but my ideal solution has no chance of
misfiring (e.g. capturing something in a comment or string, or missing
something because it's on multiple lines).

My idea at the moment is to pick apart something like Doxygen or GeSHi
and figure out some simple file parsing, but I think that's pretty
involved for my aims here. Does anyone have a suggestion?

Regards,
Ryan Govostes

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация