if im using this it dont work
<?
$filename = "test123.dat";
$dirOut = "/usr/local/www/outbox/";
$fileToTransfer = $dirOut.$filename;
$config = "/home/_data/login.cfg";
$dataDirOut = "/data/outbox";
system("/usr/local/bin/ncftpput -f $config -DD $dataDir $fileToTransfer");
?>
but if i use this it work
<?
system("/usr/local/bin/ncftpput -f /home/_data/login.cfg -DD /_data/outbox /usr/local/www/outbox/test123.dat");
?>
what do u think should be the problem with the first script and how can i make this work?
thank you in advance for those people willing to help.