Problem directing PHP to point to the right folder for images!
Hello everyone! I just downloaded, PHPhotoalbum, and I'm having troubles inserting pictures! THe error i'm getting when i'm trying to insert the picture is:
Inserting picture into album 1 >>
Code:
The picture was not uploaded..
Make sure the directory /home/username/www/albums//PHPhotoalbum/albums/ and it's subdirectories have CHMOD 777!
I already CHMOD the directory to 777,
In the config.ini File the code is:
Code:
// PICTURE AND THUMBNAIL SETTINGS
$config['webdir'] = "/PHPhotoalbum/"; // Full web path to dir with the php files
$config['albumdir'] = "/PHPhotoalbum/albums/"; // Full web path to album dir on webserver
$config['fullpath'] = "/home/username/www/albums/$config[albumdir]"; // Full Unix (windows?) path to albumdir
I'm running windows, and i'm also using Lycos as the PHP host, the FTP is, ftp.members.lycos.co.uk, I also have a password and username.
So With that information do you know the order in which I enter it in the above code? Some person had the same trouble as Me but he was running linux and his solution was:
Code:
$config['fullpath'] = "/home/virtual/YOURSITE/fst/var/www/html/PHPhotoalbum/albums/"; // Full Unix (windows?) path to albumdir
In the fullpath I had to put the full path, which i had forgot to do.
Thanks for listening, sorry about the big message!
:D
Re: Problem directing PHP to point to the right folder for images!
Is the server on Windows or Linux? You need to contact the Help department of whoever hosts your site and find out what the path is.
Code:
$config['fullpath'] = "/home/virtual/YOURSITE/fst/var/www/html/PHPhotoalbum/albums/";
If that's what you're using, then the problem is right there. You need to find out what the path is from your administrator. Your problem is in the line above.