PDA

View Full Version : Need help with PHP


View Full Version : Need help with PHP


Skeptikal
April 21st, 2004, 03:00 PM
Hey ever1...
I know it is not the best forum to ask for PHP help... But here is the prob...

I'm making an UPLOAD script in order to upload pictures to a web site...

part of the script is:

$Fichier = stripslashes($file_name);

if ($Fichier != "none" && !stristr($Fichier_type, "plain"))
$tab = getimagesize($Fichier);

[......]

copy($Fichier, $dirname."/".$pic_name);


well there is no way I can get the file to be uploaded...
II keep having a PHP warning :


Warning: getimagesize() [function.getimagesize]: Unable to access C:\Documents and Settings\Milo\My Documents\picture.jpg in up.inc.php on line 44

Warning: getimagesize(C:\Documents and Settings\Milo\My Documents\picture.jpg) [function.getimagesize]: failed to create stream: No such file or directory in up.inc.php on line 44


Note: the line 44 is the line I just quoted up there... If I delete the 44th line, it will be the next fuction, but the same warning ("Unable to access"...)... The file DOES exists...

Any one... any idea ????
thanks,.

-Skept