Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
Similar to a breadcrumbs script, it automatically completes the <title> field using directory and filename information
|
|
Windows with maximize and minimize features. You can even include a window inside another. Better see the example...
|
|
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 scriptlet to generate links out of the letters of the alphabet.
|
|
This function just extract the html tags from a string and put them in a array like<br>
["IMG"][0]["WIDTH"] = 130<br>
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</b> when generating tables and HTML documents in a PHP script? This library contains 2 classes: <ul><li><b>CTagDocument</b> <li><b>CHTMLDocument</b> (an extension of CTagDocument).</ul> 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 <b>classes do not buffer</b> their output to memory - they <b>echo()</b> 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 function allows to form query string with a values added to it from current query string
|
|
we can notes in a PDF documents
|
|
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.
|
|
A simple array which builds an alphabetic links array (a,b,c) great for directory type search engines where you wish to list alphabetically.
|
|
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.
|
|
simple to understand authenticate with no peculiar behaviour like http
authentication. Has logout function unlike ,many other authentication systems
|
|
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.
<br>
(1.2 version fix the HTML A tag not giving out the correct URL)
<br>
Restriction: Any URL begin with " or "> will not be linked.
|
|
auto linked URL, E-mail address in document
|
|
The idea behind this javascript-function is to add a bookmark of your website. PHP helps to detect the server name.
|
|
I find myself frequently making various tests/sample sites/etc in PHP that I like to keep around.<BR><BR>This is a code fragment I use to automatically generate a table containing a series of links.
|
|
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 <a href="http://steven.haryan.to/php/StoryPager.html">page</a>. 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
|
|
it is able to detect opera,netscape,internet explorer,mozilla
very easy to understand , just copy and paste script
|
|
Example of changing two frames at once.
|
|
Use PHP and CSS to let users choose a color scheme for your site.
|
|
A cool index file. like <B> index.php3?id=mp3 ...
|
|
drawing chart of users monthly work times
|
|
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.
|
|
It permit you to get the title of a web page.
Permet d'obtenir le titre d'une page web
|
|
Combo-BOX - Abstraction
With function you can retrieve the combo-box structure with its data.
|
|
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
|
|
Enter color codes of red, green and blue and you will get the HTML code of the color like : #1C521E22
|
|
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
|
|
<P>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. </P>
<P>Supported attributes FACE, COLOR, SIZE, BOLD, ITALIC, UNDERLINE.</P>
|
|
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".
|
|
generate a class that contains the data of an HTML page, can return the code as a string
|
|
Based on <a href="http://www.zend.com/search_code_author.php?author=kgourlay">kgourlay's</a> 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.
|
|
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.
|
|
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.
|
|
Simplifies outputting lists in php. Use in conjunction with html.php, forms.php, and tables.php.
|
|
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 <a href='http://markdonline.com/code/code.php3'>http://markdonline.com/code/code.php3</a>
|
|
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!
|
|
Dynamic Content Acceleration compresses the data transmission data on the fly.
|
|
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' .
|
|
Cleans HTML by removing unwanted tags. Useful for "cleaning" form input that is to be viewed on a HTML page.
|
|
here's a bit of code to display the system uptime of your linux server on your website.
|
|
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.
|
|
my HTML parser class uses this class to check the validity of nested tags. Parser.php needs this class to work.
|
|
testuserandpass
|
|
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.
|