urtlking2jo Posted November 12, 2006 Share Posted November 12, 2006 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?! Link to comment https://forums.phpfreaks.com/topic/26976-need-help-creating-a-text-file-from-a-url-request-using-php/ Share on other sites More sharing options...
doni49 Posted November 12, 2006 Share Posted November 12, 2006 Do a search in this site's "Tutorials" section. Your search term is "Curl". There's a tutorial on doing just this task. Link to comment https://forums.phpfreaks.com/topic/26976-need-help-creating-a-text-file-from-a-url-request-using-php/#findComment-123362 Share on other sites More sharing options...
urtlking2jo Posted November 12, 2006 Author Share Posted November 12, 2006 Thanks! That definitely pointed me in the right direction. Link to comment https://forums.phpfreaks.com/topic/26976-need-help-creating-a-text-file-from-a-url-request-using-php/#findComment-123625 Share on other sites More sharing options...
wsn123 Posted December 24, 2008 Share Posted December 24, 2008 We have recently released universal code in php for website owners that are controlling their own membership database and NOT CCBill. The code is ready for download at http://ccbill.wsn123.com Link to comment https://forums.phpfreaks.com/topic/26976-need-help-creating-a-text-file-from-a-url-request-using-php/#findComment-723053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.