Jump to content

How can I get and send files using cURL?


hitech

Recommended Posts

I need to get the XML file using cURL with PHP5 and then send to another page that uses Javascript to parse and show the informations.

Do I have to do 2 cURL's? One to get the file and other to send to Javascript in other page?

How can I get the xml file with javascript? I tried this:

 

var ch = <?echo $ch;?> 

 

but doesn´t work.

 

Thanks,

Helcio

Brasil

Link to comment
https://forums.phpfreaks.com/topic/87710-how-can-i-get-and-send-files-using-curl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.