Login   Register  
PHP Classes
elePHPant
Icontem

PathParser: Parse URL or file paths and compute relative paths

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Carlos Reche
Name: Carlos Reche <contact>
Classes: 10 packages by
Country: Brazil Brazil
Age: 30
All time rank: 543 in Brazil Brazil
Week rank: 325 Down23 in Brazil Brazil Down
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz  
This class is capable of parsing absolute or relative URLs or file paths and can compute the relative path to go from a given path to another.

It resolves relative references as /./ or /../, and eliminates consecutive / characters in the input path.

It is an alternative to PHP realpath() function, with two basic differences: it works with real and virtual files, and it returns the path resolved in the same style of the input path. So, if you are parsing a relative path, it will return a resolved relative path, not the absolute path like realpath() function does.

This class can determine the relative path between two files and parse query string to extract the parameter names and values into an array.

  Classes of Carlos Reche  >  PathParser  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PathParser
Base name: pathparser
Description: Parse URL or file paths and compute relative paths
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 4009 users
All time rank: 707
Week users: 3 users
Week rank: 649 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (96%) Good (93%) Good (93%) Good (96%) - - Sufficient (76%) 34
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file class.pathparser.php Class PathParser class file.
Accessible without login HTML file documentation.htm Doc. Class documentation
Accessible without login Plain text file example.php Example File with examples of how to use PathParser class.

Download Download all files: pathparser.tar.gz pathparser.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.