> $uploaddir = 'C:\Inetpub\wwwroot\pix'; > $filnamn=$_FILES['userfile']['name'];
> I thought of just adding a backslash at the very end of the $uploaddir > variable but that just leaves me with this error-message instead: > > Parse error: parse error, unexpected T_STRING in > c:\inetpub\wwwroot\alterdb\upload2.php on line 25 > > Line 25 happens to be that $filnamn line you can see above. > > I'm at a loss as to what could be the problem so any suggestions > to where to > look? > Since a ' comes right after the \ it is escaping it. Instead escape the \ so it is interpreted as \ and not the escape character. $uploaddir = 'C:\Inetpub\wwwroot\pix\\'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php