Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged html



« Prev 1 2 3 4
  1. FAV

    getDoctype.inc.php

    With this snippet you will have the ability to display the `<DOCTYPE>` while sending the correct headers with support for content type negotiation. It also will correct itself for the W3C validator which does not send the correct Accept header for...
    PHP 133 views posted 4 months ago by daemondevin
  2. FAV

    Insert HTML code in PHP

    Se puede escribir código HTML sin problema insertando además las variables php que se necesiten dentro del propio "relleno"
    PHP 20 views posted 4 years ago by tionazo
  3. FAV

    Send simple SMS with PHP

    Simple script to send SMS throught our HTTP API (Afilnet) with PHP. Steps: 1.- Register in Afilnet. http://www.afilnet.com/anunciante/registrar.php 2.- Login and get credits (10 free) to send SMS 3.- Use this script or html form example include in...
    PHP saved by 3 people 21 views posted 5 years ago by Afilnet
  4. FAV

    HTML Table to plain text

    Use PHP's DOM parser to convert a table into plain text (including links with images)
    PHP 23 views posted 5 years ago by nigelnquande
  5. FAV

    HTML to Plain Text

    This function takes HTML input and converts it to plain text. It needs improvement so that it converts multiple blank lines to a single blank line and converts an &lt;a ... &gt; link to the markup equivalent (same for images). It should be rewritten...
    PHP 7 views posted 5 years ago by nigelnquande
  6. FAV

    Sortable index view tables with Laravel 4

    In this article I would like to share how to make a sortable index view with Laravel 4. Let’s assume you have an index view with a table. Like this example for a table that contains posts.
    PHP 11 views posted 6 years ago by CreativePunch
  7. FAV

    make php login script

    How to build a login form using php with mysql database.
    PHP 14 views posted 6 years ago by codingforever99
  8. FAV

    HTML Helper Function Create Any Element With Any Number Of Attributes (self-closing and container tags)

    /** * THIS FUNCTION WILL RENDER A CONTAINER OR SELF-CLOSING HTML ELEMENT. * IT AUTO DETECTS WHAT TYPE YOU WANT * BASED ON RATHER OR NOT YOU SET A _data KEY IN THE ARRAY OF * ATTRIBUTES PASSED TO THE FUNCTION * * USING AN ASSOCIATIVE ARRA...
    PHP 7 views posted 7 years ago by halk
  9. FAV

    Remove / Replace - href / anchor /link - in html /string - preg_replace - php - regex - regular expression

    Replaces all links within href part of anchor in a HTML-String.
    PHP saved by 3 people 25 views posted 7 years ago by rwunsch
  10. FAV

    Dummy Value Picker

    gfgd dg fgfg fg g
    PHP 7 views posted 7 years ago by vijendramisra
  11. FAV

    Onlock clear value for Input

    PHP 5 views posted 8 years ago by bubaphex
  12. FAV

    PHP RANDON HTML

    PHP 5 views posted 8 years ago by Jotape
  13. FAV

    Convert all HTML entities in database to actual characters

    Sometimes a legacy database will have HTML entities stored in it. This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.
    PHP 14 views posted 8 years ago by f6design
  14. FAV

    convert html to pdf with html2ps

    PHP 13 views posted 8 years ago by kspal
  15. FAV

    Allow HTML in WordPress User Biographical Info

    Add code to theme functions.php file.
    PHP 11 views posted 8 years ago by Huskie
  16. FAV

    Allows to write code on your blog using the 'pre' tags

    PHP 3 views posted 8 years ago by ignacio
  17. FAV

    Make your table color different by Mysql Select tag

    Here you see a example to make your table background color fdifferent at last
    PHP 5 views posted 8 years ago by Darksider3
  18. FAV

    Modx cms sample page (Evolution 1.0)

    PHP 5 views posted 8 years ago by sjacunningham
  19. FAV

    Flickr Recent Photos to HTML with PHP

    It’s been driving me crazy that there’s no definitive script written to take out a user’s Flickr recent photos and parse it for formatting into HTML with a larger size than the standard 75 x 75 dimensions that the public_photo.gne Flickr script...
    PHP saved by 3 people 7 views posted 8 years ago by jakekimpton
  20. FAV

    Share link via new Twitter

    Twitter have changed their api, and using the old twitter.com?status=… doesn't work anymore. This uses the new 'Web Intents' method.
    PHP 2 views posted 8 years ago by adamturtle
  21. FAV

    Mettere uppercase un textbox

    Come rendere uppercase un textbox senza bisogno di js
    PHP 4 views posted 8 years ago by tuffo19
  22. FAV

    Minify the HTML that is outputted by PHP

    Place this at the top of your php files. This will remove white space and formatting from HTML, making it smaller and faster for download by your users.
    PHP 5 views posted 8 years ago by trusktr
  23. FAV

    HTML table with PHP

    PHP 8 views posted 8 years ago by LemonPro
  24. FAV

    Loop that strips unwanted html

    strip html on loop
    PHP 3 views posted 8 years ago by zealmurapa
  25. FAV

    REGISTRAR USUARIOS EN PHP CON VALIDACION DE DATOS Y ACTIVACIÓN POR MAIL - 3

    Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
    PHP 8 views posted 9 years ago by danideu
  26. FAV

    REGISTRAR USUARIOS EN PHP CON VALIDACION DE DATOS Y ACTIVACIÓN POR MAIL - 1

    Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
    PHP 7 views posted 9 years ago by danideu
  27. FAV

    REGISTRAR USUARIOS EN PHP CON VALIDACION DE DATOS Y ACTIVACIÓN POR MAIL - 1

    Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
    PHP 10 views posted 9 years ago by danideu
  28. FAV

    Regular Expression for URLs using ereg_replace

    PHP 4 views posted 9 years ago by adampatterson
  29. FAV

    SQL results pager HTML

    PHP 9 views posted 9 years ago by kendsnyder
  30. FAV

    PHP/HTML/CSS - Script to scan a directoy recursively with filters and/or ingore list

    There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file...
    PHP saved by 4 people 15 views posted 9 years ago by SoN9ne
« Prev 1 2 3 4