Click to See Complete Forum and Search --> : Script on another domain


Zamiboy
10-27-2004, 05:38 AM
I have made a script to rotate banners. It is working just fine when i'm running it under the domain where script actually is.
I would also like to use it with my other domains but that doesn't seem to work.

This is how i call it on the same domain where script actually is:
<!--#include virtual="/farmer/farmer.php?case=7" -->

And this how i'm trying to call it from another domain:
<!--#include virtual="http://www.domain.com/farmer/farmer.php?case=7" -->
Result: [an error occurred while processing this directive]

I quess it is matter of permissions even i gave rwx permissions for all.
What could cause this and how could i solve this issue?

biggus
11-22-2004, 05:35 PM
what's happenning is that the script is getting executed on the remote server when it's included that way.

Biggus

Zamiboy
11-22-2004, 05:59 PM
Yeah, it works with <iframe> even it is not what i wanted. I wish there would be another solution...

biggus
11-23-2004, 02:18 PM
what is the remote script doing? Do you have access to it so you can modify it? If so, then you can modify it, so it generates different html (or even XML, or javascript) when it's called remotely. Then have the file that's doing the including parse what the remote php file is echoing. Almost like a SOAP or REST call.

Biggus

Zamiboy
11-23-2004, 02:49 PM
Script shows banner advertisements according given parameters as size, type etc... Now i can use it like this: <iframe src="http://www.domain.com/farmer/farmer.php?case=7&s=2&t=4"...></iframe> but i cause some difficulties.

I see the point of making own parser for this but i don't know would it work either.