[Scottish] Using PHP to parse simple 'text database'
Ben Thorp
scottish at mailman.lug.org.uk
Mon May 12 15:53:02 2003
PHP isn't great at file-handling, IIRC. You might be better off with a bit
of Perl/CGI - take a look at the Blosxom weblog tool, which uses text files
for it's entries http://www.raelity.org/apps/blosxom/ which might be
adaptable. Otherwise, building a simple database may still be the better
option.
Ben Thorp
Gordon JC Pearce
<gordonjcp@gjcp.net> To: scottish@mailman.lug.org.uk
Sent by: cc:
scottish-admin@mailman Subject: Re: [Scottish] Using PHP to parse simple 'text database'
.lug.org.uk
12/05/2003 09:15 AM
Please respond to
scottish
On Fri, 2003-05-09 at 18:43, David Marsh wrote:
> Any PHP wizards out there?
> (And is it OK to ask PHP questions here?)
>
> I'm thinking of using PHP to populate webpages from some homebrewed
> 'text database' files (rather than go to the hassle of MySQL), so as
> to save me having to type in lines and lines of HTML.. ;-)
>
You might as well use a proper database for it. It allows you to
generate pages in a very flexible way from a template, and isn't *that*
much hassle to set up. Another thing you could try, if your content
doesn't change much and you want static pages, is using some sort of
macro expansion utility (like m4 or some such), and Makefiles.
HTH
Gordon
_______________________________________________
Scottish mailing list
Scottish@mailman.lug.org.uk
http://mailman.lug.org.uk/mailman/listinfo/scottish