Php web code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Php web code

Is there a way to access the php code of a web page?

20th Aug 2018, 8:56 AM
Kant1
Kant1 - avatar
6 Answers
+ 6
actually no ,PHP is a Server side language only Server and web can read this code. The code we see on browser are only Client side code.
20th Aug 2018, 9:53 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
No
20th Aug 2018, 9:20 AM
Toni Isotalo
Toni Isotalo - avatar
+ 1
They can’t access the source code. But if the php file is in your web root. Everyone else can use it. That’s why you should store your php file outside and connect to mysql with localhost.
20th Aug 2018, 11:01 AM
Toni Isotalo
Toni Isotalo - avatar
0
If I write any sensible information in my php code and if this information is not programmed to be displayed, no-one can access it?
20th Aug 2018, 10:59 AM
Kant1
Kant1 - avatar
0
What do you mean by "web root"?
20th Aug 2018, 12:13 PM
Kant1
Kant1 - avatar
0
Yes, it is possible to access the php source code but only if the admin makes a huge mistake. But not many people are aware of that. But in average normal situations no.
11th Sep 2018, 2:28 AM
N00B