473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dreamweaver PHP outside document root



I have a website I am trying to develop using PHP and Dreamweaver. I
also have a library of PHP code which includes the username and password
to get in the database.

I would like to put this code outside the document root. (If you are
using Apache, outside of htdocs) The html code can still be in the
document root. But the PHP, I would prefer it not to be. What happens
if some one misconfigures the server, and it no longer recognizes the
..php extension, therefore allowing people to download the script. Or,
if some one figures out the script name and runs the entire .php file?
I don't trust it.

However, the only way dreamweaver will recognize any code as being in
the project, is if it is under the document root. Is there any way
around this?

-d

Jul 17 '05 #1
1 2662
Doug schrieb:
I would like to put this code outside the document root. (If you are
using Apache, outside of htdocs) The html code can still be in the
document root. But the PHP, I would prefer it not to be. What happens
if some one misconfigures the server, and it no longer recognizes the
.php extension, therefore allowing people to download the script. Or,
if some one figures out the script name and runs the entire .php file?
I don't trust it.

However, the only way dreamweaver will recognize any code as being in
the project, is if it is under the document root. Is there any way
around this?


Use .htaccess and deny any external access to the configuration file.

Matthias
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: E. Wise | last post by:
I'm seeking some solid information on how I as a programmer can work with a Macromedia designer on my ASP .NET applications. Here's the specific scenario: Company has a intranet area that is...
4
by: Ian | last post by:
Hi there, Has anybody got any tips or recommendations for using Vs.Net and Dreamweaver 2004 together? I like to use dreamweaver as the layout tool as for me it just seems a little more...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
2
by: Wendy Elizabeth | last post by:
I am having problems using Dreamweaver mx 2000. My company purchased two licenses of the Universal Macromedia subscription. The other web programmer is not working at this company any more and I...
5
by: jamie | last post by:
I am confused.... I am trying to start getting into internet programming and creating web pages with a "wow" effect beond the plain-jane html document, but I dont know where to start. I have...
0
by: Nata | last post by:
hi all i am trying to store the XML Document object into MS SQL2005 i want to store this as whole not different tables; plz help me regarding this i am trying form last two weeks i asked many...
0
by: Howard | last post by:
I have Apache Web Server 2.0.55 installed locally with MySQL 5.0.18-nt, and of course PHP 5.1.2 I also have installed phpMyAdmin. It is accessible through http://localhost/phpMyAdmin. The pathing...
0
ak1dnar
by: ak1dnar | last post by:
There is a Error getting while i am entering records using this jsp file. <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ include...
3
by: Mickey | last post by:
Anyone know of any compatibility issues between DW and Visual Studio? I've been told me that editing in DW (I'm using CS3 on one computer and 8 on another) can cause compilation errors because of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.