|
#1
|
|||
|
|||
|
I have created a site that uses php and a mysql database on my machine. I was wondering if all files such as php includes have to be in the public_html directory? Also, with the mysql database, do I have to recreate my tables using cPanel and then tranfer the data, or can I transfer the tables and all? Thanks for the help.
|
|
#2
|
||||
|
||||
|
php include files do not need to be in the public_html folder. In fact, it's wise to make an include file that contains your database connection parameters and put it outside the public_html folder, away from prying eyes and then include it in your files that need connection.
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|