calling perl from php
Posted: Thu Feb 18, 2010 8:40 am
hi,
i'm trying to call a perl script from my php code without success.
my php code :
however,when i enter the following command in the command prompt it works
can someone help me please !!
thank's in advance
i'm trying to call a perl script from my php code without success.
my php code :
Code: Select all
<?php
$tel = $_POST['Tel'] ;
$message = $_POST['message'] ;
//$tel = 'xxxxxxx';
//$message = 'viwwwww';
print $tel;
print $message;
$outpout = exec("perl /var/www/htdocs/msg.pl $tel $message");
print ($outpout);
?>Code: Select all
php /var/www/htdocs/sendsms.phpthank's in advance