Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 148 149 150 151 152 Next »
  1. FAV

    MySQL Fetch Results

    Fetch the results of a MySQL query.
    PHP saved by 4 people 6 views posted 13 years ago by neogeek
  2. FAV

    MySQL List Database Tables

    Fetch a list of tables in a specific database.
    PHP saved by 28 people 18 views posted 13 years ago by neogeek
  3. FAV

    MySQL List Databases

    Fetch a list of available databases.
    PHP saved by 28 people 17 views posted 13 years ago by neogeek
  4. FAV

    File Put Contents

    Similar to the file_put_contents() function in PHP5 built for PHP4 (will not cause errors on a server running PHP5).
    PHP 9 views posted 13 years ago by neogeek
  5. FAV

    PHP: print html header

    PHP saved by 16 people 5 views posted 2020 years ago by KernelPanic
  6. FAV

    Simple MySQL Search Function

    A quick and simple way to search a MySQL database. Example: mysql_search('items', 'title tags', isset($_GET['q'])?$_GET['q']:'', Array('columns'=>'*', 'method'=>'OR', 'extra_sql'=>'AND active = "true" ORDER BY id DESC'));
    PHP saved by 268 people 127 views posted 13 years ago by neogeek
  7. FAV

    US States and World Countries Collection

    This is a collection of US States (Long and abbreviated names) and world countries. There are a few examples of usage below the collections.
    PHP saved by 164 people 67 views posted 13 years ago by neogeek
  8. FAV

    Intercepta los errores de ejecución y los envía por mail al administrador con detalle del contexto

    PHP saved by 12 people 10 views posted 13 years ago by cochambre
  9. FAV

    Devuelve un string indicando del tamaño de un archivo al estilo Windows.

    PHP saved by 9 people 6 views posted 13 years ago by cochambre
  10. FAV

    Prepara un string en PHP para ingresarlo como atributo en un XML

    PHP saved by 9 people 5 views posted 13 years ago by cochambre
  11. FAV

    Devuelve el Querystring sin un parametro indicado

    PHP saved by 1 person 3 views posted 13 years ago by cochambre
  12. FAV

    Prepara un string en PHP para ingresarlo en codigo Javascript

    PHP saved by 27 people 4 views posted 13 years ago by cochambre
  13. FAV

    Copiar un arbol de carpetas y archivos sin limite de niveles

    PHP saved by 8 people 5 views posted 13 years ago by cochambre
  14. FAV

    Desactivar Register Globals sin modificar php.ini

    PHP saved by 2 people 5 views posted 13 years ago by cochambre
  15. FAV

    Borra una carpeta y todos sus archivos

    PHP saved by 4 people 4 views posted 13 years ago by cochambre
  16. FAV

    redimensionar imagenes JPG

    extraido de http://es.php.net/manual/en/ref.domxml.php
    PHP saved by 2 people 5 views posted 13 years ago by mate
  17. FAV

    Registrar variables globales

    Esta funcion toma valores del espacio global $HTTP_*_VARS desde un array en la llamada a la funcion, y si existen y tienen contenido, las registra como globales para que puedan ser accedidas a continuación. Debe recibir una lista de elementos en...
    PHP saved by 1 person 4 views posted 13 years ago by Navegante
  18. FAV

    Fetch Remote File

    This simple function allows you to fetch files from other web sites in PHP4 without needing to install any extensions for PHP.
    PHP saved by 1 person 7 views posted 13 years ago by neogeek
  19. FAV

    Smarty_Backoffice

    The standard tag for the new class Smarty_Backoffice in my application.
    PHP 3 views posted 13 years ago by Bunker
1 ... 148 149 150 151 152 Next »