[nycphp-talk] Remote php call
Tom Sartain
tomsartain at gmail.com
Mon Mar 23 21:17:31 EDT 2009
If you mean execute the script as if you'd opened it up in the
browser, then yes, cURL is your friend. (
http://us.php.net/manual/en/curl.examples-basic.php if you want a
starting point)
If you're looking to actually include the PHP code from
other-domain.com and execute it on your-domain.com, the code would
have to be served up as plain text (so going to
other-domain.com/script.php in your browser would return regular old
PHP code), then you can just include it. But there are probably more
reasons to not do this than there are members on this list.
-Tom
On 3/23/09, Michele Waldman <mmwaldman at nyc.rr.com> wrote:
> Sorry for this posting. I may seem lazy but everyone wants me to do
> everything right now and my daughter had 104 fever today.
>
>
>
> I'm pressed for time and I've got a baby to tend to right now.
>
>
>
> If I want to call a remote php script from a php file in a different domain?
> Curl it?
>
>
>
> Michele
>
>
>
>
More information about the talk
mailing list