Results 1 to 5 of 5
  1. #1

    Default including files from a root dir in a sub dir

    Hi.

    I have a dir that contains 3 more dirs in it.In like the 2nd sub dir I want to include a bunch of files from the main dir.I tried http://www.mydomain.com/dir1/dir2/file.php but it didnt work. Any suggestions?

  2. #2
    Senior Member jalal's Avatar
    Join Date
    May 2003
    Location
    Germany
    Posts
    1,377

    Default

    You should probably be using server paths:
    /var/www/html/dir1/dir2/file.php


  3. #3

    Default

    simply /var/www/html would work or will I also need anything like the usr:/local:/,etc? It would be really helpful if you could give me the exact path to copy and paste

  4. #4
    Senior Member torrin's Avatar
    Join Date
    May 2003
    Location
    Vista, CA
    Posts
    534

    Default Re: including files from a root dir in a sub dir

    Quote Originally Posted by ali
    I have a dir that contains 3 more dirs in it.In like the 2nd sub dir I want to include a bunch of files from the main dir.I tried http://www.mydomain.com/dir1/dir2/file.php but it didnt work. Any suggestions?
    I'm a little confused as the what you are trying to do. Are you saying you want a copy of all the files in /var/www/html/dir1 in /var/www/html/dir1/dir2? If that's the case, you can just use cp. You shouldn't need to include any thing from usr, local or etc? I presume that anything in /var/www/html/dir1/dir2 would have access to that stuff. If this isn't what you're looking for, please reply.

  5. #5
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,720

    Default

    Jalal did give you the exact path based on what was in your first post. /var/www/html gets you to your main web directory and then you simply add the path to where the files are from there. Think of that as the same as http;//www.mydomain.com/ but it is the server path to the files.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

Similar Threads

  1. What is my ftp web root dir?
    By Capt. Mike in forum PHP / MySQL
    Replies: 5
    Last Post: 06-28-2007, 01:46 PM
  2. PHP outside Apache's doc root
    By art887 in forum PHP / MySQL
    Replies: 5
    Last Post: 08-22-2006, 01:03 PM
  3. Including PHP files problem
    By rogoff in forum PHP / MySQL
    Replies: 4
    Last Post: 06-14-2004, 12:21 PM
  4. Delete or disable domain@domain.com POP account?
    By maida in forum E-mail / FTP Management
    Replies: 24
    Last Post: 10-29-2003, 01:24 PM
  5. Lots of directories in /proc...?
    By humuhumu in forum General Discussion
    Replies: 7
    Last Post: 10-09-2003, 05:31 PM

Posting Permissions

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