Problem with viewing images
Brought to you by:
lee_herron
Hello!
You script is exactly what i was after - uploading,
text editing, and file deleting etc.
However, there is a slight problem with viewing images.
If i click on an image, your pgp frame loads, but i get
an error Warning: getimagesize(): Read error! in
/www/GetPetey/fm.php on line 1360 which equates to
$image_info = getimagesize($path.$pathext.$filename);
the title also says: Viewing "" at 25%
so i guess that the filename isn't getting passed to
function. unfortunately i don't know enough PHP to fix it!
Also, the back button doesn't seem to go up a
directory, it just seems to reload the current directory.
I am running it on SuSE 9, Apache 2.0.46 and PHP 4.3.3
thanks!
Logged In: YES
user_id=901098
i dont have that probelm using it??
i do have a probelm setting the dir path out side the folder
where the fm is hosted. what is the correct path to use if
running apache and php??
Logged In: NO
I believe that this is a problem with register_globals being off,
will look into this.
lh
Logged In: YES
user_id=169351
ah, that would explain it. i tried printing those variables,
and nothing happened.
according to http://uk2.php.net/register_globals, it changed
from the default of being on to off in v 4.2.0.
A note on that page says to use .htaccess files to control
the setting rather than changing the php.ini file.
Logged In: NO
hi,
if you set the defineroot = 0 there are some coding that have
left out.
you have to add all this
if (isset($_REQUEST['filename'] )) { $filename = $_REQUEST
['filename']; }
else { $filename = ""; }
if (isset($_REQUEST['cz'] )) { $cz = $_REQUEST
['cz']; }
else { $cz = ""; }
if (isset($_REQUEST['za'] )) { $za = $_REQUEST
['za']; }
else { $za = ""; }
if (isset($_REQUEST['mkdir'] )) { $mkdir =
$_REQUEST['mkdir']; }
else { $mkdir = ""; }
if (isset($_REQUEST['dirname'] )) { $dirname =
$_REQUEST['dirname']; }
else { $dirname = ""; }
if (isset($_REQUEST['edit'] )) { $edit = $_REQUEST
['edit']; }
else { $edit = ""; }
if (isset($_REQUEST['cpmv'] )) { $cpmv =
$_REQUEST['cpmv']; }
else { $cpmv = ""; }
if (isset($_REQUEST['save'] )) { $save = $_REQUEST
['save']; }
else { $save = ""; }
if (isset($_REQUEST['newcontent'] )) {
$newcontent = $_REQUEST['newcontent']; }
else { $newcontent = ""; }
if (isset($_REQUEST['savefile'] )) { $savefile =
$_REQUEST['savefile']; }
else { $savefile = ""; }
if (isset($_REQUEST['back'])) {$back = $_REQUEST
['back'];}
else{$back = "";}
Hope it helps.
Logged In: NO
You little beauty - thanks for the patch it worked a treat for me.
Cheers, Y
Logged In: YES
user_id=392382
This should be fixed in the next version.
Logged In: NO
I also have this error!
mine says:
Warning: getimagesize() [function.getimagesize]: Read error! in /xxxx/xxxx/slideshow/gallery/fm.php on line 1334
PLEASE HELP
Logged In: NO
i downloaded this today and it has the patch in already but still has an error in viewing the images...
any ideas?
chris