PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
No, they cannot. Nobody can see your PHP code... even if it's in a public folder. They can see what the php produces (HTML or such), but not the code.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
They'd be able to see it if they call the .inc file and the server is not configured to prevent it. You should always store those types of details in the PHP file (or a file that is protected with PHP code). If you are not distibuting your code, there is nothing wrong with coding the credentials into your connection function.
ah, yes. I did not see that the database.inc file didn't have a .php extension. if this were a php file (database.inc.php) then nobody could see your stuff.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.