General Community > Scripting Help
Auto detect relative path
(1/1)
Acf:
Is there a way to auto detect a relative path of a file?
Because i would like to ch-mod a file that is in the same dir as the file shown below.
<?php
chmod ("/relative path/dbconfig.php", 777);
?>
*acf
Spaceman-Spiff:
if its in the same dir, you don't need to put the full path
but if you still want to, you can use $_ENV["DOCUMENT_ROOT"]
Acf:
thanx Spaceman-Spiff :)
Navigation
[0] Message Index
Go to full version