Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    basic question: $config_basedir

    So this is my basedir:
    $config_basedir = "http://localhost/sites/auction/";

    Now if I want to put some something here what exactly would I save the php file as?

    my config.php file is :

    <?php

    $dbhost = "localhost";
    $dbuser = "";
    $dbpassword = "";
    $dbdatabase = "auction";

    $config_basedir = "http://localhost/sites/auction/";

    $config_currency = "$";
    ?>

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    Quote Originally Posted by goldenbough View Post
    So this is my basedir:
    $config_basedir = "http://localhost/sites/auction/";

    Now if I want to put some something here[huh?] what exactly would I save the php file as?

    my config.php file is :

    <?php

    $dbhost = "localhost";
    $dbuser = "";
    $dbpassword = "";
    $dbdatabase = "auction";

    $config_basedir = "http://localhost/sites/auction/";

    $config_currency = "$";
    ?>
    Don't understand the question
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I guess I don't really understand the purpose of the $config_basedir. I am trying to run a "recipe" from a tutorial. Should I be able to put http://localhost/sites/auction/ in the url bar and then open as page? Or maybe another way of putting is, how do I save a file as index.php and open it through
    http://localhost/sites/auction/ ? I normally would open index.php through localhost/index.php, but in the example it appears that it is has it opened through http://localhost/sites/auction/

  • #4
    New to the CF scene
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello.
    Do you still have the Jono Bacon auction website code fully working?
    If so, could you post it?

    Thank you very much.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •