could someone help me with my php script to my auction site

Discussion in 'PHP' started by ibidnation.co.uk, Nov 2, 2007.

  1. #1
    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
     
    ibidnation.co.uk, Nov 2, 2007 IP
  2. Oli3L

    Oli3L Active Member

    Messages:
    207
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Can you give us the code?
     
    Oli3L, Nov 2, 2007 IP
  3. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    any idear on which file you need
     
    ibidnation.co.uk, Nov 2, 2007 IP
  4. sin0cide

    sin0cide Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    sin0cide, Nov 2, 2007 IP
  5. deccanbazaar.biz

    deccanbazaar.biz Banned

    Messages:
    2,349
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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 .
     
    deccanbazaar.biz, Nov 2, 2007 IP
  6. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.).
     
    ibidnation.co.uk, Nov 2, 2007 IP
  7. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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
     
    ibidnation.co.uk, Nov 2, 2007 IP
  8. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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';
     
    ibidnation.co.uk, Nov 2, 2007 IP
  9. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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';
     
    ibidnation.co.uk, Nov 2, 2007 IP
  10. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hope they make sence to someone
     
    ibidnation.co.uk, Nov 2, 2007 IP
  11. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #11
    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.
     
    exodus, Nov 3, 2007 IP
  12. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    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
     
    ibidnation.co.uk, Nov 3, 2007 IP
  13. ibidnation.co.uk

    ibidnation.co.uk Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    please heeeeelllllppppp
     
    ibidnation.co.uk, Nov 3, 2007 IP
  14. freewebscriptz

    freewebscriptz Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    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.
     
    freewebscriptz, Feb 27, 2008 IP