Click to See Complete Forum and Search --> : How do I put a Heavily Programmed Website on a CD for Demo?
vmarasigan
12-26-2002, 01:42 PM
I have been asked to put a corporate website on CD for demonstration purposes. The CD would contain a snapshot of what the site looked like at a certain date (eg. News & Announcements, Product Listings). The problem is that the site contains a lot of server-side programming. In other words, simply downloading the site and burning to CD would not work.
Is there an easy way to save a site to disc as a plain-Jane HTML page, with the results of the server-side programming hard-coded in?
jeffmott
12-26-2002, 01:55 PM
The problem is that the site contains a lot of server-side programming. In other words, simply downloading the site and burning to CD would not work
If you're trying the capture the server-side programming results at a specific point in time then you can just download and save each page. A server-side script will not return the script itself, only the output of it.
vmarasigan
12-30-2002, 10:49 AM
Okay, I may have my terminology wrong. What if it's a site done in PHP, and downloading a page via FTP leaves stuff like this in the code instead of actual content?
<?
if( $id == 1 ) {
?>
jeffmott
12-30-2002, 02:00 PM
vmarasigan
and downloading a page via FTP
Download the site via HTTP instead. This way any server-side code will be parsed before it gets to you.