Zend - The PHP Company




HTML

Add Code


0 An automatic title creator  

Type: application
Added by: fletcher
Entered: 21/11/2001
Last modified: 04/12/2008
Rating: - (fewer than 3 votes)
Views: 8174
Similar to a breadcrumbs script, it automatically completes the <title> field using directory and filename information


A a very nice window with minimize and maximize.  

Type: application
Added by: damtam
Entered: 08/12/2000
Last modified: 04/12/2000
Rating: **** (7 votes)
Views: 28446
Windows with maximize and minimize features. You can even include a window inside another. Better see the example...


A automatic reload of a page n times only  

Type: application
Added by: damtam
Entered: 08/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 9776
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)


A better A - Z link generator  

Type: application
Added by: louie
Entered: 01/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 7722
A scriptlet to generate links out of the letters of the alphabet.


A function for parsing a html.  

Type: code fragment
Added by: carlosjordao
Entered: 21/07/2000
Last modified: 08/12/1999
Rating: **** (5 votes)
Views: 11351
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.


A Nested Tag Generator  

Type: class library
Added by: GabeBauman
Entered: 29/03/2000
Last modified: 08/12/1999
Rating: **** (7 votes)
Views: 8406
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...


Add values to query string  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (8 votes)
Views: 10178
This function allows to form query string with a values added to it from current query string


adding a note in a PDF document  

Type: application
Added by: sultanzahir
Entered: 20/11/2001
Last modified: 02/11/2000
Rating: - (fewer than 3 votes)
Views: 5585
we can notes in a PDF documents


adding a URL automatically with Javascript  

Type: application
Added by: sultanzahir
Entered: 12/11/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 7235
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


Allow a visitor to add a bookmark of your website  

Type: code fragment
Added by: spinn1
Entered: 17/06/2001
Last modified: 06/12/2000
Rating: - (fewer than 3 votes)
Views: 14862
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.


Alphabetic Links Array  

Type: code fragment
Added by: cable
Entered: 16/10/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6864
A simple array which builds an alphabetic links array (a,b,c) great for directory type search engines where you wish to list alphabetically.


Anchor Extractor  

Type: code fragment
Added by: kgourlay
Entered: 12/07/2000
Last modified: 08/12/1999
Rating: ***** (4 votes)
Views: 7565
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.


authentication using sessions and mysql with logout  

Type: code fragment
Added by: CBN_001
Entered: 29/03/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 13476
simple to understand authenticate with no peculiar behaviour like http authentication. Has logout function unlike ,many other authentication systems


Authentication with PHP and MySQL  

Type: code fragment
Added by: anderson
Entered: 05/03/2000
Last modified: 08/12/1999
Rating: **** (9 votes)
Views: 15699
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-Generate a listing of Favorites/Bookmarks  

Type: code fragment
Added by: cseibert
Entered: 15/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 5674
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.


autoLink  

Type: application
Added by: goten
Entered: 13/04/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 7916
Auto link URL and Email address in a document. And it will not mess up &lta 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.


AutoLink (Hypertext link URL, EMAIL)  

Type: code fragment
Added by: oops
Entered: 22/09/2000
Last modified: 02/12/2001
Rating: ***** (4 votes)
Views: 15741
auto linked URL, E-mail address in document


Automatic test directory links  

Type: code fragment
Added by: bkosse
Entered: 06/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 5042
I find myself frequently making various tests/sample sites/etc in PHP that I like to keep around.

This is a code fragment I use to automatically generate a table containing a series of links.


Automatically and evenly split a long HTML text into pages  

Type: class
Added by: SHARYANTO
Entered: 12/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8638
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.


Banner Rotator by Nuthan Krishnan  

Type: application
Added by: webcoder
Entered: 11/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6283
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


browser detection  

Type: code fragment
Added by: sultanzahir
Entered: 20/11/2001
Last modified: 02/11/2000
Rating: - (fewer than 3 votes)
Views: 6845
it is able to detect opera,netscape,internet explorer,mozilla very easy to understand , just copy and paste script


Changing Two FRAMEs At Once  

Type: code fragment
Added by: rlynch
Entered: 13/05/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 10264
Example of changing two frames at once.


ColorMe  

Type: code fragment
Added by: Thanders
Entered: 04/06/2001
Last modified: 06/12/2000
Rating: - (fewer than 3 votes)
Views: 6441
Use PHP and CSS to let users choose a color scheme for your site.


Cool Index file.  

Type: application
Added by: holev
Entered: 30/04/2000
Last modified: 08/12/1999
Rating: ** (12 votes)
Views: 14463
A cool index file. like index.php3?id=mp3 ...


draw chart  

Type: application
Added by: tgenc
Entered: 17/07/2000
Last modified: 08/12/1999
Rating: **** (6 votes)
Views: 9029
drawing chart of users monthly work times


Dynamic Link List  

Type: application
Added by: wsjb78
Entered: 22/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 7307
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  

Type: application
Added by: ghost
Entered: 22/10/2000
Last modified: 01/12/2000
Rating: **** (4 votes)
Views: 11372
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/


email/url validation and convertion functions  

Type: code fragment
Added by: Mas_Mind
Entered: 07/07/2000
Last modified: 08/12/1999
Rating: ***** (6 votes)
Views: 12306
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 :)


fetchTags  

Type: application
Added by: madlogic
Entered: 04/01/2003
Last modified: 02/12/2002
Rating: - (fewer than 3 votes)
Views: 4286
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.


Formatting data in quadrants of a parent table.  

Type: class
Added by: jbdamask
Entered: 10/08/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 5479
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.


Get Title tag  

Type: code fragment
Added by: Biseauno
Entered: 23/07/2000
Last modified: 08/12/1999
Rating: *** (3 votes)
Views: 9125
It permit you to get the title of a web page. Permet d'obtenir le titre d'une page web


GetCombo  

Type: code fragment
Added by: mindf
Entered: 10/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6012
Combo-BOX - Abstraction With function you can retrieve the combo-box structure with its data.


header / sidebar / footer link level determiner  

Type: application
Added by: jasendorf
Entered: 23/05/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7370
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


HTML Color codes  

Type: code fragment
Added by: mindmode
Entered: 28/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6894
Enter color codes of red, green and blue and you will get the HTML code of the color like : #1C521E22


HTML parser  

Type: class
Added by: xath
Entered: 24/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 9357
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  

Type: class
Added by: Antonio
Entered: 30/10/2001
Last modified: 07/12/2001
Rating: - (fewer than 3 votes)
Views: 7322
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


HTML SAX Parser  

Type: class
Added by: drdrzlo1
Entered: 17/02/2005
Last modified: 09/12/2005
Rating: - (fewer than 3 votes)
Views: 3828
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


HTML Wrapper for CSS styles  

Type: code fragment
Added by: tswan
Entered: 02/03/2000
Last modified: 08/12/1999
Rating: **** (7 votes)
Views: 8801

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.

Supported attributes FACE, COLOR, SIZE, BOLD, ITALIC, UNDERLINE.



html.php  

Type: code fragment
Added by: homechicken
Entered: 21/03/2000
Last modified: 08/12/1999
Rating: **** (17 votes)
Views: 13788
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.


htmlstr.php  

Type: code fragment
Added by: homechicken
Entered: 11/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6216
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".


HTML_page  

Type: class
Added by: imperator_mundi
Entered: 01/10/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 6164
generate a class that contains the data of an HTML page, can return the code as a string


Improved Anchor Extractor  

Type: code fragment
Added by: exhuma
Entered: 09/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 4507
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.


LinkBox class  

Type: class
Added by: mbroome
Entered: 04/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6259
An easy way to make link boxs. Contents can be set by the user or come from a rdf making it easy to create headline boxs.


Links Displayer  

Type: code fragment
Added by: jasendorf
Entered: 10/07/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6086
I use this to spit out external links for our ever popular "Links" page. Just add an array item and you've got alphabetized links.


lists.php - part of the html.php library  

Type: code fragment
Added by: homechicken
Entered: 21/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6614
Simplifies outputting lists in php. Use in conjunction with html.php, forms.php, and tables.php.


liststr.php - html lists in php  

Type: code fragment
Added by: homechicken
Entered: 12/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4942
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


livecruncher v1.0  

Type: application
Added by: cocotime
Entered: 16/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 5881
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 "


MDC_ColorChange  

Type: class
Added by: wolframschlich
Entered: 19/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 4011
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.


no database post-a-link 'free for all links'  

Type: application
Added by: markeyd
Entered: 01/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4791
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


Object position  

Type: code fragment
Added by: ghost
Entered: 11/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 5604
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!


PHP4 HTTP Compression Speeds up the Web  

Type: code fragment
Added by: catoc
Entered: 14/10/2000
Last modified: 01/12/2000
Rating: **** (10 votes)
Views: 9695
Dynamic Content Acceleration compresses the data transmission data on the fly.


phpHtmlLib  

Type: class library
Added by: hemna
Entered: 20/08/2001
Last modified: 08/12/2000
Rating: - (fewer than 3 votes)
Views: 5222
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.


phpHtmlLib  

Type: class library
Added by: hemna
Entered: 13/11/2002
Last modified: 01/11/2001
Rating: - (fewer than 3 votes)
Views: 4456
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' .


Safe HTML  

Type: code fragment
Added by: gautehk
Entered: 21/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6814
Cleans HTML by removing unwanted tags. Useful for "cleaning" form input that is to be viewed on a HTML page.


system uptime script  

Type: code fragment
Added by: cellularmitosis
Entered: 26/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 6557
here's a bit of code to display the system uptime of your linux server on your website.


tables.php - part of the html.php library  

Type: code fragment
Added by: homechicken
Entered: 21/03/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7549
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.


tablestr.php - html tables in php  

Type: code fragment
Added by: homechicken
Entered: 12/01/2001
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8226
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.


TagCloud  

Type: class
Added by: calevans
Entered: 24/01/2006
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 2877
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.


tagtrack.php  

Type: class
Added by: xath
Entered: 24/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4638
my HTML parser class uses this class to check the validity of nested tags. Parser.php needs this class to work.


testuserandpass  

Type: code fragment
Added by: sonicwavs
Entered: 13/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 4922
testuserandpass


Thread class  

Type: class
Added by: Mas_Mind
Entered: 07/07/2000
Last modified: 08/12/1999
Rating: ***** (3 votes)
Views: 5499
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


URL hilight  

Type: code fragment
Added by: hdn
Entered: 14/10/2003
Last modified: 02/11/2002
Rating: - (fewer than 3 votes)
Views: 3611
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.



Search



This Category All Categories