I have studied the AGI documentation and have looked through the forums but have been able to solve this problem.
I am trying to set a channel variable from a php agi script like this:
$r is from a table row. The literal value is: t
When the syntax looks correct from the php cli. From the asterisk cli in agi debug mode there is no indication that the variable is set.