I have what seems to me as a bit of an odd scenario, well maybe not so odd, but i've never had to do it before.
Anyway, i have a payment system that uses Moneybookers (or Skrill) to take a payment, this system sends database to a file on my server where i check the data, and then update records on my databases accordingly.
But recently i have integrated system called iDevAffiliate, this system tracks affiliate payments and in order to itegrate it full, when Moneybooker sends up data and our records are update we need to give a signal to the iDevAffiliate system to say that a payment has been made and is affiliated with an affiliate record.
Now to do this i thought it would be a simple:
header("location: http://www.mysite.com/affiliate/sale.php?profile=72198&idev_saleamt=2500&affiliate_id=$aff_id");
But i wasn't sure if i had to do it another way like this:
header("location: http://www.mysite.com/affiliate/sale.php?profile=72198&idev_saleamt=2500&affiliate_id=" . $aff_id);
But they both does seem to work. However, if i put that link into my browser replace the $aff_id with the actual affiliates id it sets everything properly, is the header mthod not the right thing to use? how else could i do this?
$x = 'a' . $band$x = "a$b". Both produce the same string in the end. the header() call doesn't see a string concatenation operation, nor will it see $aff_id. It just gets the string produced by both operations.