[PHP] Securite problem
Dear all, I have a index.php3 file in a password protected directory (on Windows) which calls two other files with require_once(../code/anolislib2.php3); require_once(../code/pageslib1.php3); These two files are in another (not protected) directory. When I try to open index.php3 with IE5.5 nothing happens. The files are not included, I get no error message and no code at all is executed. Why is this and what can I do about it ? Thanks for any help. Roebie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Securite problem
I believe that require() and require_once() have a problem with relative paths. See here for more info: http://www.php.net/manual/en/function.require-once.php Jeff At 01:24 AM 2/3/2002 +0100, Roebie wrote: Dear all, I have a index.php3 file in a password protected directory (on Windows) which calls two other files with require_once(../code/anolislib2.php3); require_once(../code/pageslib1.php3); These two files are in another (not protected) directory. When I try to open index.php3 with IE5.5 nothing happens. The files are not included, I get no error message and no code at all is executed. Why is this and what can I do about it ? Thanks for any help. Roebie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Securite problem
There are a few issues that could be involved, but the glaring big one is that require_once() only works with PHP 4 The php3 extensions make me think you should simply use require() Roebie wrote: Dear all, I have a index.php3 file in a password protected directory (on Windows) which calls two other files with require_once(../code/anolislib2.php3); require_once(../code/pageslib1.php3); These two files are in another (not protected) directory. When I try to open index.php3 with IE5.5 nothing happens. The files are not included, I get no error message and no code at all is executed. Why is this and what can I do about it ? Thanks for any help. Roebie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]