otuatail wrote:Ok so what you are saying is that if there is an error in my php then anyone
Can see my entire code. every single line from 1 to 1000 in there favourate web browser.
No, if there was an error with your PHP code, either the error message would be displayed (i.e., display_errors is turned on), or the output would be blank. What I am talking about is the possibility of a server bug/glitch/misconfiguration where for some reason the server, instead of invoking the PHP interpreter, just serves your script's code as-is.
otuatail wrote:I did ask him how he saw it but he declined to reply.
If you are on shared hosting, one possibility is that the person also had access to the server, and was able to read your code as the file permissions was not properly set and there was no "chroot jail" to prevent users from spying on each other.