Re: Some advice on working with files
| From: | php3 at developersdesk dot com | Date: | Tue, 27 Jun 2000 23:58:36 +0000 |
| Subject: | Re: Some advice on working with files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3468@lists.php.net to get a copy of this message | ||
Addressed to: Billy Harvey <Billy.Harvey@thrillseeker.net>
<php-general@lists.php.net>
** Reply to note from Billy Harvey <Billy.Harvey@thrillseeker.net> Tue, 27 Jun 2000 17:32:57
-0400 (EDT)
>
> John Biesnecker writes:
> > I dealt with the problem myself just recently (yesterday, in fact). The
> > best solution I found was to write C scripts and execute them from PHP
> > (because C offers much more robust filehandling stuff) but, barring that,
> > I'd read it all into an array and manipulate the individual lines...
> > otherwise modifying text files is a real pain.
>
> How would you handle file locking in PHP, or would this alone be a
> good enough reason to call an external program?
>
It might be an even better reason to load up a database like MySQL, and
forget about all the low level file stuff.
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com