php-db | 2001062
Date: 06/29/01
- Next message: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Previous message: jong jong: "[PHP-DB] correct on "sybase function for MS-SQL Server""
- In reply to: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Next in thread: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Reply: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is this what you have in mind?
$url = 'http://website.com/document.xml';
$str = implode('', file($url));
$str = contains the xml doc and retains formatting
[spaces, newlines]
$url could be a doc on the local server as well.
--- Hugh Bothwell <hugh_bothwell <email protected>> wrote:
> I'm not sure how you mean; it depends on where the
> data is coming from.
>
> I count three ways you can do this:
> 1. pass the XML filename (or URL) to the script via
> GET or POST
> 2. pass the XML source to the script via POST
> 3. upload the file via POST and call the script
>
> More details on what you're trying to accomplish
> would help.
>
> ""Niel Zeeman"" <NZeeman <email protected>> wrote in
> message
>
news:9heo93$q9j$1 <email protected>
> > Hi there
> >
> > Is there anyway of passing a xml document to a php
> page as raw data.
> >
> > What I want to do is eg.
> > send a page a xml document and recieve a response
> ( in xml ) from that
> page.
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-db-unsubscribe <email protected>
> For additional commands, e-mail:
> php-db-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Previous message: jong jong: "[PHP-DB] correct on "sybase function for MS-SQL Server""
- In reply to: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Next in thread: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Reply: Hugh Bothwell: "Re: [PHP-DB] Passing XML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

