Quick Search:
 
 PHP Code: Get Path Info Jump to:  
Category: >> PHP Code >> Get Path Info  

<< lastnext >>

Snippet Name: Get Path Info

Description: The example given (/www/psoug/index.html)
would produce:

/www/psoug
index.html
html

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<?PHP 
 
$path_parts = PATHINFO("/www/psoug/index.html"); 
 
ECHO $path_parts["dirname"] . "\n"; 
ECHO $path_parts["basename"] . "\n"; 
ECHO $path_parts["extension"] . "\n"; 
 
?> 
 


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org