Quote:
Originally Posted by till
There are sevarl options to get that path, e.g. in php:
realpath('../provate');
or
realpath('/var/www/domain.tld/private');
|
Thanks Till, but I am using Perl not PHP. Using the equivalent realpath command in Perl...
Code:
use Cwd 'realpath';
my $dir = realpath("../private");
print $dir;
... returns "/private", which is not correct or usable, as it would require private to be a subdir off the web root. Whether this is a Perl issue, or something peculiar to ISPConfig, I have no idea.
Quote:
Originally Posted by till
Or if your scripts are working correctly with symlinks (which should be ok in most cases), then use:
/var/www/domain.tld/private/
|
Which works, but would need hardcoding into every script on every site. I need a way of programmatically calculating the path to the private directory.
Recent comments
16 hours 17 min ago
21 hours 22 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 7 hours ago