• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Relative paths question..

Believer

Aashora.net
Joined
Aug 26, 2010
Messages
423
Reaction score
7
Location
Far away from home.
PHP:
require('../../../config/config.php'); //change
require('../../../pot/OTS.php');//change
$config_ini = parse_ini_file('../../../config/config.ini');//change

Hello, i got these path in one script that im using..

And my question is how to change path?:/

What is "../../../" ?? Please explain!

I got my config.php in linux www2/config/config.php
Also i go another one in linux www/config/config.php

Thanks for all help!, rep++ for this help!
 
Last edited:
I don't remember much about Linux, but I think that '..' means "Go Back", lets say your script is in "(root)/folder1/folder2/folder3/folder4/script.php", using "../../.." means go back 3 folders, so the config.php should be in
"(root)/folder1/config/config.php"
 
@up so lets say config is located in "var/www/config/config.php" & this file im using is located in "var/www/etc/etc2/script.php" then it means the path in script.php should be "../../config/config.php" or "../../../config/config.php"?

Thanks scarlet for your support though, Would be glad if you could answer this also.
 
Back
Top