echo POST array.. or other ideas?

Posted by gamerzfuse on Stack Overflow See other posts from Stack Overflow or by gamerzfuse
Published on 2010-06-15T12:59:17Z Indexed on 2010/06/15 13:32 UTC
Read the original article Hit count: 320

Filed under:
|
|
|

Update:

As seen in the Original Questions below, I am looking to echo an array. The problem is that when I send the Moneris gateway to return a POST array to my new file (cart.php) it gets a 500 Internal Server Error.

This is the same error I received when it send to the script, which should have worked. Is there any reason that it would always send a 500 Internal Server Error?

Cart.php Direct Link

Craig


ORIGINAL QUESTION:

Hello there,

I am back for another question.

Here is my dilemma:

I have a script (ImageFolio Commerce) that hasn't been updated on our server since.. probably 2003. The script had a Payment Gateway (Moneris) manually added to it by the company who offers the script. This costs $1000 to get them to add a gateway.

I now have a new client who purchased this business from the previous owner. While switching the account to the new owner's Moneris account, we found out that things have been updated.

Long story short..

The Moneris gateway can send 3 types of responses:

  1. POST with XML Data
  2. POST
  3. GET

I imagine it is easiest to just use the POST array. I have the file that it sends the response to. As of now the file responds with a Internal Server error, but it does process the order.

What I want to do is determine what the POST array is that is being sent, so that I can take it and echo it in a logical manner. Is there a way to capture and echo the entire POST?

Or can someone suggest a better method of doing this?

Thank you,

Craig

© Stack Overflow or respective owner

Related posts about php

Related posts about post