I can't understand how to save directory location.
The script is located in some subfolder of root one. Here is the example tree:
|-index.php
|-another.php
|+empty_folder
|+subfolder
|---script.php
I'm running from script.php. I have to save in database path for the empty_folder. In script I use the code:
if (is_writable($PATH)) ...
And it returns error every time (can't open the folder). Now $PATH looks like ../empty_folder and this doesn't work.
Any ways?
echo getcwd();/srv/http/wordpress/wp-adminand I need thewordpressfolder access.empty_folderis there.