This function just extract the html tags from a string and put them in a array like
["IMG"]["WIDTH"] = 130
I think this is useful for who wants get some tag properties. For example, I created it to help me developing a bot to search throught a website and it was designed just to
get tags information. By now, for getting meta tags is still better using the php functions. Any doubts you can email me at firstname.lastname@example.org, but don't worry if I answer
you from another address.
Sick of forgetting to close tags when generating tables and HTML documents in a PHP script? This library contains 2 classes:
CHTMLDocument (an extension of CTagDocument).
These classes track HTML tags as you open and close them; CHTMLDocument is geared towards generation of a complete HTML document, while CTagDocument can be used for
structures like TABLE and LIST. Basic HTML formatting is also done for you. These classes do not buffer their output to memory - they echo() their output to the
browser as they go. Call 'CloseAllTags()' to properly close all open tags, or 'CloseTag()' to close the current tag. See the example below...
This fragment allows you to click on an annimated gif. It will then popup the windows favorites box; so, the visitor can bookmark your page where he or she wants to place the
bookmark. I am fairly new at this. I want to learn and contribute.
Give it a string containing HTML code and it'll extract all the anchors (links) from it. It'll set up an array of the URLs (as they appear in the code) and another array of
the related "hilighted" text. This isn't perfect, but I figured I'd toss it up since I was looking for it earlier today.
Auto-Generates a listing of you Bookmarks, great for anyone who runs a personal webserver and has a homepage in need of some active content. It will go recursively through
your favorites folder, and create a page of links. The folder must be accessable via the server rights or php won't find it. You may want to make a mirror folder of you
favorites inside a secure directory. Formatting is up to you, right now it just indents correctly.
Auto link URL and Email address in a document. And it will not mess up <a href> tag like many other auto link script did. Also, it only use two preg_replace statement
for FAST translation.
(1.2 version fix the HTML A tag not giving out the correct URL)
Restriction: Any URL begin with " or "> will not be linked.
The algorithm is quite simple and goes like this: try to split the long text after the desired page length, but delay the split if we are still in <table>'s or
<pre>'s or <p>'s in order to avoid screwing up tables (ouch!) or preformatted sections. Guaranteed, this is not perfect, but it works well in most cases. You might
want to add the avoidance of breaking <script> sections if you want, etc. For slightly more details, take a look at this page. Enjoy.
after reading the text file from the server. It loads each banner, display it on the screen, the specified number of seconds. The list of banners and time can be freely
edited. The format of the text file (timer.txt) is as follows: first.gif 3000 =waits for 3 seconds second.gif 4000 =waits for 3 seconds third.gif 5000 =waits for 3 seconds
This script let's you add a dynmaic link library based on php and mysql. The links are sorted by categories (either existing ones or with the submission of a link a new
category can be created). The links within a category are listed alphabetically, the categories by time of creation (first one first). If you have any improvements on that
script, please mail them to email@example.com
Dynamic Page is a framework, to let you store the entire web site (or multiple sites) and related data in a database, and from that, build the pages, using different "code
snippets". This way, you can easily build sites, that reuses code, regardless of type, replace entire code segments in any number of pages immediately. It supports pure HTML
snippets, PHP code execution, and "page descriptors", which is a way of describing wich "code snippets" to use, in composing the page. Code from one page, can be used in
another page. Data from one page, can be copied to another page. It also has support for pictures and other types of objects, wich can be retrieved from the database. It
currently uses MySQL as database. The code is fast, and very small (appx. 1.8 Kbyte) For further information, read the documentation in the package. The code is licensed under
the GPL, developed by W10.NET Ltd. The complete set of files will be found at: ftp://w10.net/pub/W10/DynamicPage/
This piece of code contains functions to verify an web- or email adres and functions to convert web- or email adresses in text to hyperlinks As far as I tested it they cover
all possible invalid formats, but don't hesitate to let me know if it doesn't :)
When displaying data we often want the benefit of side-by-side formatting offered by tables. This class allows you to set four strings of data that can be images, hyperlinks,
nested tables, etc, and display them in quadrants on your screen. The class has 7 permutations of quadrants to allow for plenty of formatting fun.
I made this bit of code (with a lot of help from the list serv people, THANKS!) and thought I would share it. This is my first post, so please be gentle. This code is designed
to be required on every web page in the web site. It should automatically pick up the depth of a page in the file directory and then assign the proper link to a directory FROM
THE ROOT. The first part of this script finds how deep the page is from the root. The second part is an array of all of the links you want listed. The third part sorts and
lists the links. You should then be able to require this script on any page in your website and all of the links will work. I hope to make the next version of this determine
if a link is in the directory currently accessed. (any help? wink wink) If this helps anyone, please let me know. firstname.lastname@example.org John Asendorf
parses through text in what is hopefully an efficient manner. It will check the validity of HTML code, including nested tags, among other things. Needs my class tagtrack.php
to work, which I have included here. Needs some comments, but I'm to lazy now, will get to that later. Many thanks to Adrian for his help with this class.
This class can parse HTML documents using regular expressions to split the document character data, the begin and end tag elements. For each type of elements, the class call
custom callback that can do any type of processing. The callback functions may be global or be functions of a class of a given object. More example on
If you write the attributes for your text in CSS this will wrap and set the Translates CSS attributes into HTML3 tags while keeping the CSS style as inline. Also, allows for
setting a default style for the page.
I wrote html library functions because I got tired of escaping all the quotes. There are 4 parts, html.php, lists.php, forms.php, and tables.php, but they function
independently. There is also a copy of each file that returns strings instead of printing out the html information. They can work together. If these get good ratings I'll post
the ones that return strings, too.
As I promised, though a bit late, here are the same functions out of html.php that return strings. This is related to liststr.php, formstr.php, and tablestr.php. These files
can be included with any of the original ones that don't return strings, but note the functions are named with a postfixed "_str".
A modified version of lists.php, this one returns strings instead of printing html. It is related to htmlstr.php, formstr.php, and tablestr.php. It can be included with
any/all related files, but if included along with lists.php, remember the function names are postfixed with a "_str". See example for details
phpHtmllib is a set of PHP classes and library functions to help facilitate building, debugging, and rendering of HTML and XHTML. It provides a mechanism to output perfectly
indented/readable HTML/XHTML source, and a programmatic API to generating HTML/XHTML on the fly.
A set of PHP classes and library functions to help facilitate building, debugging, and rendering of XML, HTML, XHTML, WAP/WML Documents, and SVG (Scalable Vector Graphics)
images as well as complex html 'widgets' .
This is the string-returning form of tables.php. It can work together with htmlstr.php, liststr.php, and formstr.php. It can be included with any/all related files, but
remember that if included along with tables.php, the function names that return strings are postfixed with a "_str". See example code for details.
Given a single dimensional array of terms, this class will output a piece of HTML with each term wrapped in a span tag with an ID that you can define in your CSS. It can be
called either as an object or as a static class.
A function to efficiently and CORRECTLY hilight any non-linked url in a text or html document. This is accomplished by first lifting all linked urls and urls that shouldn't be
linked - such as those in embed, img, link ... tags. Then it will link urls that should be linked. Finally, it puts previously lifted urls back where they belong.