Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The fastest way is to create a php file and access it through browser add the following content to file.
        
        
        
            0 
        
        
            1422 
        
                    posted 14 years ago by necode
            This is a skeleton mock up for showing a database table in a basic datagrid with sorting and pagination.
        
        
        
            0 
        
        
            2564 
        
                    posted 14 years ago by brownrl
            This PHP class can be used to process credit card payments via Cybersource.
It can send HTTP requests to Cybersource SOAP Web services API server to  perform several types
of operations to process credit card payments.
Currently it can request...
        
        
        
            0 
        
        
            1335 
        
                    posted 14 years ago by mafhh14
            This article shows how to add default value to any system configuration option fields. System configuration option fields means those options under System -> Configuration.
Suppose, you have the following system.xml file. System.xml file is necess...
        
        
        
            0 
        
        
            1270 
        
                    posted 14 years ago by necode
            Insert that into the database as a string. The example would give you the format 2011-01-28
        
        
        
            0 
        
        
            1506 
        
                    posted 14 years ago by necode
            If you are creating an admin module for Magento (learn creating admin module in Magento) then you would surely be asked to create grids (eg. for order listing). Creating grids can be somewhat difficult for the novice Magento programmers, but in this...
        
        
        
            0 
        
        
            1340 
        
                    posted 14 years ago by necode
            A collection is a Model type containing other Models, it is basically used in Magento to handle product lists (ie. from a category or a bundle option), but not only.
TO DO: Explain how Magento Implements a collection - Use this to explain how Mage...
        
        
        
            0 
        
        
            1166 
        
                    posted 14 years ago by necode
            send mail with attached file
examples: http://framework.zend.com/svn/framework/standard/trunk/tests/Zend/Mail/MailTest.php
        
        
        
            0 
        
        
            1331 
        
                    posted 14 years ago by necode
            Estas 2 lÃneas muestran errores en tiempo de ejecución. Pegar donde se inicia el código.
        
        
        
            0 
        
        
            1328 
        
                    posted 14 years ago by n19ht
            This function validates the URL of a YouTube video. It supports four kinds of URL: ?v=, /v/, #!v=, and the short version (youtu.be).
To validate the ID a request to YouTube is made, this is done using a personal class utilizing cURL.
        
        
        
            0 
        
        
            2472 
        
                    posted 14 years ago by peckham
            Embedding Google’s +1 button is pretty easy and straightforward. All it takes is to include 2 code snippets in your web page. One goes in the header of the page, and the other one goes to wherever where you want the +1 button to render. To do so al...
        
        
        
            0 
        
        
            1314 
        
                    posted 14 years ago by necode
            Rol editor con permisos para crear usuarios no pueda tocar al administrador:
1. Solo los roles "Administrator" pueden editar datos de usuarios con rol "Administrator"
2. Cualquier otro perfil con el permiso "edit_users" no puede asignar el rol...
        
        
        
            0 
        
        
            1007 
        
                    posted 14 years ago by davidlluna
            "Escapa caracteres especiales en la cadena no escapada, teniendo en cuenta el conjunto de caracteres actual de la conexión para que sea seguro usarla en mysql_query(). Si se van a insertar datos binarios, esta función debe ser usada.
mysql_real_...
        
        
        
            0 
        
        
            1729 
        
                    posted 14 years ago by skozz
            Add the following to your active theme's functions.php file then upload an image named "avatar.jpg" to your active theme's image folder. The image can be named anything you would like but be sure to change it in the code below as well.
The last st...
        
        
        
            0 
        
        
            1141 
        
                    posted 14 years ago by xcsteve99
            Here you see a example to make your table background color fdifferent at last
        
        
        
            0 
        
        
            2314 
        
                    posted 14 years ago by Darksider3
            
