Re: Recursivly Updating Files
| From: | skater | Date: | Tue, 04 Sep 2001 00:23:14 +0000 |
| Subject: | Re: Recursivly Updating Files | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65795@lists.php.net to get a copy of this message | ||
okay, sorry, had a blonde moment!!!
it's more than just having a prepend and appending file onto it, i'm
changing existing CSS into linked ones, existing Javascripts into includes,
and taking the whole thing out of frames by using PHP includes in a table.
each page needs to be edited and have certain bits taken out and changed.
i've done this with regular expressions and it solves the problem, but PHP
seems to have problems recursivley.
without warning and completely randomly, PHP will read the same file or
directory [x] amount of times... it's really annoying because after reading
8000 files in a 1000 file site, the script times out...
"Franklin Van Velthuizen" <php@yoki.org> wrote in message
news:3B93E609.9000505@yoki.org...
> Skater wrote:
> > what does that entail?
> >
> >
> > "Rasmus Lerdorf" <rasmus@php.net> wrote in message
> >
> > news:Pine.LNX.4.33.0109031300500.1243-100000@rasmus.php.net...
> >
> >>Why not just configure your server to use an auto_prepend_file ?
> >>
> >
> >
>
> Reading the manual every now and then wouldn't hurt... really, it
> wouldn't :).
>
> <snip>
> auto_prepend_file string
> Specifies the name of a file that is automatically parsed before the
> main file. The file is included as if it was called with the include()
> function, so include_path is used.
>
> The special value none disables auto-prepending.
> </snip>
>
>
> --
> Franklin van Velthuizen fv@ebiris.se +46-(0)70-6786613
> Ebiris Applications AB http://www.ebiris.se/
> +46-(0)19-109910
>