i have taken a small script verbatim from a tutorial i am reading and it keeps giving me this error:
Parse error: parse error, unexpected T_STRING
this script is supposed to allow me to upload a file to a temporary directory on the server.
6:<?php
8: $file_dir="\temp\";
9: $file_url="http://localhost/temp/";
the offending line is line 8, which gives me the parse error.
for $file_dir ive tried
".\temp"
"\temp"
"temp\"
but nothing seems to work. so does anybody have an idea what this could be. i have taken this example verbatim from a text so thats why i am stumped as to why it wont run.
thanks.