So,
Say there's a remote PHP file that's generating some output in JavaScript.
I can do<script src='some_file.php type='text/javascript'></script>
, and the code will run, but when I click View Source it just shows the above code. Is there any way I can access the actual code that that PHP file is running?
Also, when I right click on the output of the javascript and go to 'this frame' -> 'view frame source' I get the actual output. I want to be able to use开发者_StackOverflow中文版 it.
This is inherently impossible.
PHP runs on the server; the browser is never aware of it.
Nope, PHP runs on the server and generates a html code as shown in your browser. Do you want it to show?
精彩评论