[FX.php List] XML response page (need help)
Leo R. Lundgren
leo at finalresort.org
Sun Oct 12 12:38:09 MDT 2008
I see.
For reference, check out the PHP manual at http://www.php.net/manual/
en/features.remote-files.php , it describes a bit about "Remote
Files", which is a feature of PHP which lets you read the contents of
remote files like they were local. In order to do this though, you
must be allowed to by the settings in php.ini (mainly
"allow_url_fopen").
Check the setting of allow_url_fopen by doing a phpinfo(); in your
code, and then if it is enabled you could use for example http://
se.php.net/manual/en/function.file-get-contents.php to get the entire
contents as a string right away.
If the setting does not allow remote files you need to either change
the setting, or use other means of communicating with the remote page
(for example networking functions, if they are allowed).
12 okt 2008 kl. 20.32 skrev Josh Shrier:
> There is a URL not connected with my site that has an XML string
> which I need to retrieve. I don’t know how to create a page that
> retrieves the string from this URL.
>
>
>
> From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-
> bounces at mail.iviking.org] On Behalf Of Leo R. Lundgren
> Sent: Sunday, October 12, 2008 8:29 PM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] XML response page (need help)
>
>
>
> I'm sorry, I don't see what the problem is. You make it sound like
> you have the code that recieves the XML that the external page
> returns, i.e. that you have it in a variable. If that is the case I
> would guess you know how to output it, but I guess not since you
> ask :)
>
>
>
> How far have you gotten in the process?
>
>
>
> 12 okt 2008 kl. 20.19 skrev Josh Shrier:
>
>
>
>
> I have a page which performs to a website. The website returns an
> XML string. I need to get that XML string into my response page. I
> am fairly new at this technology. Can someone please tell me what
> code I need to pull that XML string into my webpage.
>
> -Josh Shrier
>
> _______________________________________________
>
> FX.php_List mailing list
>
> FX.php_List at mail.iviking.org
>
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
>
> -|
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081012/9e71d4e1/attachment.html
More information about the FX.php_List
mailing list