Today I would like to share some interesting PHP codes to handle HTML dynamically. These codes are free to use under GNU General Public License. I hope this post would help Web Developers. Here's the following:
1. Object HTML
A set of classes that will allow you to build HTML documents completely w/ objects in PHP. This is only the most basic layer but it is easy to build onto.
2. OO HTML Table Generation
Automatic generation of HTML for table.
- Colspan, rowspan, table style, column style, cell style, and data style may all be defined.
- OO interface
- Simple but effective
3. HTML Table Tag Analysis
Helpful for debugging bad HTML code. This program counts the number of opening table tags and how many imbedded tables exist.
4. PREV_123_NEXT function
The logic of this function is based on the prev123next code snippet, but rewritten to return an array of links that can then be ouput anywhere on the page. Also added some boundry checking for the offset variable.
5. PHP function for cleaning up HTML and JavaSctipt code
This is a function for PHP scripts to clean up HTML code before outputting it. The function applies correct indentation to HTML/XHTML 1.0 and JavaScript and makes the output much more readable. You can specify the wanted indentation through the variable $indent
6. Breadcrumbs Navigation
This code will produce a useful navigation resource, showing visitors where they are in your site. This form of navigation is recommended by Jakob Nielson, and it really does make navigation less confusing.
7. Use content from another site
This short script lets you take content from another page and embed it into your own pages. Just put the URL of the page who's contents you would like and then in the start and finish lines, find something in the original source code that you can use to mark the start and finish cut points.
8. Dynamic List Boxes
Two listboxes filled up with data from two related tables. As the user selects the first listbox, the second listbox changes accordingly.
This code uses mySQL and PHP as well as Javascript. The example tables will be automatically created for you but you have supply the correct database parameters..
9. Display MySQL restult as table
Take a row from a table of images and display thumbnails x number across. Just change the value of $tds to change how many it shows across the row.
10. Url to Hyperlink
This function trasforms a string (or a text) to an hyperlink.
Example: My site is http://www.lolloland.com will be trasformed to: my site is <a href="http://www.lolloland.com"; target="TARGET">www.lolloland.com</a>.
This function replaces a http, https or www in a text with a html A tag.
Do you have any opinion, Leave a comment.
Friday, July 3, 2009
10 Super PHP codes to handle HTML (for Web Developers)
Subscribe to:
Post Comments
(
Atom
)
About Me
- Rakesh Sharma
-
Web Designer | Blogger | Web Addict
Follow on Google+
Recommend on Google +1
RSS Feed
Subscribe Recent Posts
Popular Posts
-
If you are looking 'how to put a any form in a blogger' then this post is going to help you. Putting a form in blogger is very easy....
-
If you are looking for free e-books for Web Design and Development then this post is for you. Here I have shared some very useful e-books wi...
-
When you write a CSS for your project you never know what kind of bug or issue you will face at time of browser compatibility. Internet Ex...
-
Cooliris is simply the fastest and most stunning way to browse photos and videos from the Web or your desktop for free. Effortlessly scroll...
-
Now a days every one intend to aware about HTML5 more and more. According to experts HTML5 is a future of the web. There are some interestin...
-
jQM (jQuery Mobile) becoming very popular now a days. Mobile developers from across the world contributing their knowledge to make it more u...
-
In web development scripts like jQuery and Ajax becomes very handy for web developers. If you are a learner or a expert these scripts is rea...
-
In this post I'm sharing a list of XML based CMS (Content Management System) to help web designers and developers. CMS usually implement...
-
Today I would like to share that how to add a Facebook fan list to your blog or website (like I have added here at right sidebar). This is t...
-
Today I am really happy to anounce that I have launched new social book marking site called ' TutLinks '. This is a first networkin...
14 comments :
I'm sure that the code does what it says, but after looking at it, the above code, all of it, really need to be reworked.
After looking at the first snippet, I decided to forgo your method: it uses too many objects. All you need is simple logic to handle most types of elements, and subclassing *only* for something as different as a <select> box. My own tag builder is only 126 lines with an included form builder....
this looks really useful! i have my own versions of some of these, but it' useful to compare techniques also.
another useful one to include is a simple http redirect. now with everyone having alternate URLS at facebook, twitter, and other network, it's useful to have yourname.com/facebook etc.
i wrote a quick tutorial on this, with simple cut-paste code, on my blog:
http://zariat.com/z/2009/05/17/diy-link-shortening-for-your-networks/
cheers
zariat
Breadcrumb and displaying content from other sites will be useful. Thanks for the post.
Thanks for the post. It would be better if there would be a documentation for the code available - in my opinion.
I find HTML cleaner interesting
wow, looks cool.
thanks for the list.
Good work, I would also add IzzyMenu.com, as a great tool for creating dynamic html menus
tag as object also worth a try.
thanks for the list !
thanks for sharing your site. there are lots of ebooks are available here
http://feboook.blogspot.com
Thanks a lot. It can be usefull for me after php tutorials
Realy very good ten HTML codes for web developers. Thanks for the post
Something long but really informative and also helpful.
This is an excellent site and tips are so brilliant..Very useful information is shared with great points.Helped me lot.Thanks for presenting.
best web design company
A set of classes that will allow you to build HTML documents completely w/ objects in PHP. This is only the most basic layer but it is easy to build onto.html coder
Post a Comment