Why is PHP invisible in source Code? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why is PHP invisible in source Code?

I wanted to ask why PHP Code is "invisible" (User cant see it) in the source Code? Because JS Code is visible... Is there a possibility that JS code can also be "invisible"?

2nd Oct 2018, 5:47 AM
Lukas Mock
Lukas Mock - avatar
1 ответ
+ 7
Users view codes from their own devices. PHP is server codes which reside on server side and the codes never sent over to your device, it only send the parsed html/CSS/JavaScript to client device. This is way PHP is always invisible and JavaScript is always visible to web browser users.
2nd Oct 2018, 6:13 AM
Calviղ
Calviղ - avatar