1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Extract the PHP Code of a diff Webpage from Source?

Discussion in 'Blogging' started by cybermeid, Aug 28, 2010.

  1. cybermeid

    cybermeid Regular Member

    Joined:
    May 22, 2010
    Messages:
    355
    Likes Received:
    29
    I want to extract the exact PHP Code used in a live streaming website which Iframe Adsense Ads inside the player and he has many wierd Codes.But when I view source,its displaying the HTML different Code which is not what I am looking as PHP is a server Side Scripting language.
    If some one can help,it would be great
     
  2. DAMINK

    DAMINK Registered Member

    Joined:
    Jan 2, 2008
    Messages:
    97
    Likes Received:
    110
    Occupation:
    Trade Printer but thats changing all be it slowly.
    Location:
    Melbourne, Australia.
    Home Page:
    Cant be done easily.
    There are some tools that will try pull all the content off a server including php pages.
    But think about it. If this was easily possible then people could for example go here and simply pull up the /includes/config.php file thus giving many important details.
    Short answer no with a but.
    Long answer yes with a if.
     
  3. cybermeid

    cybermeid Regular Member

    Joined:
    May 22, 2010
    Messages:
    355
    Likes Received:
    29
    Please make it clear.I tried using FirePHP but when I try to see the Console,its showing this message
    Permission denied to call method Location.toString
    Permission denied to call method Location.toString
    Permission denied to call method Location.toString
    Permission denied to call method Location.toString
    Permission denied to call method Location.toString

    I am not trying to view any config.php file or anything,but just wanting to replicate a Live Streaming Webpage serving Google Adsense Ads as Iframes for my own site.
     
  4. cybermeid

    cybermeid Regular Member

    Joined:
    May 22, 2010
    Messages:
    355
    Likes Received:
    29
    Can somebody help me please,seems like nobody is wanting to help me with this.I will give you 10$ to anybody who can help me copy a Webpages PHP webpage.
     
  5. Tanksapka

    Tanksapka Registered Member

    Joined:
    May 7, 2010
    Messages:
    98
    Likes Received:
    12
    bro.. as you wrote php is a server side language.. you can't extract or download php files.. it stored on servers... and what do you want to exactly? copy a site with content?
     
  6. origin

    origin Regular Member

    Joined:
    Nov 11, 2008
    Messages:
    334
    Likes Received:
    90
    Home Page:
    Stealing php source file is easy IF you know ftp/CPanel access username and password.
    If you want to copy Web to Web, you will get a very close result (html), but not the exact php codes. PHP can't be copied via http protocol.

    Anyway, keep trying...:bad:
     
  7. TehBoss

    TehBoss Newbie

    Joined:
    Jan 3, 2010
    Messages:
    29
    Likes Received:
    9
    You can't just take it. You need access to the actual .php file on the server. Without server access you can't just take it.
     
  8. Cloaks

    Cloaks Regular Member

    Joined:
    Mar 20, 2010
    Messages:
    298
    Likes Received:
    90
    This guy's right. Trust me, there's no easy way.
     
  9. cybermeid

    cybermeid Regular Member

    Joined:
    May 22, 2010
    Messages:
    355
    Likes Received:
    29
    Anybody please teach me on how to do it with FireBug PHP extension firephp.
     
  10. Tanksapka

    Tanksapka Registered Member

    Joined:
    May 7, 2010
    Messages:
    98
    Likes Received:
    12
    php is a server side code.. php has a html output this is what you see when you watch a site..
     
  11. mktanny

    mktanny Regular Member

    Joined:
    Oct 22, 2009
    Messages:
    225
    Likes Received:
    62
    Occupation:
    Blog editor and IM
    dude you have misunderstood what fire php does - it works when you are logged into your server and the editing goes live as you edit your php using firephp.