Hi,
I am trying to hook up my site to paypal. paypal wants to use the following code. But it is giving me this error, I don't know why
Notice: Undefined variable: header in
C:\Inetpub\ on
line 13
where line 13 is
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
I don't know why it is saying variable undefined
where line 13 is
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
here is part of the paypal code
****************
// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-synch';
$tx_token = $_GET['tx'];
$auth_token = "GX_sTf5bW3wxRfFEbgofs88nQxvMQ7nsI8m21rzNESnl_79ccFTWj2aPgQ0";
$req .= "&tx=$tx_token&at=$auth_token";
// post back to PayPal system to validate
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen (' 80, $errno, $errstr, 30);
***********************************
I am trying to hook up my site to paypal. paypal wants to use the following code. But it is giving me this error, I don't know why
Notice: Undefined variable: header in
C:\Inetpub\ on
line 13
where line 13 is
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
I don't know why it is saying variable undefined
where line 13 is
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
here is part of the paypal code
****************
// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-synch';
$tx_token = $_GET['tx'];
$auth_token = "GX_sTf5bW3wxRfFEbgofs88nQxvMQ7nsI8m21rzNESnl_79ccFTWj2aPgQ0";
$req .= "&tx=$tx_token&at=$auth_token";
// post back to PayPal system to validate
$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen (' 80, $errno, $errstr, 30);
***********************************