hi everyone could some one help me with my php script on my auction site when a customer goes to upload a pic for sale perposes they are getting this error Image directory could not be opened Please hit the back browser on your browser to try again or contact the auction administrator if you believe this to be a server problem. if any one could tell what files they need to look at so then i can attach to here thanks loads
I think its not a problem with the code but a chmod issue... If you installed it yourself Read the readme for the program and double check the directory permissions. If it was installed by your admin tell him to check them
Well all what you have to do is add a file called auction-images in the root folder of your website if its already created just chmod the folder to 777 Hope this may help you .
this is the message i get in my hosting at the bottom of the ftp It is not possible to assign access rights with this application. Therefore, the uploading mode is not pre selected. Kindly select "ASCII" for text files (TXT, HTML, PHP etc.) and "Binary" for other files (JPG, GIF, DOC, PDF, etc.).
o none of my pics that have been uploaded by customers are not showing up on the wbsite heres the url to the site have a nosy and see ibidnation.co.uk
here is were the problem is i think config.pl #-##################################### # Photo Uploader configuration section #-##################################### ## This should point to the upload image directory in your ## html document root dir no trailing slash. ## on Windows NT/2000 servers only you need to specify ## the drive letter (c:,d:,e with the server path example: ## $config{'imagebase'} = 'c:/your/server/path/auct-photos'; $config{'imagebase'} = '/home/strato/www/ib/www.ibidnation.co.uk/htdocs/html/auct-photos'; ## URL of Image Directory $config{'imageurl'} = 'http://www.ibidnation.co.uk/auct-photos/'; ## URL of Temp Image Directory $config{'imagetempurl'} = 'http://www.ibidnation.co.uk/auct-photos/temp/'; ## URL Path to the yourphoto image uploader $config{'yourphotourl'} = 'http://www.ibidnation.co.uk/cgi-bin/auction/yourphoto.pl';
and this one yourphoto.pl ################################## # CHANGE THE TITLE IF REQUIRED. $title = 'Image Uploader!'; ################################################## # This is the relative/absolute path to the directory you wish to upload to. # $config{'dir'} = '/your/server.path/auct-photos/'; $config{'dir'} = '/home/strato/www/ib/www.ibidnation.co.uk/htdocs/auct-photos/'; ############################################ # URL to the upload directory $config{'http'} = 'http://www.ibidnation.co.uk/auct-photos/'; ############################### # Return url to the auction.pl file $config{'scripturl'} = '/home/strato/www/ib/www.ibidnation.co.uk/htdocs/cgi-bin/auction/auction.pl';
The .pl extension means it is a perl script and not a php script. I would advise you ask the author for more detailed instructions on how to install the script properly. As it sounds you still need to chmod a few directory's still.
Hi is there anyone out there that could look over my hole script and piont out any probz as i have a few thanks loads for all the help
problem is chmod of your folder where you are uploading the images change that to 777 or add a code to your script which do this.