Page 1 of 1

Running a script on a remote server location

Posted: Wed Sep 25, 2002 2:46 am
by Nickalf
.Hi all,

Does anyone 'know' a way to run a remote PHP script much the same as this following JavaScript can be run remotely:

Code: Select all

<Script src="http://DomainName.tld/MyScript.js" language=JavaScript type="Text/JavaScript"></Script>
even if the site the page is being run 'from' doesn't have PHP set up ?

I also need to carry over a parameter, if possible..
i.e. MyScript.php?MyArgument

Thanks,
Nick. . .

Posted: Wed Sep 25, 2002 3:16 am
by Takuma
You can include the PHP with include() or require() but you can't give a parameter...

Posted: Wed Sep 25, 2002 3:31 am
by Nickalf
&nbsp;&nbsp;Thanks for the comeback Takuma.

> You can include the PHP with include() or require() but you
> can't give a parameter..

In this case, would include(http://DomainName.tld/MyScript.php) work then ?

Posted: Wed Sep 25, 2002 5:24 am
by Takuma
It should do, if it doesn't use a relative path to it.