Downloading a PHP site

Francis
09/14/2004 12:34 am
I`ve downloaded and tried just about all the offline browsers out there and this has been the closet one to the mark of downloading a PHP site. I have a site I would like to transfer to another machine for offline viewing (and eventually onto my PDA). The names the website uses for the php files are not compatable in a windows directory. EE 3.3 Enterprise seems to make up for it by changing the file names as I have given the example below. I thought that was slick. All the pictures, movies, etc. download fine. However, all the HTML files say 302 file moved. The only page the remains in tact is the coursetest.php page itself (displaying the last page that was downloaded).

Is there a way around this? If you have any suggestions, I`m rather new at this. You might have to spell it out. Thanks!

This may be significant info. I`m not sure. All of the php files show up like the example below with 302 file moved errors.

coursetest.php?rot=TRACK2:UNIT1:LESSON1&pg=1

? is replaced with @
: is replaced with _3A

coursetest.php@rot=TRACK2_3AUNIT1_3ALESSON1&pg=1

Every page except the coursetest.php reads the following message:

<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0; URL=coursetest.php"><TITLE>302 File moved</TITLE></HEAD></HTML>

Oleg Chernavin
09/14/2004 06:45 am
Can you please tell me the exact URL and describe which links were not loaded as you want?

I will see what is wrong there and make a suggestion to you.

Thank you!

Best regards,
Oleg Chernavin
MP Staff
09/14/2004 08:24 am
Maybe I can provide you with a link:

http://ngpc39.rhi.hi.is/release/coursetest.php

I think the site has an identical structure as described above and causes the same effects.
The site uses Cookies (PHPSESSID=*).

If you can tell him how to download such a site correctly for Offline Browsing, that would be ok (hopefully). If you can go from page


http://www.icelandic.hi.is/coursetest.php?rot=TRACK2:UNIT1:LESSON1&pg=2
to
http://www.icelandic.hi.is/coursetest.php?rot=TRACK2:UNIT1:LESSON1&pg=3
to
http://www.icelandic.hi.is/coursetest.php?rot=TRACK2:UNIT1:LESSON2&pg=1
.
.
.
etc. and vice versa after the Export process, that should be ok (the php files should have different contents, and not:

<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0; URL=coursetest.php"><TITLE>302 File moved</TITLE></HEAD></HTML>
Francis
09/14/2004 10:36 am
You are correct. The site is: http://www.icelandic.hi.is/coursetest.php

It looks as though, instead of writing to the newly created htmls (or however they are called), the coursetest.php is continuously overwritten. That accounts for the fact that I have all the rest of the files correctly. The program then may be looking for the new files using their new name. That is an uneducated hunch though, as I have no clue how this program works.

I would like to mention that this problem seems rather small in comparison to the stunt this program pulled in backing up this site. I was impressed. Untill I get some words of wisdom, I figured I would download the site using the "no translation" method while carrying over each of the lesson html files separately. It looks like they engineered this website to be run on a CD-ROM. Thanks for your efforts. I will appreciate any more information you come up with that could save me some time.

> Maybe I can provide you with a link:
>
> http://ngpc39.rhi.hi.is/release/coursetest.php
>
> I think the site has an identical structure as described above and causes the same effects.
> The site uses Cookies (PHPSESSID=*).
>
> If you can tell him how to download such a site correctly for Offline Browsing, that would be ok (hopefully). If you can go from page
>
>
> http://www.icelandic.hi.is/coursetest.php?rot=TRACK2:UNIT1:LESSON1&pg=2
> to
> http://www.icelandic.hi.is/coursetest.php?rot=TRACK2:UNIT1:LESSON1&pg=3
> to
> http://www.icelandic.hi.is/coursetest.php?rot=TRACK2:UNIT1:LESSON2&pg=1
> .
> .
> .
> etc. and vice versa after the Export process, that should be ok (the php files should have different contents, and not:
>
> <HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0; URL=coursetest.php"><TITLE>302 File moved</TITLE></HEAD></HTML>
Oleg Chernavin
09/14/2004 12:18 pm
Yes, it looks like that. The link tells the browser to go back to the coursetest.php page, but this time the page contains another contents returned by the server.

I don`t have any solution to the problem yet. Sorry.

Oleg.