PHP Classes
elePHPant
Icontem

Gonx URLs: Generate and process search engine friendly URL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-04-24 (11 years ago) RSS 2.0 feedStarStarStarStar 63%Total: 2,416 All time: 1,519 This week: 1,024Up
Version License Categories  
gonxurls 1.0Free for non-comm...Text processing, Code Generation
Description Author  

This class is meant to generate URLs for accessing application dynamically generated pages based on parameters passed in the URL.

The class can optionally generate URLs in the common dynamic page format (http://www.mycompany.com/index?go=home&page=1) or URLs in a format optimized for not preventing search engine crawling (http://www.mycompany.com/index/home/1/).

In the later case, the class can also generate scripts that will process requests of pages with this URL format to extract the dynamic parameters from the URLs.

Picture of Ben Yacoub Hatem
Name: Ben Yacoub Hatem <contact>
Classes: 18 packages by
Country: Tunisia Tunisia
Age: 37
All time rank: 211 in Tunisia Tunisia
Week rank: 396 Down3 in Tunisia Tunisia Down
Innovation award
Innovation award
Nominee: 4x

Details provided by the author  
Gonx Urls, By Hatem

Preface
***********************************

This class is meant to create dynamic urls for your application. Then with a parameter that you define in init.php you can choose beteween default style (http://www.mycompany.com/index?go=home&page=1) or the url optimised for search engine style (http://www.mycompany.com/index/home/1/)

Usage : 
***********************************

Configure your init.php script. Gonx Urls use only two variables :

$GonxAdmin["starturifrom"] = 2; // This value is the first argument position in url
$GonxAdmin["urls"] = "0"; // 0 for the 1st style, 1 for the 2nd
$GonxAdmin["siteurl"] = "http://localhost/phpclasses/gonxurls/"; // This is full site path to index with trailing slash in the end.

 1 - Gonx Urls style : 

<?php

require_once("libs/gonxurls.class.php");		// Gonx Urls Manager

echo urls::create(array("go"=>"accueil","page"=>"1"),$GonxAdmin["urls"]);

?>

  2 - Gonx Urls developers :

After creating your modules or script using Gonx Urls you can scan all of them to generate your index.php file.


<?php

require_once("libs/gonxurls.class.php");		// Gonx Urls Manager

urls::scan("modules/");

?>

Copy and save your source code then continue your index script


TODO :
***********************************
 Support complex urls for example OnChange="location.href='?go=home&tabs='+ChgTheme.options[selectedIndex].value"
 GonxTabs class support

Author :
***********************************
Ben Yacoub Hatem
www.dynamix-tn.com
  Files folder image Files  
File Role Description
Files folder imagelibs (1 file)
Files folder imagemodules (1 file)
Accessible without login Plain text file index.php Example index and sample usage of the class
Accessible without login Plain text file init.php Aux. Initialization script
Accessible without login Plain text file Readme.txt Doc. Readme file
Accessible without login Plain text file sample2.php Example Sample usage of the class

  Files folder image Files  /  libs  
File Role Description
  Plain text file gonxurls.class.php Class The main class

  Files folder image Files  /  modules  
File Role Description
  Accessible without login Plain text file sample1.php Example Sample usage of the class

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,416All time:1,519
 This week:0This week:1,024Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:56%StarStarStar
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:679