Hi there, im trying to create an error report page on my site, and want users to be able to upload screenshots. Ive tired doing loads of stuff. Heres what im doing at the mo.
172) if (copy($Screenshot, "uploads/$Screenshot_name"
){
173) print("OK\n"
;
174) } else {
175) print("No\n"
;
176) }
177) unlink($Screenshot);
everytime i try to upload though i just get these errors.
Warning: copy(D:\\KitChecker.doc): failed to open stream: No such file or directory in /home/ebmis/public_html/ErrorReporter.php on line 174
Warning: unlink(D:\\KitChecker.doc): No such file or directory in /home/ebmis/public_html/ErrorReporter.php on line 179
Im really stuck ive tried all sorts and looked all over the net. Can anyone help me out. Thanks very much for anyone who does.
Regards
JP
172) if (copy($Screenshot, "uploads/$Screenshot_name"

173) print("OK\n"

174) } else {
175) print("No\n"

176) }
177) unlink($Screenshot);
everytime i try to upload though i just get these errors.
Warning: copy(D:\\KitChecker.doc): failed to open stream: No such file or directory in /home/ebmis/public_html/ErrorReporter.php on line 174
Warning: unlink(D:\\KitChecker.doc): No such file or directory in /home/ebmis/public_html/ErrorReporter.php on line 179
Im really stuck ive tried all sorts and looked all over the net. Can anyone help me out. Thanks very much for anyone who does.
Regards
JP