When I run this code it creates the file dataphp instead of data.php like it should. I am running it on a windows test system (if that makes a difference).
Here is a code snipet:
$filename = "data.php"; @touch($filename);
TIA, Bryce
try $filename = "data.php";
Originally posted by matt_4013 try $filename = "data.php";
I tried that as well, and it doesn't work.
EDIT: Yea, with that slash it just interprets it as a directory switch.
Tried single quotes to make it a literal string?
$filename = 'data.php';
?
Yep, thanks matt that worked.