PDA

View Full Version : including files from a root dir in a sub dir



ali
10-25-2004, 11:35 PM
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?

jalal
10-26-2004, 01:51 AM
You should probably be using server paths:
/var/www/html/dir1/dir2/file.php

:)

ali
10-26-2004, 02:28 AM
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

torrin
10-26-2004, 08:12 AM
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.

wildjokerdesign
10-26-2004, 08:18 AM
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.