> 
> function saveRecord ($db,$POST) {
>    $bd = "/absolute_path_to_document_root";
>    $fp = "/path_to_files_from_document_root/";
>    $ud = $bd . $fp;

<snip>

>          $path = $ud.$file; // absolute path to newly named file
>          if ($fail || !$name || !$temp) continue;
> //         @unlink($ud.$file);
>          @move_uploaded_file($temp, $path);
>          @chmod($path, 0777);

Why not just unlink($path) ? It's the same thing but you take 2
variables out of the problem.

While you're trying to debug this remove the '@' signs. An error message
will be particularly useful.

Check your logs if you can, otherwise turn up error reporting and
display errors until you work out what's going on.

error_reporting(E_ALL);
ini_set('display_errors', true);



-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to