Jump to content

Need help Creating a text file from a URL Request using PHP


urtlking2jo

Recommended Posts

I need help creating a script that will create a text file (log if you will). 

The data that needs to be in this log file is retrieved as preformatted text using a secure url.  Basically, I'd like to automatically go to this url (ccbill datalink) retrieve the information, and have that information stored in a log on my server. 

The URL request is similar to: https://datalink.ccbill.com/data/main.cgi?startTime=20061111000000&endTime=20061111170000...

and it returns information to the screen formatted as follows:
"VOID","932889","0005","2000000001","","1.99"
"VOID","932889","0005","2000000002","","4.32"
"VOID","932889","0005","2000000003","","2.90"

I need to store that information in a log file, but I don't know how to without running the URL myself and cutting and pasting from the browser window. Can anyone provide some insight?!
  • 2 years later...

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.