Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormista3
    • CommentTimeApr 30th 2007
     permalink
    Question - are there any solutions which could be run on a dedicated linux server, to replicate all php pages on a site as static html pages?

    (I actually found a Windows equivalent of this at http://www.diskmonitor.com/php/index.aspx)
    • CommentAuthormista3
    • CommentTimeApr 30th 2007
     permalink
    Hmm http://www.gnu.org/software/wget/ looks like it might be able to handle a recursive mirror of the site. (Not sure if it could rename the .php filenames to .html intelligently though)
    • CommentAuthorMatt
    • CommentTimeApr 30th 2007
     permalink
    You can create a PHP script to handle this, it is easier if only one directory though. You can use the opendir command to open the current directory, and then use $page = file_get_contents("http://yoursite.com/$entry") and then save the page as the page name of $entry minus 3 characters and add .html.
Add your comments
    Username Password
  • Format comments as (Help)