Quote:
|
Originally Posted by omegatron $filein is a file not a directory.
[/code] |
If you grep like I did filein-variable is not defined anywhere so it has to be empty. It can't be a file nor directory. It's nothing in your code (it should be a file of course).
If you use original 2.41 image-inc.php what do you get if you try this
if ( !file_exists($newfilepath) ) {
echo $filein; exit;
@rename($filein, $newfilepath);
$realname = $newfile;
I would say that probably nothing so unless you change you code again so that filein has a value you still have a bug (or change that to $newfile like I did).
Or how is it possible that rename works if source filename doesn't exist - since renaming usually requires a source (and a destination)?