Results 1 to 4 of 4

Thread: File saving

  1. #1
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default File saving

    I want a code using which whenever a user open my website ,the page of my website will automatically store in his/her computer.(My website is based on PHP-MySQL)
    Its urgent

  2. #2
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    If i went to your website I know i wouldn't want your web page stored on my computer automatically!

    Maybe you could create a link, so the user can choose to download the page at his/her discretion?

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Not possible for security reasons.

    Javascript certainly can't do it.

    You could use PHP to output a file for download, but it would be entirely the choice of the user whether they accept that or not.


    The only possibility here is ActiveX (a big security risk and often blocked, plus ONLY works in Internet Explorer, so that's basically pointless), or a Java applet, which would work out ok, but requires Java installed and enabled (security issue), and that's hard to program.


    If you give some more information we might find another way to accomplish your goal, but this isn't going to work.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Most web pages are automatically stored on the user's computer. It's called browser caching and it usually allows the same page to load faster the next time the user visits. However (due mostly to ignorance), aside from perhaps being able to clear the cache, and set its size limits, or to turn it off, most users have no real control over it or use of it other than its automatic functions for the browser.

    Why did you want the copy of your page to be on the user's computer?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •