/    Sign up×
Community /Pin to ProfileBookmark

offline stored files (clientside)

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:

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

The file is my top-header in a frameset.

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

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@WebfreakApr 13.2004 — 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 [URL=http://www.php.net]php[/URL] or change file exstension to .html or .htm so no php allowed.
Copy linkTweet thisAlerts:
@olafauthorApr 14.2004 — 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...
Copy linkTweet thisAlerts:
@DaiWelshApr 14.2004 — 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
Copy linkTweet thisAlerts:
@olafauthorApr 14.2004 — 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.
Copy linkTweet thisAlerts:
@DaiWelshApr 14.2004 — [i]Originally posted by olaf [/i]

[B]The point is, that local stored pages (grabbed with IE) work only if the whole code acts client-side.

[/B]
[/QUOTE]


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

[i]Originally posted by olaf [/i]

[B]My question is can i block this kind of errors/problems?[/B][/QUOTE]


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?
Copy linkTweet thisAlerts:
@olafauthorApr 14.2004 — [i]Originally posted by DaiWelsh [/i]

[B]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

[/QUOTE]


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?
[/QUOTE]




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? [/B]
[/QUOTE]
×

Success!

Help @olaf spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...