Re: [PHP] Recursivly Updating Files

2001-09-03 Thread Rasmus Lerdorf

Why not just configure your server to use an auto_prepend_file ?

On Mon, 3 Sep 2001, skater wrote:

 help!!!

 I'm recursivley reading and editing every .htm and .html file in a 1000 page
 website and upgrading it to contain linked CSS, Javascript includes and PHP
 includes. the script works fine and all, trouble is that PHP doesn't.

 Sometimes the script will run fine, other times PHP will decide to read the
 same file 10-20 times and then do the same recursivly, other times it'll say
 it's in one directory, and be reading files from another.

 i'm running PHP verson 4.0.4pl1 off a 2000 server and IIS






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Recursivly Updating Files

2001-09-03 Thread skater

what does that entail?


Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Why not just configure your server to use an auto_prepend_file ?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Recursivly Updating Files

2001-09-03 Thread Franklin van Velthuizen

Skater wrote:
 what does that entail?
 
 
 Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
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  [EMAIL PROTECTED]   +46-(0)70-6786613
Ebiris Applications AB   http://www.ebiris.se/  +46-(0)19-109910


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Recursivly Updating Files

2001-09-03 Thread skater

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 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Skater wrote:
  what does that entail?
 
 
  Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
 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  [EMAIL PROTECTED]   +46-(0)70-6786613
 Ebiris Applications AB   http://www.ebiris.se/  +46-(0)19-109910




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]