OK - I have been helping j.venning with his Upload Script, and have come into a problem. This code:
Gives us this:
Error. As the title says, REP TO THOSE THAT HELP
PHP:
<?php
session_start();
$target = "upload/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
$ok=100;
$target = str_replace(php,phps,$target);
$target = $target . basename( $_FILES['uploaded']['name']) ;
$random_digit=rand(0000,9999);
$target = $random_digit.$target;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
if ($uploaded_size > 3500000)
{
echo "Your file is too large.<br>";
$ok=0;
}
$_SESSION['filename'] = "http://vee-media.com/$target";
$URL="http://www.vee-media.com/uploaded.php";
header ("Location: $URL");
}
else
{
$URL="http://www.vee-media.com/not_uploaded.html";
header ("Location: $URL");
}
?>
Code:
[b]Warning[/b]: move_uploaded_file(4969upload/IMG11.jpgIMG11.jpg): failed to open stream: No such file or directory in [b]/hsphere/local/home/cvenning/vee-media.com/php.php[/b] on line [b]11[/b]
[b]Warning[/b]: move_uploaded_file(): Unable to move '/tmp/phpABi6hx' to '4969upload/IMG11.jpgIMG11.jpg' in [b]/hsphere/local/home/cvenning/vee-media.com/php.php[/b] on line [b]11[/b]
[b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/cvenning/vee-media.com/php.php:11) in [b]/hsphere/local/home/cvenning/vee-media.com/php.php[/b] on line [b]25[/b]
Error. As the title says, REP TO THOSE THAT HELP