June 20th, 2013, 02:23 PM
Using shell_exec to create output file adds 2 questions marks to the end of filename
(PHP Version 5.3.3-7+squeeze15)
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...
...the filename is...
(emphasis on the trailing questions marks)
Thank you for your help!
$arg1_TEST1 = $_REQUEST['arg1'];
$arg2_TEST2 = $_REQUEST['arg2'];
$arg3_TEST3 = $_REQUEST['arg3'];
date > ./$FILENAME
echo '.$arg1_TEST1.':'.$arg2_TEST2.':'.$arg3_TEST3.' >> ./$FILENAME
date >> ./$FILENAME
June 20th, 2013, 02:56 PM
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.
June 20th, 2013, 09:55 PM
$arg3_TEST3 almost certainly has some non-printable characters at the end of it.