Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get directory

$currentDirectoryName = basename(__DIR__);
echo 'Currently in the '.$currentDirectoryName .' directory <br><br>';

$fullPath = dir(getcwd());
echo 'The full path is: ' . $fullPath->path . '<br>';
Comment

PREVIOUS NEXT
Code Example
Php :: pdo last insert id 
Php :: use str laravel 
Php :: php turn off warnings and notices 
Php :: wp_debug log 
Php :: php wait 
Php :: redirect http to https htaccess laravel 8 
Php :: php remove file 
Php :: ReflectionException: Class MagentoFrameworkAppHttpInterceptor does not exist in 
Php :: bcmath php extension in ubuntu 
Php :: php reverse array 
Php :: get_template_directory_uri 
Php :: integer to string php 
Php :: uninstall php ubuntu 
Php :: php loop x times 
Php :: php check how much time each instruction takes to complete 
Php :: laravel migation error 
Php :: ubuntu install php mongodb extension 
Php :: image acf 
Php :: laravel run seed 
Php :: php referral 
Php :: laravel make directory if not exists 
Php :: laravel env pgsql 
Php :: php cut off first x characters 
Php :: this load session codeigniter 
Php :: file_get_contents timeout 
Php :: get key of last element php 
Php :: Class "BarryvdhLaravelIdeHelperIdeHelperServiceProvider" not found 
Php :: get year in laravel 8 
Php :: seconds to minutes php 
Php :: run php server 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =