Zend - The PHP Company




Code Gallery: h3


cal  

Type: code fragment
Added by: h3
Entered: 07/03/2004
Last modified: 03/12/2003
Rating: - (fewer than 3 votes)
Views: 4701
this is a tiny calendar parser, it uses the linux cal command and parse it to html, added some security fixes and layout bugs got fixed too.


mxml  

Type: class
Added by: h3
Entered: 12/12/2003
Last modified: 02/11/2002
Rating: - (fewer than 3 votes)
Views: 5449
This is a minimal, and hopefully simple class to get data out of a xml file via path query. Like; /rootNode/subnode/node .. if you don't understand read the code source, you'll dig it :) It was inspired from lots of great codes from the open source (mainly from zend.com and pear.php.net), wich are not necessarly related to xml, list them back would be too long and I would surely forget some, so i felt like I had to give it back to the open source. now make something better out of it :) to do: - add support for duplicate nodes. - add support fo namespaces. note to coders: - the $i & $o stands for input & output, i think it's a clean and efficient way to handle mainstream data trough functions. - this code may not be appropriate for proffessional use since it does not meet the industry standards and is still in beta developement - I think it can handle malformed or broken xml files without ending with infinites loops or crashing, but you shall respect some rules to in your xml file composition .. and avoid node repetition :/ i'll work on that soon. ** BOF file.xml ** data data ** EOF file.xml ** finally, feel free to report me bugs, suggestions or comments. - h3 at mindkind dot org


search  

Type: code fragment
Added by: h3
Entered: 10/12/2004
Last modified: 01/12/2004
Rating: - (fewer than 3 votes)
Views: 3629
This function was widely inspired by dwebb's File Search function (see: http://www.zend.com/codex.php?id=301&single=1) It's basically the same function but now it returns an array to support multiple matches, it's also more flexible because I used stristr() instead of a literal match, wich is quite useless for a search function...




Search