Why? You have to. If you want to send the character '&' to the script then you need to encode this. If however you just simply want to send & as a delimeter to space out your variables ex:
get.php?variable=blah1&variable2=blah2
then you will have to do that yourself. ie. mabye
echo "variable1=" . rawurlencode($blah) . ...etc
I have a sneeking suspision that the text file you are pulling from is like:
variable=blah1&varialbe2=blah2
variable= ...etc
well if this is so, you can simply make sure that you have the correct form of the GET headers in the file and skip the rawurlencode, or just have have regular text in there piece together a GET request from a couple of lines, where say a line is:
variable1:value1
variable2:value2
then you could just break apart each line by the : delimeter (see the explode() function) and put a GET header together rawurlencoding the value. Better yet if you had a database this would be even easier. 🙂
If you dont have your stuff setup this way, then I just wasted a whole lot of typing.
Hope this helps!