#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    8
    Rep Power
    0

    Php direcotry not found error


    i have a config.php for a script:

    PHP Code:
    <?php

    /* Database config */

    $db_host        '';
    $db_user        '';
    $db_pass        '';
    $db_database    ''

    /* End config */

    /* File directory: */

    $directory='';

    ?>
    what am i supposed to put in $directory line?

    anything i put it gives me this error when i want to use this script:
    "There is an error with your file directory!"

    the php file is placed in a folder named "cntr"

    so i put 'cntr/' in the directory line but it still says error

    whats wrong?
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7170
    You'll have to check with whoever wrote the script. Obviously a computer has a lot of directories on it, and we have no idea which one the script is looking for.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6352
    If I had to guess given the 2 clues you've given, I bet it's a directory for uploaded files, which should be something like 'images' and then there should be an 'images' folder inside the folder with that script, and that folder should be read/writable by PHP.

    Though the manual for this software would be more helpful than my random guess.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    8
    Rep Power
    0
    yup you r right! thanks alot

IMN logo majestic logo threadwatch logo seochat tools logo