嘿,伙计们,这是一个愚蠢的问题,但我这辈子都不记得该怎么做
我有一个 php 文件,我希望它与一个 xhtml 文件链接,因此它在页面加载开始时运行,php 是 LDAP 身份验证,我希望在用户转到页面之前成功
谢谢 !
do you mean something like
require_once('/path/to/your/file.php');
You mean LDAP authentication using PHP? Look at this example:
http://code.activestate.com/recipes/101525-ldap-authentication/
If user is not authenticated, show html form, ask for credentials, if it is authenticated, show your xhtml