Re: PHP from CD-ROM

From: Date: Tue, 05 Dec 2000 23:20:26 +0000
Subject: Re: PHP from CD-ROM
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-28775@lists.php.net to get a copy of this message
I forgot to hit "reply all" when I sent this out. I'm forwarding it back to the list because I've got a huge ego. :) Kyle Jerviss wrote: > > Les Neste wrote: > > > > I'm running a web site where I also want to be able to deliver a version on > > CD-ROM. The live web site contains links to PHP files, which obviously > > won't work if the end user is accessing the CD-ROM from their home > > computer. Right now, if the user clicks a link to a .php served from the > > CD, the browser fills the window with PHP source -- obviously not the best > > solution. > > > > Yes, I could produce a version which does not use PHP -- the links instead > > go to pages that say 'you have to be online to use this'. However, I don't > > want to get into multiple versions if I don't have to. > > > > I'm going to check out Javascript to see if there's a way to differentiate > > the cases. Has anyone come up with a better solution for this? > > The best we've come up with was putting instructions for installing > apache+php for linux on the CD. It may also be possible to write a > script that to process each possible page and correctly mangle the URLs > to simulate a live site, but I wouldn't want to do it, particularly not > with a shopping cart site with more than two items...

« previous php.general (#28775) next »