Login   Register  
PHP Classes
elePHPant
Icontem

PathParser

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Carlos Reche  >  PathParser  >  Download .tar.gz .zip  >  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
Related classes: ,
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 3744 users
All time rank: 693
Week users: 4 users
Week rank: 922
 

  Author  
Picture of Carlos Reche
Name: Carlos Reche <e-mail contact>
Packages: 10 Browse all classes by Carlos Reche Browse all classes by
Country: Brazil Brazil - PHP jobs in Brazil
Age: 28
All time rank: 513 in Brazil Brazil
Week rank: 130 Down7 in Brazil Brazil Down
Innovation award
Innovation award
Nominee: 2x


  Detailed description  
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.

  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  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (96.9%)
Good (93.8%)
Good (93.8%)
Good (96.9%)
-
-
Sufficient (76.9%)
30
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
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.
HTML file documentation.htm Doc. Class documentation
Plain text file example.php Example File with examples of how to use PathParser class.

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.