Php Fast AGI - agi variables not gettting

I have called a fast agi from a AMI file, But the php-fastagi.php, the main file is working, but the included file is not getting detected as well as the agi-variables, Following are my code and reseponse. A quick response is very much appreciated as I have been working this project around 6 months, still the I am in the basics of asterisk.

The following code is calling the fast agi

array(
‘Channel’=>$number,

            'Callerid'=>$callerid,
           
               'Async'=>'no',
              'Timeout'=>30000,
               'Application'=>'agi',
            
             //  'Data' =>"phpagi/firstauth.php,{$memberid},{$auth2},{$callerid},{$blast_file_id}",
              'Data' =>"agi://localhost/fastagi.php",

//‘Data’ =>“agi://127.0.0.1/fastagi.php”,
//‘Variable’=>“CDR(userfield)={$blast_file_id}~{$number}”
//‘Variable’=>“set(AGISIGHUP=no)”

               )

        );

The response I am getting as follows :

Channel SIP/sip.linphone.org-00000002 was answered.
Launching agi(agi://localhost/fastagi.php) on SIP/sip.linphone.org-00000002
agi://localhost/fastagi.php: AGI Request:
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: PHPAGI internal configuration:
agi://localhost/fastagi.php: Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [phpagi] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [debug] => 1
agi://localhost/fastagi.php: [error_handler] => 1
whatsup@media.mit.edu
agi://localhost/fastagi.php: [hostname] => 127.0.0.1
agi://localhost/fastagi.php: [tempdir] => /var/spool/asterisk/tmp/
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [asmanager] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [server] => 127.0.0.1
agi://localhost/fastagi.php: [port] => 5038
agi://localhost/fastagi.php: [username] => mark
agi://localhost/fastagi.php: [secret] => webadmin123
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [fastagi] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [basedir] => /usr/share/asterisk/agi-bin/phpagi
agi://localhost/fastagi.php: [AGISIGHUP] =>
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [festival] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [text2wave] => /usr/bin/text2wave
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [cepstral] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [swift] => /opt/swift/bin/swift
agi://localhost/fastagi.php: [voice] => David
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: AGI Object
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [request] =>
agi://localhost/fastagi.php: [config] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [phpagi] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [debug] => 1
agi://localhost/fastagi.php: [error_handler] => 1
whatsup@media.mit.edu
agi://localhost/fastagi.php: [hostname] => 127.0.0.1
agi://localhost/fastagi.php: [tempdir] => /var/spool/asterisk/tmp/
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [asmanager] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [server] => 127.0.0.1
agi://localhost/fastagi.php: [port] => 5038
agi://localhost/fastagi.php: [username] => mark
agi://localhost/fastagi.php: [secret] => webadmin123
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [fastagi] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [basedir] => /usr/share/asterisk/agi-bin/phpagi
agi://localhost/fastagi.php: [AGISIGHUP] =>
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [festival] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [text2wave] => /usr/bin/text2wave
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [cepstral] => Array
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [swift] => /opt/swift/bin/swift
agi://localhost/fastagi.php: [voice] => David
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: [asmanager] =>
agi://localhost/fastagi.php: [in] => Resource id #1
agi://localhost/fastagi.php: [out] => Resource id #2
agi://localhost/fastagi.php: [audio] =>
agi://localhost/fastagi.php: [option_delim] => ,
agi://localhost/fastagi.php: )
agi://localhost/fastagi.php:
agi://localhost/fastagi.php: /usr/share/asterisk/agi-bin/phpagi/
[Mar 13 11:39:57] ERROR[7971]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
– <SIP/sip.linphone.org-00000002>AGI Script agi://localhost/fastagi.php completed, returning 0
[Mar 13 11:39:57] ERROR[7971]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe

you can see AGI Object
agi://localhost/fastagi.php: (
agi://localhost/fastagi.php: [request] => is null