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
As far as I know - YES, IT IS POSSIBLE.
Password protection is for web access only.
Allright. That's one dissapointment in the protection of codes, isn't?
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.
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?