Find Jobs
Hire Freelancers

cURL rESPONSE IN xml needs proper formatting

$2-4 USD / hour

Dianugerahkan
Disiarkan lebih dari 10 tahun yang lalu

$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
ID Projek: 4944623

Tentang projek

2 cadangan
Projek jarak jauh
Aktif 11 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
2 pekerja bebas membida secara purata $14 USD/jam untuk pekerjaan ini
Avatar Pengguna
Quality work assured. Ready to get started. Thanks.
$25 USD dalam 2 hari
5.0 (444 ulasan)
7.2
7.2

Tentang klien

Bendera UNITED STATES
zhengzhou, United States
5.0
2
Ahli sejak Mei 1, 2012

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.