instead of this
[PHP]
$photo_dir = '/./gallery/image_uploads/';
$thumb_dir = '/./gallery/thumb_uploads/';[/PHP]
change to this..
[PHP]$photo_dir = '../../gallery/image_uploads/';
$thumb_dir = '../../gallery/thumb_uploads/';[/PHP]
where exactly is your script? and wheres the root path of you image files?
example:
directory structure...
if you script is the same folder with the directory 'gallery'
then you should set the dir path like this
[PHP]
$photo_dir = 'gallery/image_uploads/';
$thumb_dir = 'gallery/thumb_uploads/';
[/PHP]
but if outside or another folder like this
then set it up like this
[PHP]
$photo_dir = '../images/gallery/image_uploads/';
$thumb_dir = '../images/gallery/thumb_uploads/';
[/PHP]
'..' means go up one level
^___^
[PHP]
$photo_dir = '/./gallery/image_uploads/';
$thumb_dir = '/./gallery/thumb_uploads/';[/PHP]
change to this..
[PHP]$photo_dir = '../../gallery/image_uploads/';
$thumb_dir = '../../gallery/thumb_uploads/';[/PHP]
where exactly is your script? and wheres the root path of you image files?
example:
directory structure...
if you script is the same folder with the directory 'gallery'
Code:
php_scripts/ gallery/ image_uploads/ img.jpeg thumb_uploads/ thmb.jpeg edit_picture.php
[PHP]
$photo_dir = 'gallery/image_uploads/';
$thumb_dir = 'gallery/thumb_uploads/';
[/PHP]
but if outside or another folder like this
Code:
images/ gallery/ image_uploads/ img.jpeg thumb_uploads/ thmb.jpeg php_scripts/ edit_picture.php
[PHP]
$photo_dir = '../images/gallery/image_uploads/';
$thumb_dir = '../images/gallery/thumb_uploads/';
[/PHP]
'..' means go up one level
^___^
Comment