Re: PHP SSI

From: Date: Tue, 20 Feb 2001 22:43:41 +0000
Subject: Re: PHP SSI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40830@lists.php.net to get a copy of this message
From: "Brandon Orther" <brandon@webintellects.com> > Hello, > > I am writing a banner rotation script and want to use Server Side include. > When I try to include from any server other than the one that php script is > on I get an error, > > Error: [an error occurred while processing this directive] > > Any Ideas? > > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > brandon@webintellects.com > 800-994-6364 > www.webintellects.com > -------------------------------------------- SSI doesn't support opening files over HTTP, so what you're trying to do will not work. You either need to have your banner script called from an <IMG> tag in the remote file (your script would return image data) - in which case you can't do HTML banners - or the remote server needs to run PHP and do something like this where the banner will appear: <?php readfile("http://your-adserver.dom/banner.php?id=1234"); ?> Cheers Simon Garner

« previous php.general (#40830) next »