 | MEMBER LOGIN |
|
|
 |
|
 | SERVICES & FEATURES |
|
|
 |
|
 | THE 20 LATEST PROJECTS |
|
|
Project: System Configuration ID: 1217054750 |  |  |
| |
|
Status: |
Closed (Chosen Programmer: adev)
|
|
Budget: |
N/A
|
|
Created: |
7/26/2008 at 2:45 EST
|
|
Closed: |
8/15/2008 at 3:48 EST
|
|
Project Creator: |
logic5050
Rating:
(43 reviews)
|
|
Description: |
I have my own dedicated server with full root access. I host two very similar but separate domains on the server. I would like to be able to store files in one shared directory that can be accessed by both domains.
Both web sites are social communities where members can upload photos and documents. I would like members to be able to upload their photos and documents from either of the two domains and have all of the files available in both web sites.
I spoke to one system admin a long time ago (unfortunately I've lost touch with him) and he said this:
>>> "It is possible to store files in one shared folder, which will be accessible from all domains. You can simply create a folder on server (for example: /var/www/files or /var/www/data or something else), add it to php "trusted" paths and use it physical path in all domains."
Both web sites have a general.php file that has all of the web site settings and parameters. You can set the paths to the upload directory using these general.php pages.
For example:
function get_upload_dir_pics()
{
return get_web_root_dir() . "/members/pics";
}
I want to know if you can set the path on one general.php page to essentially point to the real directory on the other domain so files can be accessed and saved from both domains.
Let me know if this is possible of you have other ideas to solve this problem.
Thanks.
|
|
Job Type: |
|
| |
 |
|
Messages Posted: 7 |
|
Programmers |
Bid  |
Delivery Within |
Time of Bid |
Rating |
|
adev |
$13 |
1 day |
7/31/2008 at 17:09 EST |  (1 review) |
| Please check the Private Message Board.
Thank you.
| | |
|
xous |
$15 |
0 days |
7/30/2008 at 17:04 EST | (No Feedback Yet) |
| Hi,
You can use a shared physical path as you mentioned or you could cheat and just symlink one directory to the other.
I can either provide instructions on how to do either method or do it for you.
| | |
|
em1ncan |
$30 |
1 day |
7/29/2008 at 21:02 EST | (No Feedback Yet) |
| easy..
| | |
|
envio |
$35 |
1 day |
7/26/2008 at 6:20 EST |  (4 reviews) |
| Detail in my pmb
| | |
|
nidhi |
$80 |
2 days |
7/26/2008 at 13:59 EST |  (47 reviews) |
| quality work
| | |
|
fandar2 |
$90 |
1 day |
7/26/2008 at 5:42 EST |  (103 reviews) |
| Hi, i have over 8 years experience as Linux admin. I can do it for you. Thank You
| | |
|
unknownsoftware |
$100 |
1 day |
7/26/2008 at 5:29 EST |  (159 reviews) |
| Escrow payment required... http://www.unknownsoftware.ro
| | |
|
goblet |
$100 |
2 days |
8/5/2008 at 16:34 EST |  (1 review) |
| symbolic link in linux will be used to point to the directory.
Although will need to see your php files, to check how you websites handles the files. is it via db or via direct path.
| | |
|
mysticserver |
$125 |
1 day |
7/26/2008 at 7:10 EST |  (3 reviews) |
| US Based, 10 years php experience, 25 years programming experience.
| | | | |