Is it safe to put php code for accessing a database in the same script that we have wrote the form? For example $_PHP_SELF
...? I mean the fact that we stop need another script from a server (that no none can read)and using the same code on the same file doesnt this make everyone able to see the code and our passwords for example mysqli_connect("server","asdfsa",code"
...... thanks...