Home ›
Get the directory name from a file path string in PHPGet the directory name from a file path string in PHP
Submitted by Benjamin Melançon on April 28, 2009 - 1:24pm
Searched words:
get file path from string php
folder exists extract dirname filename
There is a built-in PHP function to get the directory portion of a file path from a string (lopping off the filename itself).
Resolution
More like this
- Drupal function to give path to files directory
- Fixing file paths after a change in location of a site's files directory
- Locale subset module motivation: remove, hide, get rid of non-public UI strings
- Curses: array_merge_recursive doesn't behave as hoped, it creates arrays for matching strings
- Get the path to a Drupal module or theme


Comments
PHP Get file path
PHP Get file path
Post new comment