Microsoft Virtualization Training
This post is sponsored (more…)
December 20th, 2006
How to get / parse the web page file name with PHPI recently had the need to determine the exact file name of the current web page within a PHP application. It is simple to retrieve the full URL containing the filename, such as http://www.domain.com/example.php using $_SERVER['PHP_SELF'], but I wanted to parse only the 'example.php' part. I used two string functions to do this, substr and strrpos. Strrpos finds the last occurrence of "/", and substr parses everything after that. Here's the code:
December 18th, 2006
Simple Joomla module to add any HTML to any positionCreate beautiful Joomla websites with a flexible layout from iJoomla.com With all my Joomla installations, I've usually been able to find a module to provide some sort of content for a sidebar. But sometimes, you just need a bit of static HTML that isn't automatically created anywhere on your site. So I whipped together this very simple Joomla extension that just provides a textarea for you to put in any HTML you want to. That HTML is then displayed wherever you place the module. (more…) |