This Script will make an automatic reload of the current page, but only for a limited number of time (useful to update content without wasting ressources)
This function just extract the html tags from a string and put them in a array like
["IMG"][0]["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 carlosjordao@yahoo.com, 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:
CTagDocument
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 small program will allow you to add or delete URL from your website with your own password without editing or changing any code.Very easy to understand and uses easy
javascripts
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.
You may use this code to authenticate users to view some page. The password field on MySQL should be entered as password("somepasshere"), to increase the security of the
datas.
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.
This php application reads a text file containing a list of banners and the time in seconds to display on the screen. The application will construct the proper javascript
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
email:nuthankrishnan@hotmail.com
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 wsjb78@gmx.net
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 :)
Fetch the three major tags providing information about the website! ... Retrieves the meta keywords, description, and the title of the page. I was bored and thought it would
be interesting.
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. jasendorf@lcounty.com 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.
HTML parser allows parse HTML code into tree and uses this tree for something else. It can be downloaded from http://www.sourceforge.net/projects/html-parser
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
http://www.phpclasses.org/browse/package/2140.html
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".
Based on kgourlay's Anchor Extractor Script. Improved it a bit. Now it is a function which returns a
2-dimensional array with the links, and strips unnecessary tags inside the Tag-Description.
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
html-code is compressed by php4 and recompressed by javascript advantage: up to 25% less traffic, thus more speed, less costs files can also be stored in the crunched version
recrunch - javascript is very fast. how it works: html is splitted by "
rotatory returns one of a set of previously defined colors. it's a class, so you can have as many differently colored (e.g.) tables as you like on a page.
This app does not require a database. It allows visitors of a site to post links based on an appropriate category or genre the URL falls into. Get it at http://markdonline.com/code/code.php3
Position any object exactly where you want it on your web page, using layers. This snippet works with both NS and IE. Released into the PD as a Mailware - please mail and tell
if you use!
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' .
Ease the pain of escaping quotes and clean up your php code, use tables.php. Made to go with html.php, lists.php, and forms.php, but they're really only groups of functions.
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.
This class can print out an array of threads in threaded or flat mode (any mode you want really) This can be usefull for discussion boards where you want both options
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.