|
-
Nov 24th, 2002, 10:52 PM
#1
Thread Starter
Registered User
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!
-
Nov 24th, 2002, 11:37 PM
#2
Stuck in the 80s
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.
-
Nov 27th, 2002, 12:25 AM
#3
Thread Starter
Registered User
Hey thanks for the reply! I think your getting me into the right
direction but i'm still having problems...
in my php file i changed it to...
$config['fullpath'] = "/data/members/free/tripod/uk/w/i/n/winkler/
$config[albumdir]";
and i get the error:
Inserting picture into album 1 >>
The picture was not uploaded..
Make sure the
directory /data/members/free/tripod/uk/w/i/n/winkler/PHPhotoalbum/albu
ms/ and it's subdirectories have CHMOD 777!
In my FTP, the File is set up like this on the lycos server...
I have a Folder Called, PHPhotoalbum this is in the main directory
which it just lists as, /
then inside the PHPhotoalbum is a file called albums, this is where
you store your images I do believe...
and the website where i downloaded this file is the following:
http://www.stoverud.com/PHPhotoalbum/
Thanks for the help!
Some guy posted the following so I thought it would work for my problem:
ok got it worked out for lycos
ok look at this:
/data/members/free/tripod/uk/k/u/r/kurayami/htdocs/
that is point to --> http://members.lycos.co.uk/kurayami
this is what you have to change to your path /k/u/r/kurayami/
see how /k/u/r are all the first letter of my username? thats what
you have to change, so say your username is freak itd become:
/data/members/free/tripod/uk/f/r/e/freak/htdocs/
get it?
-
Nov 27th, 2002, 10:08 AM
#4
Stuck in the 80s
Shouldn't "$config[albumdir]";" be:
$config[albumdir] = "PHPhotoalbum/albums/";
And you have CHMODed albums to 777?
Last edited by The Hobo; Nov 27th, 2002 at 10:13 AM.
-
Nov 27th, 2002, 04:38 PM
#5
Thread Starter
Registered User
Hey! I finally found the right path! Thanks to this Peter guy, I had to echo this statement, document-root = $DOCUMENT_ROOT //Is this the path you need
and it listed the path of the server! so it was:
PHP Code:
$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'] = "/data/members/free/tripod/uk/w/i/n/winkler/htdocs/$config[albumdir]"; // Full Unix (windows?) path to albumdir
But now my pictures have X's on them! They upload successfully though, the file says it uses ImageMagic or GD, which is suppose to be a built in PHP function i thought? BUt it still doesn't work when i enable it in the config.ini
on this line:
PHP Code:
/$config['thumb_method'] = "im"; // Use ImageMagick for thumbnail creation (Best quality)
$config['thumb_method'] = "php"; // Uncomment this if you want to use the built-in functions
// for thumbnail creation. Required GD
Have any idea's?
THanks!
by the way my site is postedhere
Thanks for the responces!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|