Ok when I write a php script I have to add the details about connecting to the database etc..

In the script I have to put the SQL server address and password..

Does the php file stop the user from accessing these details once they are uploaded onto the server?

I ask this because if I type the address of the script into the browser and access the source the script isn't shown at all.

Thanks