Thread: View .htm... code in IE or Opera or Firefox

  1. #1
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178

    View .htm... code in IE or Opera or Firefox

    Is there some software I thin plug-in for download what will do the next thing.
    While I surfing the net and I find good page and I wanna see ther code .htm or .html or .php or.... code. And I simply in my browser go somwere and look at that page code in browser!
    I've curently on my computer IE 6 and Opera!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  2. #2
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Um...you mean View Source? I'm no connoisseur of browsers, but I'd expect all browsers to have that capability. IE 6 does.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Right click -> View Source

    You do not need a plugin or anything. This functionality is built into all browsers.

    You cannot view PHP code in the browser, that is stored on the server and is not downloaded with the rest of the source.

  4. #4
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    View-> Source in IE or Opera. Or, you could save the page to your disk and open it with a text editor.

  5. #5
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    Thanks! This right click -> Source is great!
    I am wondering now, how is that, that I aint seen it before. My Brain My Brain smashing my self in head!
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  6. #6
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    :: clamps tongue ::

  7. #7
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    I have a weird problem that is related to this.. "view source" doesn't work!
    Nothing happens when I click the menu item. Has anyone had this problem before?
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Can you give an example of a page that does that Sang-drax? Also which browser. I have had it happen when the page was blank (literally blank)

  9. #9
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    if it's a blank page it wouldn't show anything - it's like opening an empty .txt file... or a new thing I'm seeing is that people but a bunch of empty space at the top of their page so when people view the source they think they're seeing an empty document, when all the data is really way below the part they're looking at.

    there are also ways that people can block your left-click, but they usually throw you an alert when they do so, and then going through the menu also works some time.

    another way you can do it without actually executing the HTML (but the server will still know who requested it) is to open notepad, go to open a file, change files of type to all files, and then type in the full URL of the page you're trying to open in the section labeled file name.

    this last way doesn't always work (for examle, if the requested page uses frames and blocks browsers not supporting frames).

    again, this doesn't show the PHP, because only the server sees that - it never releases it to the public. AFAIK, there's no way to see the PHP code through an HTTP connection. you'd need to connect via FTP or something else.
    Last edited by major_small; 03-08-2005 at 07:59 PM.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  10. #10
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    Quote Originally Posted by major_small
    if it's a blank page it wouldn't show anything - it's like opening an empty .txt file... or a new thing I'm seeing is that people but a bunch of empty space at the top of their page so when people view the source they think they're seeing an empty document, when all the data is really way below the part they're looking at.
    Wouldn't that create a scroll bar in notepad when you view the page? So when you scroll down you will see the content, right?
    When no one helps you out. Call google();

  11. #11
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by InvariantLoop
    Wouldn't that create a scroll bar in notepad when you view the page? So when you scroll down you will see the content, right?
    yeah, but when you do it in a browser, you're used to seeing the vertical scroll bar because most pages you visit are longer than a screen's length, so you hardly notice it when you view the source through the browser.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  12. #12
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I have a weird problem that is related to this.. "view source" doesn't work!
    Nothing happens when I click the menu item. Has anyone had this problem before
    If using IE, see this page.

  13. #13
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by Thantos
    Can you give an example of a page that does that Sang-drax? Also which browser. I have had it happen when the page was blank (literally blank)
    Every page (IE6)
    Quote Originally Posted by anonytmouse
    If using IE, see this page.
    Whohoo! Thanks
    Stupid IE bug.
    Last edited by Sang-drax; 03-09-2005 at 10:05 AM. Reason: I copy and paste too much
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  14. #14
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    PSST iit was anonytmouse not me that gave you that link

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 07:23 AM
  2. Reusing dialog procedure and resource file code
    By elad in forum Windows Programming
    Replies: 3
    Last Post: 12-23-2006, 09:45 AM
  3. Explain this C code in english
    By soadlink in forum C Programming
    Replies: 16
    Last Post: 08-31-2006, 12:48 AM
  4. Replies: 1
    Last Post: 03-21-2006, 07:52 AM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM