Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 11-20-2006, 01:14 PM
Unregistered
HostGator Guest
 
Posts: n/a
Smile a couple noob questions

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.
Reply With Quote
  #2  
Old 11-20-2006, 02:07 PM
Pitrow's Avatar
Pitrow Pitrow is offline
Swamp Croc
 
Join Date: Oct 2005
Location: Oregon
Posts: 279
Default Re: a couple noob questions

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.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 07:08 PM.

 
Forum SEO by Zoints