How to View my WordPress PHP Files using browser (5 posts)

  1. eddyj
    Posted 7 years ago #

    I want to go to my site and type in the url like


    But it wont let me view it

    How can i see the source without logging into wordpress

  2. Adam Brown
    Posted 7 years ago #

    That's the way PHP works--it will never show you the source that way.

    Just download the WP files to your hard drive and open them in a text viewer like Notepad.

  3. eddyj
    Posted 7 years ago #

    Ah ok admin.. how do i download them as soon as i type

    http://www.domain.com/wp-content/themes/themename/header.php it doesnt stay on that to download it

    Basically myself and another guy use the same theme and hes customized his just a little bit and i like a certain element of what he has done and want to see how he did it in the header.php

  4. eddyj
    Posted 7 years ago #

    k i think i figured it out thanks adam

  5. Adam Brown
    Posted 7 years ago #

    [Edit: I wrote this before you wrote your last post, but I'll leave it here anyway.]

    You'll need to download them via ftp. If you want to see the other guy's code, you'll need to ask him for it. There's no other way to get it.

    Just to clarify...PHP code gets parsed by the server before being sent to your browser, so you'll never see PHP source (on any site, using any PHP code) by typing a PHP file into the browser.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.