Re: html Documentation
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-05-13 10:10:03
|
> > The documentation is all automatically built from the php source file using > > a perl script. > > just out of curiosity - why did you write this in Perl rather than php? a) I'd learnt Perl before PHP and was therefore more fluent in Perl. b) I already had a "framework" for building scripts like this. ie analyse a file and produce an XML file. c) I've always thought of PHP as a server side pre-processor rather than a language for building utility scripts in. The output of php is naturally html, which isn't ideal if you want to drive it from a batch file. With perl your output can be whatever you want it to be. Were I to build the doc generator again from scratch then I don't know whether I would have chosen PHP or Perl. The a and b reasons above were 90% of the reason it was Perl rather than PHP. :o) Nigel =========================== For the most recent version of Php.XPath, and an archive of this list visit: http://www.sourceforge.net/projects/phpxpath |