include "http"
| From: | Dan Healy | Date: | Tue, 15 Oct 2002 11:09:10 +0000 |
| Subject: | include "http" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120000@lists.php.net to get a copy of this message | ||
Hi,
I wrote a program to authenticate users. I would like to place a few lines
at the top a webpage that would call this program. Some web pages will be
on the same server as the authentication program, others will not.
Can I use include/require of do I need to use fopen? The program returns
true or false upon account validation, so I am not sure how I can use fopen
I have tried the following so far and cannot get it to work
<?
php ini_set("include_path","http://myserver/scripts");
$foo=require("/ndsauth.php");
if(!$foo) {
exit;
}
?>
Any suggestions would be appreciated
Thanks
Dan