Here's what I need to do. In my PHP script, I need to make a POST request, but one of the arguments must be sent as a text file named data.txt. I already wrote a little script that will send the POST request and send the arguments. The server expects an argument that's an array with two elements, arg0 and arg1. arg0 is a regular string, but arg1 must be a text file. The contents of this file is serialized data that's in a variable. I was able to save the contents of this variable to a local text file, but how do I load this file as the arg1 item of the array?
Any help would be appreciated.