Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.
I have my database log-in code saved to a file called dbconnect.php. Whenever I need to use my database, I just include dbconnect.php at the beginning of the page. After I'm done using the database, is there something that I should do? Like close it or disconnect?
Ok. Thanks. I guess I'll add it in to be safe. I have my index page include other pages like the menu, the content, the side panels, etc and most of the pages call on my database. I realized that on certain pages, dbconnect.php is included a couple times so I just wondered if I should at least mysql_close() before reopening.
you should always close files and disconenct when finished with a connection, but it's rarely done. php does a damn fine job of fixing at the end of execution. one reason why it's so handy
Originally posted by: fuzzy bee
if you make your file a .php, doesn't that mean that anyone can read it and, therefore, find out your login and password for your db?
Depends on permissions. If it's world readable, then anyone with access to the machine can read it. Can website visitors read it? No -- although it is remotely possible, say you do an apache or php upgrade, or are putzing around with httpd.conf, something goes wrong, and you php files are now being served as plain text or something along those lines. The best way is to do something like including a seperate file with the password, and being careful with that file (putting out of the webroot, give it tight permissions, etc).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.