In order to use your PHP script (authentication features etc) you need to have the all files within the same server.
As of including files, virtually - yes, yo can use include for remote files, but you will not be able to execute the remote PHP code. You will only include the output. ie: include('www.google.com'); includes you google's homepage, not the Terrabytes of their database access :) -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins "Dan Healy" <[EMAIL PROTECTED]> wrote... : > 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 > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php