Hi all,
I've this strange problem, I pass a value on to a url, which ofcourse, uses GET Method to catch my value and it retruns me an output of xml, , Now My problem is to collect this xml which is now directly displayed on the browser. I dont know what file of which technolgy the other server responds.
How do I collect this information using php?
Thanks in Advance
Dude
How to collect the output
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Ok, I tell you the problem very clearly. I've an application which on submission of a form it puts the data into database, if it finds a certain type of files say an image file, then it takes the image file and passes it to a server which takes the image path as its value
like
When I execute this, I get an xml output on to the browser. The output which is displayed as xml , I need it as a string or as a file.
Also One more doubt, how do I run the url through PHP.
like
Code: Select all
http://server.com?img=http://localhost/pics/2.jpgAlso One more doubt, how do I run the url through PHP.
Code: Select all
http://server.com?img=http://localhost/pics/2.jpgUsing any of these will get the content of the web page (what xml basically is) if thats what you needed:
http://uk.php.net/curl (requires curl library)
http://uk.php.net/manual/en/function.fopen.php
http://uk.php.net/manual/en/function.fi ... ntents.php
Before posting next time please search the forum!
http://uk.php.net/curl (requires curl library)
http://uk.php.net/manual/en/function.fopen.php
http://uk.php.net/manual/en/function.fi ... ntents.php
Before posting next time please search the forum!
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Waiting five hours is absurd. HAVE SOME PATIENCE![url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:4. All users of any level are restricted to bumping (as defined here) any given thread within twenty-four (24) hours of its last post. Non-trivial posts are not considered bumping. A bump post found in violation will be deleted, and you may or may not receive a warning. Persons bumping excessively be considered as spammers and dealt with accordingly.