how to get the php source code on my website

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to get the php source code on my website

    I'm trying to use jquery to alert the php code in my webpage but it only alert the html source using .html(),i also try replacing the "<" use in opening a php so that the browser will not render it but it is not work.

    I found out this work in .html file but not in .php file,so how can i do that

    <script>
    $(function(){
    alert($("body").html().replace(/</g,"&lt;"));
    });
    </script>

  • #2
    Originally posted by francis alert View Post
    I'm trying to use jquery to alert the php code in my webpage but it only alert the html source using .html(),i also try replacing the "<" use in opening a php so that the browser will not render it but it is not work.

    I found out this work in .html file but not in .php file,so how can i do that

    <script>
    $(function(){
    alert($("body").html().replace(/</g,"&lt;"));
    });
    </script>

    You can use <?PHP echo file_get_contents("Insert Your Url With Http"); ?> ////Example file_get_contents("http://google.com");


    Comment


    • #3
      .phps

      Comment

      Working...
      X