I have a fully functioning php/MySQL application running and in production.

We would like the option to distribute the application and data therein via CD. Obviously the recipients wouldn't have php/apache/mysql installed in their system, nor would we want to do it for them. This is for a 1 week conference, and the CD would be in lieu of a printed book.

Is there something availabe that could crawl my application and archive the data as static pages?

Thanks.

    Un*x systems typically have a utility called wget that can do this.

      Well, if you want a demo right off your laptop. Try Uniform Server. You can have a functioning WAMP install right off your USB drive (I suppose USB drives are a bit more than CDs. Plus they'd own your intellectual property. However, you coudl have a demo to show off without having to have an Internet connection.)

      Also, If you are a windows user (or just like GUIs), httrack is a great website copier.

      Cheers!

        3 months later

        Hi again. After an initial, somewhat successful attempt at wget when I posted this, I am back trying to get it done completely.

        I have gotten wget to mirror the entire application and convert the URLs to .html files, but the local version still doesn't "work". I am using:

        wget --mirror --convert-links --html-extension http://mywebsite -o log

        I have two problems:

        • Links aren't being converted. For example, the original live php application's main page has a menu link to index.php?func=title. wget is indeed retrieving a page with the proper content called index.html?func=title.html, but the index page doesn't convert the links to it. THe link is still to index.php?func=title. It was my belief that --convert-links was supposed to do this.

        • Even the properly renamed files that are downloaded don't "function". If I try to browse directly to index.html?func=title.html, I still get the main index page index.html, which of course is the first part of the URL. So it appears that it's not treating the file/query string with html file extensions as a single file to be loaded. Isn't it supposed to do this? I have confirmed that the file index.html?func=title.html does indeed have the expected html content in it.

        Thanks in advance.

          Write a Reply...