0

Browser "development tools" are a great way to learn from others, but are they a security risk? I'm working on a project using PHP. My understanding is that PHP code is hidden. So, someone calling for "view source" would be looking at the results of the script, not the script. Much like CGI/Perl. That's great, but is it still hidden when someone uses the "developer tools"?

  • I use Chrome Dev Tools everyday, for debugging stuff mostly. All I see is html - not sure if i miss something though. – Vallery De Lexy Jun 23 at 1:43
5

PHP is a back end programming language that is interpreted on the server side and outputs code that, eventually, gets served to the internet. The PHP code is never served unless you give the server permission to expose that code. Developer tools can only access code and data that you present to the internet.

So, no, developer tools do not expose anything you don't give it.

-1

Nope. PHP is a server-side scripting language and the browser just handles DOM.

  • Such a short answer is not high quality. This answer also doesn't say anything that other answers don't already. Can you explain more? – Stephen Ostermiller Jun 24 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.