放置PHP文件以连接MySQL数据库的正确位置是什么

I have set up a database on a hosting site and want to connect it with my Android app. I am following this tutorial: http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/

The tutorial doesn't say where you should save the Php files that are created, so where should I be saving them using the file manager in Cpanel? the current structure looks like this:

A image of folder structure

php files must upload to "public_html" folder to view public.

for example: if your domain is: http://example.com/ you must create "index.php" file in "public_html" folder, so you can access that by: http://example.com/index.php or http://example.com/

read more, how using cpanel: https://www.siteground.com/tutorials/cpanel/file_manager.htm

You need to upload your codes to the root folder, which in your case is public_html