Page 1 of 1

Security function error

PostPosted: 15. September 2008 15:00
by Cleiton Penido Cunha
Hi people.

Plese, could anybody help me ???

I went use the security function and the message bellow saw.

Warning: include(lang/pt_br.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\security\htdocs\index.php on line 13

Warning: include() [function.include]: Failed opening 'lang/pt_br.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\security\htdocs\index.php on line 13

Thank you.

PostPosted: 16. September 2008 14:02
by EnglishRocker
You're looking in the wrong place. Try this:

include "/xampp/lang/pt_br.php";

PostPosted: 16. September 2008 18:17
by glitzi85
Hello,

it seems that not all Language-Files are copied to the Security-Folder, in your case the pt_br. You can do the following:

Copy the File:

C:\xampp\htdocs\xampp\lang\pt_br.php

into the folder:

C:\xampp\security\htdocs\lang\

Then your Security-Site should work also in your Language!

@EnglishRocker: The Language-Files for the Security-Script are in a different location thant the files for the normal XAMPP (though they have the same content). That must be, as the security-folder is outside the normal Doc-Root to ensure that only localhost have access to this folder!

glitzi

PostPosted: 18. September 2008 13:05
by EnglishRocker
I stand corrected, glitzi.