Agreed this is a kludge, and I didn't expect it would be used for packaging an application; however, it should work quite nicely on a server where you don't want arbitrary users poking through your code :) Cheers, Rob. >From: "Nick Lindridge" <nick@xxxxxxxxxxxxxxxxxxxxx> >Reply-To: phpa@xxxxxxxxxxxxx >To: <phpa@xxxxxxxxxxxxx> >Subject: [phpa] Re: when will compiler functionality be added? >Date: Wed, 17 Apr 2002 16:04:16 -0000 () > > > > > I haven't tried this but it might just work... with PHPA running > > have a script load each of your files, then after that is done > > have another script wipe all the files to length 0 without updating the > > file timestamp. > >That might be hard to do, but the theory is correct. Provided that the >source file has the same modification time as a corresponding cache file, >then the file contents won't be looked at. So you could copy a source tree, >run PHP to generate all necessary cache files, and use a program that did a >stat() on the source file, truncated it, and reapplied the file times with >utime(). But you would then have to deal with the issue of distributing the >source. Just tarring the source and cache files and the untarring will not >work, even if file times are preserved, because the inumbers, and possible >device numbers, of the untarred source files will be different. So you'd >have to rename the cache files once the empty source files had been >recreated. There would be other ways to do the bundling and unbundling, but >the principle remains the same. > >However that is all rather a kludge. > > > >------------------------------------------------------------------------ > www.php-accelerator.co.uk Home of the free PHP Accelerator > >To post, send email to phpa@xxxxxxxxxxxxx >To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe > > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com ------------------------------------------------------------------------ www.php-accelerator.co.uk Home of the free PHP Accelerator To post, send email to phpa@xxxxxxxxxxxxx To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe