Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2004, 12:15 PM
Authorized User
 
Join Date: Jun 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP and Mysql general question

Hello,

I have a question in regards to db scripts. Is there a special programming pratice to separate your script in a separate file than the actual php and call it from the php page or does it even matter to have php and mysql scripts in the same php file?

Is there a security issue at all with having your db scripts in the same area as your php?

I appreciate your responses.

dungey
 
Old July 20th, 2004, 08:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, blimey! This is a topic in itself!

The latest Linux Format has an article about this, FWIW. There are all sorts of things to consider when putting PHP scripts onto a live server, in order to lock down the security. But its a good option is to include key files from locations on the file system which cannot be run directly by the webserver, but can only be reached by the PHP engine, yes.

Dan





Similar Threads
Thread Thread Starter Forum Replies Last Post
General SELECT question rsearing SQL Server 2005 1 January 16th, 2007 12:01 PM
General Question About c++ madeebmir C++ Programming 0 August 15th, 2006 10:48 AM
Very general question merianos VB How-To 4 August 1st, 2006 12:24 PM
General Question stu9820 ASP.NET 1.0 and 1.1 Basics 2 September 23rd, 2003 03:36 PM
General Question about Dispose DKS BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 22nd, 2003 06:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.