PLEASE HELP PHP

I use JavelinNews LINK:http://protoplex.ru/_scripts/677.zip -32kb
good script, but i have problem and cant find problem,
when i attach file it not save file in attachments folder.
I look server error log there is write:
PHP Warning: copy(/past/en/attachment/\lic.jpg) [function.copy]: failed to open stream: No such
file or directory in /home/haso/public_html/past/en/postcp.php on line
68

if (empty($_POST[“attachment”])) {$fname = “”;}

if (isset($_FILES[“attachment”])) {
if (is_uploaded_file($_FILES[‘attachment’][‘tmp_name’])) {
if ($_FILES[‘attachment’][‘size’]<$attachmentMax) {}
$fname = $_FILES[‘attachment’][‘name’];
list ($name,$ext)= explode(".", $fname);
if (array_search($ext,$fileTypes) !== false) {
$uploadToPath = “$attachmentPath\”; -------------------THIS IS LINE 68
$res = copy($_FILES[‘attachment’][‘tmp_name’], $uploadToPath . $fname);
}
else {echo “Wrong file type”;}
}
}

please help me or send me working version.
LOT OF THANKS ;))

Sponsor our Newsletter | Privacy Policy | Terms of Service