A
Anonymous
Guest
hi, i have this script, its not finished yet, but even this small piece doesnt work:
if for example the file was "test.jpg" the output should have been "C:\Program Files\Apache Group\Apache\htdocs\naquiken website\test.jpg" right? but the output is allways "C:\Program Files\Apache Group\Apache\htdocs aquiken website" any ideas?
Code:
<?php
session_start();
?>
<html>
<head>
<title>File upload</title>
</head>
<body>
<?php
if($_SESSION['passwd'] != $_SESSION['r_pass']) {
print("<b>Incorrect password</b>");
} //end if
else {
$userfile = $_POST['file'];
$dir1 = "C:\Program Files\Apache Group\Apache\htdocs\naquiken website"; //change $dir1 to the directory that this script is in
$dir2 = $dir1 . $userfile;
}
?>
</body>
</html>
if for example the file was "test.jpg" the output should have been "C:\Program Files\Apache Group\Apache\htdocs\naquiken website\test.jpg" right? but the output is allways "C:\Program Files\Apache Group\Apache\htdocs aquiken website" any ideas?