Running a script on a remote server location

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Nickalf
Forum Newbie
Posts: 2
Joined: Wed Sep 25, 2002 2:46 am
Location: NJ USA (late of Swindon, UK)

Running a script on a remote server location

Post 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. . .
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

You can include the PHP with include() or require() but you can't give a parameter...
Nickalf
Forum Newbie
Posts: 2
Joined: Wed Sep 25, 2002 2:46 am
Location: NJ USA (late of Swindon, UK)

Post 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 ?
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

It should do, if it doesn't use a relative path to it.
Post Reply