Generate dynamically expandible hierarchic menu with Html

PHP, Tutorials
This class might be utilized to produce Html hierarchic menus that could be progressively stretched and given way upon client connection. It utilizes settled unordered Html records within consolidation of Javascript produced by the class to assemble the menu components. In the event that Javascript is debilitated, the menu will show in unfolded structure. The records are shown utilizing Css styles to modify the menu presentation. A different class is supplied to cross the index framework and assembles a menu to go on the server record framework. Download Files Here
Read More

Generate XHTML calendar for a given month or year

PHP, Tutorials
Dynamic Calendar is a class that produces timetables for a given month or year as a Html tables (Xhtml-Valid). This class is dependent upon the Php local date capacities (default) and backs alternatively the Adodb Date Library. Underpinned dates (on frameworks utilizing a 32-bit marked number Unix time_t): -Using Php local date capacities: 1902 -2037 (Unix) and 1971 -2037 (Windows) -Using Adodb Date Library: 100 -3000 and later on both Unix and Windows The generated calendars can: - Be generated in plain format (without any links) - Optionally have navigation controls - Optionally have a date picker control - Optionally have linkable days (url or javascript) - Optionally have event days (layout) with event links - Optionally have 'event content' with links and own layout - Support different GMT zones…
Read More

Display month calendars browseable using AJAX

Ajax, Tutorials
This class could be utilized to showcase month datebooks browseable utilizing Ajax. It can produce Html and Javascript to showcase a month datebook with connections to scan the months utilizing Ajax to dodge page reloading. The class can make given days be shown as connections to occasion pages. The scanning may be confined to given dates. The months and week day names are customizable. The presentation portions may be redone utilizing Css. Download All Files
Read More

Compress your HTML code using PHP

Software Development, Techniques, Tips
When we write code we love to format it nicely adding tabs, line breaks and indentations, but the end user isn’t interested in how lovely the source code is, they just want the page content, so this script strips out all the line breaks and spaces in your code and puts it on one line, compressing your code and making it faster. <?php // start output buffer ob_start('compress_html'); ?> <!-- all xhtml content here --> <?php // end output buffer and echo the page content ob_end_flush(); // this function gets rid of tabs, line breaks, and white space function compress_html($compress) { $i = array('/>[^S ]+/s','/[^S ]+</s','/(s)+/s'); $ii = array('>','<','1'); return preg_replace($i, $ii, $compress); } ?>
Read More