Closed Thread Icon

Topic awaiting preservation: Copying a dynamic site to use offline? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22988" title="Pages that link to Topic awaiting preservation: Copying a dynamic site to use offline? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Copying a dynamic site to use offline? <span class="small">(Page 1 of 1)</span>\

 
H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-19-2004 07:48

Hi all, i have a number of sites which use databases and are run through php script... some of my clients now want to have an offline version of the site on a cd which they can show/give to their clients.

Now obviously this brings some problems... firstly a server would need to be setup to access php files - so there needs to be someway to open the php files as HTML files. And this i guess means that each static version and possiblility of the pages has to be made static.



Anyone have any ideas on how i can achieve this?

Thanks

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 08-19-2004 13:01

I did a google on "run php on cd", the top hit was http://run-php-from-cd.no-ip.net/

And there was more...
I havn't tried any of this myself though.
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-19-2004 13:33

oh wow awesome.. i didnt really think that was an option so was looking up different thinks..
ill see how i go, thanks!

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-19-2004 13:41

Tho..everyone would need to install the software on their pc i think .. which kinda defeats the purpose of it unfortunately

DmS
Maniac (V) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 08-19-2004 16:17

There are other alternatives, I know.
It was up as a discussion here a while back but I can't remember what was said.
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-20-2004 00:34

Oh ok ill see if i can find it.

Actually i did find one that looks pretty good called microweb. But its pretty damn expensive and i only need it for a few projects. Hopefully i can find something free open source or another option out there...

Could always write a php script to run on the server that went through all of the links and made static pages :P.. bit more difficult tho, and it would have to change the links somehow. Dunno..

KodeKrash
Neurotic (0) Inmate
Newly admitted

From: Barrie, Ontario
Insane since: Aug 2003

posted posted 08-22-2004 06:34

You could make sure that links will take a spider all the way through your site, then run something like wget on the base URL. If the links are done correctly, this should give you a copy of the entire site pretty cleanly. You may need to do some rework to filenames, etc so local linking works, bug wget has some pretty cool options for doing that kind of stuff for you.

Good resource: http://www.oreilly.com/catalog/spiderhks/ -- which contains a section on wget.

Disclaimer: I did write that part of the book...

"Learn a little. Work a little. Live a lot more. Repeat."

--------

Alternately, it isn't that hard to write your own local static site generator. After all, that's what your scripts are already doing, you just need to output each one to a file instead of a web browser. The logic is the same.

(Edited by KodeKrash on 08-22-2004 06:36)

setec
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Sep 2004

posted posted 09-30-2004 15:39

To H][RO,
the software at http://run-php-from-cd.no-ip.net/ allows to run a dynamic website directly from a CD without installing anything on the user PC.

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 09-30-2004 21:41

look at roadsend php compiler... it might be just what you need for this. But it still doesn't give you a database.

This brings up an interesting thought about php and embeded databases.

(Edited by norm on 09-30-2004 21:42)

« BackwardsOnwards »

Show Forum Drop Down Menu