Find Jobs
Hire Freelancers

cURL rESPONSE IN xml needs proper formatting

$2-4 USD / hour

Awarded
Posted over 10 years ago

$2-4 USD / hour

I have a php processing page that takes input data from html form and then on my form processing page forwards it to external api using curl. $response = curl_exec($ch); $books = new SimpleXMLElement($response); $result= $books->a1; $reason= $books->a2; Surprisingly , the webpages works absolutely fines sometimes and other times gives error Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/dir/public_html/dir/big/[login to view URL] Stack trace: #0 /home/dir/public_html/dir/big/[login to view URL](77): SimpleXMLElement->__construct('') #1 {main} thrown in /home/dir/public_html/dir/big/[login to view URL] on line 77 the api when used in when entered in normal browser displays result xml like following : This XML file does not appear to have any style information associated with it. The document tree is shown below. test 5.00 2013-09-19 08:21:14 (UTC) Success I need someone to solve the issue by making curl_exec : proper that would not make errors working on teamviewer remote will be appreciated . BID ONLY IF YOU ARE EXPERT ON PHP & CURL EXEC . IF NOT EXCUSE
Project ID: 4944623

About the project

2 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $14 USD/hour for this job
User Avatar
Quality work assured. Ready to get started. Thanks.
$25 USD in 2 days
5.0 (444 reviews)
7.2
7.2

About the client

Flag of UNITED STATES
zhengzhou, United States
5.0
2
Member since May 1, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.