Array HELP!

Discussion in 'PHP' started by jfontestad, May 7, 2012.

  1. #1
    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.
     
    jfontestad, May 7, 2012 IP
  2. PK-Host

    PK-Host Guest

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Can you provide what you've got so far?
     
    PK-Host, May 7, 2012 IP
  3. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #3
    PM Sent.

    Thank you.
     
    jfontestad, May 7, 2012 IP
  4. DennisRitchieCollective

    DennisRitchieCollective Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yea, I think it's necessary to edit your post and include the code you have so far minus any sensitive information it might have.
     
  5. jfontestad

    jfontestad Well-Known Member

    Messages:
    1,236
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    148
    #5
    jfontestad, May 7, 2012 IP