SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: local path

  1. #1
    SitePoint Addict Ezo's Avatar
    Join Date
    Feb 2006
    Location
    Netherlands
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    local path

    Hello,

    I trie to install a script on my server but i can't get the local path...
    When i use FIlezilla, and search the map it's www/mysite/. But that isn't working if i fill it into the config file.
    PHP Code:
    // This should be something like /home/yourdir/public_html/ or C:/Domains/mysite/
    $cfg['instdir'] = '/home/www/mysite/'
    How do i find my local path?

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    put a script with this in your document root, or whatever directory you want to put that other script in.

    echo getcwd();

  3. #3
    SitePoint Addict Ezo's Avatar
    Join Date
    Feb 2006
    Location
    Netherlands
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I made a new file:

    <php?
    echo getcwd();
    ?>

    but that didn't work and useing this:
    $cfg['instdir'] = 'echo getcwd();';
    didn't work neither, so can you explain it a bit more please?

    Edit: I found the path.
    Last edited by Ezo; Aug 12, 2006 at 07:55.


Bookmarks

Posting Permissions

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