Click to See Complete Forum and Search --> : offline stored files (clientside)


olaf
04-13-2004, 06:23 AM
Hallo,

there are still a lot of webusers who connect to internet with a modem... of course i have no problems with this.

I'm sure that not all of them works like this:

Visit a page and save this on your desctop!

If they do this in case of dynamic pages you get a lot of 404 errors with pathes like this:

http://www.bergtoys.nl/languages/uk/BERG%20TOYS%20Products%20Pedal%20Go-Carts,%20Trampolines,%20Tipper,%20Tricycles%20and%20other%20outdoor%20toys_dosyalar/topUK.php

The file is my top-header in a frameset.

My question is can i block this kind of errors/problems?

Webfreak
04-13-2004, 11:05 AM
Maybe you don't check if you have php installed on your server. I was testing my own server few days ago (without php) and i saw this message. Try install php (http://www.php.net) or change file exstension to .html or .htm so no php allowed.

olaf
04-14-2004, 01:21 AM
Sorry but you are on the wrong path...

it's not a problem that my scripts doesn't work but happens if "offline" users execute local page's. Why i asked this here is because i have the idea to use a header or something else...

DaiWelsh
04-14-2004, 05:30 AM
Are you saying that you want your page to work ok if they save them to their local mchine and browse them locally, or are you saying you want to stop them doing this, or...?

If the user saves a single frame contents then there is no guarantee this will work as intended (many framed sites have code that depends on the frame structure being correct), if they save the frameset without the frames there is no use for them as they still have to load the frame contents off the server. If they want to get the whole frameset and the frames then they need to use something like the built in IE save functionality or a web site grabber to get all related files (like images).

If you want to provide a method for them to simply save a single htm file that works later then I suggest you ditch frames for a start ;)

HTH,

Dai

olaf
04-14-2004, 05:55 AM
The point is, that local stored pages (grabbed with IE) work only if the whole code acts client-side.

Before i replace all framesets i'm looking for some possibillities.

DaiWelsh
04-14-2004, 10:01 AM
Originally posted by olaf
The point is, that local stored pages (grabbed with IE) work only if the whole code acts client-side.


ok, that is a fact, but what do you want to do about it - if the pages are saved as html then that is what they will remain, you cannot get server side functionality from those static pages once they are saved as html?

I stil do not understand what you want someone to tell you - or in other words what do you mean by

Originally posted by olaf
My question is can i block this kind of errors/problems?

block what, when, where?

If the problem is that some pages are called from the server when they should be called from the local version this may be because you are specifying absolute rather than relative paths?

olaf
04-14-2004, 12:02 PM
Originally posted by DaiWelsh
ok, that is a fact, but what do you want to do about it - if the pages are saved as html then that is what they will remain, you cannot get server side functionality from those static pages once they are saved as html?

I stil do not understand what you want someone to tell you - or in other words what do you mean by

If you save a page from IE it saves all files in a map called by the title of the pagename. If the user open the file (later) from his own computer it try to open the files from this map but on the web. Of course this map do not exist. This produce a lot of 404 error's. That what i want to stop.


block what, when, where?

If you save a serverside on your computer than the browser saves a html file. I know that is not possible to block. But maybe there is someone who knows another solution...


If the problem is that some pages are called from the server when they should be called from the local version this may be because you are specifying absolute rather than relative paths?