SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question how to save source code web ????

    Hello all


    How do I create a JavaScript script to save a web page's source code to a file?

    Example: I will go to a website, it automatically from the web page's source code will be saved to a file




    Please guidance, sorry still a newbie

  2. #2
    SitePoint Zealot
    Join Date
    Apr 2010
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You wouldn't do that through Javascript. You would do it through your server side language.
    Follow me @YaderHernandez

  3. #3
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    then how can I do?
    do I have to do this using php or other scripts?

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2010
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, PHP is an option. Do a google search for "Web scrapping in PHP" you will find plently of tutorials on that subject.
    Follow me @YaderHernandez

  5. #5
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much


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
  •