开发者

Somehow accessing Javascript output?

开发者 https://www.devze.com 2023-04-10 15:40 出处:网络
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

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消