(PHP Version 5.3.3-7+squeeze15)
Hello,
I am very very new to PHP, so I appreciate the patience and assistance.
For the following block of code, for some reason two question marks ("??") are being appended to the end of the filename of the output file when it is created on disk.
So instead of the filename being something like...
valueOFarg1_valueOFarg2_valueOFarg3
...the filename is...
valueOFarg1_valueOFarg2_valueOFarg3??
(emphasis on the trailing questions marks)
Thank you for your help!
CODE BLOCK:
<?php
$arg1_TEST1 = $_REQUEST['arg1'];
$arg2_TEST2 = $_REQUEST['arg2'];
$arg3_TEST3 = $_REQUEST['arg3'];
shell_exec('#!/bin/bash
FILENAME='.$arg1_TEST1.'_'.$arg2_TEST2.'_'.$arg3_TEST3.'
date > ./$FILENAME
echo '.$arg1_TEST1.':'.$arg2_TEST2.':'.$arg3_TEST3.' >> ./$FILENAME
date >> ./$FILENAME
exit');
?>