473,387 Members | 1,693 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,387 software developers and data experts.

Secure PHP script folder

Hello guys,

This is my first post here, and I think my problem is very basic. I
just start programming in PHP/Mysql a month ago. Please be nice.

Plafeform is Windows 2000 with EasyPHP1.7 (if you know it)

I have a www folder where a created a test.html file which contains a
FORM:

<form name="form3" method="post" action="test.php">
<input name="test" type="submit" id="test" value="test">
</form>

My test.php scrip is in the same folder as my test.html, and it works
fine like this.

But I know if I keep it this way, people from internet can steal my
php script which I do not want to happen.

Then I understood I can move my test.php to a non public folder like
cgi-bin or a 'include' folder.

When I do so, here is what happen: Not Found
The requested URL /Wartools/test.php was not found on this server.

Apache/1.3.27 Server at 127.0.0.1 Port 80

I did modify my php.ini like this
; Windows: "\path1;\path2"
include_path = ".;C:\Program Files\EasyPHP1-7\php\include\"

but it still doesn't work, indeed I moved test.php in this C:\Program
Files\EasyPHP1-7\php\include\

Thank for your help
Personne
Jul 17 '05 #1
1 1861
If you are using require then make sure that you establish a full path
to the file -- in windows you would need to start from the C:/
directory and build from there.

Also -- if your webserver is parsing PHP documents then people will not
be able to steal them -- they will simply see the HTML results that are
spit out by the PHP.

Stephen Johnson
st*****@thelonecoder.com
http://www.thelonecoder.com

Jul 17 '05 #2

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

Similar topics

1
by: deko | last post by:
I use a download script to allow users to download files that are not in a publicly accessible directory. The files should only be downloadable from a secure page which only authenticated users...
6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
5
by: Joe | last post by:
I have an application which runs in a non-secure environment. I also have an application that runs in a secure environment (both on the same machine). Is there any way to share the session data for...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
14
by: knal | last post by:
Hi there, I'm looking for a secure login script for a sort-of-community site... (PHP, MySQL, sessions, or maybe something else ... ) I know there are a lot of scripts out there, but none of them...
0
by: ruffeo | last post by:
There has been alot on the web about this web.config error that happens in visual studio .net 2005. Most people think this has to do with IIS, but .net 2005 doesn't run on IIS but a developer...
2
by: Timbo | last post by:
Hello all, I have created a secure folder on my web server and created a user and password that can access it. So when you navigate to a page/file within this folder the login box appears. ...
4
by: gnewsgroup | last post by:
I have a membership web application. A user is either an administrator or a regular user (only 2 roles) I have an admin folder in this application. I want only administrators to be able to...
0
by: =?Utf-8?B?SmVubmlmZXI=?= | last post by:
Hello I get permission denied at line 4 in the following ASP Script <% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.CreateTextFile("test.txt",true)...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.