FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[php] secure dir prevents include?





jasperlevink
Hello Folks.

I assume including php files from a passw secured dir is impossible? Is it possible to include a file from a secured dir?

Thanks.
Jasper
dandelion
As far as I know - YES, IT IS POSSIBLE.
Password protection is for web access only.
jasperlevink
Allright. That's one dissapointment in the protection of codes, isn't?
Aelita
NOt really. If you put a file on the server wouldn't you want it to be able to be accesed by the scripts? You can access it by the scripts and if youare worried about the script being accessed by soomeone else script on another server then use this on the first part of the hidden script

if !defined ('secrect')
{
die('HACKING ATTEMPT')
}


and in the script that will access the file put this on the forst line

define ('secret');

you can change secret to anyword you would like.
Rhysige
Alternatly using the secure directorys should it not be possible to use server paths for includes? rather than web links, for example include('var/home/public_html'); whatever weird thing that way?
Related topics
PHP IP Ban
Php, mime_content_type() problem
PHP Navigation
Reducing Exploits
[php]putting script fragments together?
one line securing of php pages (login of users) (user auth)
PHP include()
PHP using Sessions
Generating the next shade of a colour.
Include() and require_once() errors
looking for help with GD
include() Problem
$page= and include problems
URL Parameters PHP
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.