dont forget the SSL options for cURL if you are using HTTPS

best
fernando

2009/3/24 <[email protected]>

>  yeah i think curl is probably the best way.  plus i'm not sure if you
> have control over the service your calling, but if you do you can make it
> only reply to post requests, set authentification to the post request and
> other stuff to prevent malicious attacks.  there are options for ssl
> authentification, i had to use curl for a wsdl with user authentification
> and  just recently i created a quick curl call to a ruby webservice i
> created.  it's quick, easy and gets the job done.
>
> ~rob
>  -----Original Message-----
> From: Brent Baisley <[email protected]>
> To: NYPHP Talk <[email protected]>
> Sent: Tue, 24 Mar 2009 12:47 pm
> Subject: Re: [nyphp-talk] Remote php call
>
>  Curl is the better way to go, but if you just need to hit a page on
>
> another server you can use
>
> file_get_contents("http://domain.com/script.php?param=a";);
>
>
> file_get_contents doesn't handle errors, failures, redirects,
>
> timeouts, etc. very well, which is why curl is better. But in a pinch,
>
> file_get_contents works.
>
>
> Brent
>
>
> 2009/3/23 Michele Waldman <[email protected]>:
>
> > Sorry for this posting.  I may20seem 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
>
> >
>
> >
>
> >
>
> > _______________________________________________
>
> > New York PHP User Group Community Talk Mailing List
>
> > http://lists.nyphp.org/mailman/listinfo/talk
>
> >
>
> > http://www.nyphp.org/show_participation.php
>
> >
>
> _______________________________________________
>
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>
>
> ------------------------------
> *The Average US Credit Score is 692. See Yours in Just 2 Easy 
> Steps!<http://pr.atwola.com/promoclk/100126575x1220085203x1201389322/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DMarchAvgfooterNO62>
> *
>
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show_participation.php

Reply via email to