carbon.wpa
New member
- Joined
- Jun 12, 2012
- Messages
- 3
Hello Guys,
I have following problem: I would like to configure my server that one of account would be "global server account" I mean that it will be avaliable to copy/include files from another account of my server.
Let's say that I have following path:
/home/globalaccount/domains/example.com/public_html/
And following files:
- template.php
- image.jpg
1. And I would like to include above file on another account
<?
include('/home/globalaccount/domains/example.com/public_html/template.php');
?>
2. I aslo would like to copy files form above account
<?
$file = '/home/globalaccount/domains/example.com/public_html/image.jpg';
$newfile = 'example.jpg';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
Of course those two example doesn't work at all at this time. How to reconfigure server to have easy access to "globalaccount" user files????
Thank you!
I have following problem: I would like to configure my server that one of account would be "global server account" I mean that it will be avaliable to copy/include files from another account of my server.
Let's say that I have following path:
/home/globalaccount/domains/example.com/public_html/
And following files:
- template.php
- image.jpg
1. And I would like to include above file on another account
<?
include('/home/globalaccount/domains/example.com/public_html/template.php');
?>
2. I aslo would like to copy files form above account
<?
$file = '/home/globalaccount/domains/example.com/public_html/image.jpg';
$newfile = 'example.jpg';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
Of course those two example doesn't work at all at this time. How to reconfigure server to have easy access to "globalaccount" user files????
Thank you!