Here's the situation and scenario.
I am pulling variables from a text file and looping them through a function in order to get a result, problem is, that something is happening that is not allowing the results to pass through correctly. Weird thing is, that if there is only one variable present, the script works, if more than one variable is in the list, then that's where the problem comes in. The script only returns the correct result with the last variable in the list, all other variables seem to no be passing correctly.
Here is the process:
grab first line of text file
use that variable to request data from an ssl site using fsock
returns a result based on returned data from the post query
loops back around to start over with next variable in list.
I have tried everything that i could think of.
I basically want the script to reset completely as if only one variable were submitted. I am suspecting that it has something to do with the foreach() function.
Does it have anything to do with the session since its ssl?
Like I said when only one variable is present in the text file, it works accordingly. When more than one variable, it only works correctly with the last variable. The other variables return the incorrect result.
at the end of the file, i even manually unset every variable in the script to make sure that i starts with all variables undefined just in case and still... no dice.
code that i am using can be viewed at http://fontestad.net/personal/jf/pt/t.phps
thank you.