Re: include "http"

From: Date: Tue, 15 Oct 2002 11:35:21 +0000
Subject: Re: include "http"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120003@lists.php.net to get a copy of this message
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 maxim@php.net www.PHPBeginner.com // where PHP Begins "Dan Healy" <dhealy01@twcny.rr.com> 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 >

« previous php.general (#120003) next »