Search
 
SCRIPT & CODE EXAMPLE
 

PHP

absolute path php

// File in htdocs MAMP
echo getcwd(); //Users/Example/Applications/MAMP/htdocs
Comment

get absolute path php file

SplFileInfo.

$path = new SplFileInfo(__FILE__);
echo 'The real path is '.$path->getRealPath();
Comment

PREVIOUS NEXT
Code Example
Php :: migrate particular file laravel 
Php :: brew php version 
Php :: laravel 8: bootstrap 
Php :: take and skip in laravel 
Php :: laravel csrf token off 
Php :: pluck array in laravel 
Php :: how to set cookie expire time in php 
Php :: php button to another page 
Php :: get all laravel validation failed messages 
Php :: implode and explode in php 
Php :: catch any exception php 
Php :: php regular expressions 
Php :: unlink is a directory laravel 
Php :: factorial function php 
Php :: laravel online hash password generator 
Php :: define in php 
Php :: Associative array in php 
Php :: php not recognized internal external command 
Php :: php find first occurrence in string 
Php :: php binary to base64 
Php :: sha256 encryption in php 
Php :: php now 
Php :: php print_r 
Php :: textarea laravel migration 
Php :: how to assign value of a js variable to a php variable 
Php :: wp get post id by slug 
Php :: install tymon jwt laravel 
Php :: php server function 
Php :: mcrypt php extension required 
Php :: get_previous_posts_link add class wordpress 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =