Php and Perl please help
Posted: Thu Oct 09, 2008 12:30 pm
I have a php script that has the session id number and i want to send this variable to perl. I am having trouble sending it.
Php script:
<?php
set_time_limit(0);
session_start();
$session = session_id(); #TRYING TO SEND "$session" to Perl Script
$session . ' ' . $fileLine2;
shell_exec("second_one.pl" . " -s " . $session);
?>
Perl Script:
use Getopt::Std;
getopts("s:", \%option);
$session_num = '';
if ($option{s}){
$session_num = $option{s};
}
I don't know where i'm goin wrong.
Help please.
Php script:
<?php
set_time_limit(0);
session_start();
$session = session_id(); #TRYING TO SEND "$session" to Perl Script
$session . ' ' . $fileLine2;
shell_exec("second_one.pl" . " -s " . $session);
?>
Perl Script:
use Getopt::Std;
getopts("s:", \%option);
$session_num = '';
if ($option{s}){
$session_num = $option{s};
}
I don't know where i'm goin wrong.
Help please.