background preloader

PHP

Facebook Twitter

Hangers - PHP [Hang Anything, Anywhere] Online Demo Project Features 70+ hanging styles, colors & gradients175+ animation effects (for page onload and on mouse movements)Inbuilt demos & create your own hangersHang Social media, images, videos, HTML codes, Advertisments, Menu items, Buttons (like Sign up, Subscribe, Buy, Download) and more. View ScreenshotsAdmin panel (to control dimensions, colors, spacing, position, animation, hanging icons, URLs, Uploaded media etc.)Implement on a Whole webpage, Inside any blog post or inside any tag element.Create unlimited hangersMultiple hangers on a webpageSingle line implementationBrowser compatibility (Google Chrome , Mozilla Firefox , Opera , Safari , Internet Explorer ). Admin Panel screenshots Control Spacing of Hangers and of Hanger Plot Hangers and Media dimensions.

PHP MySQL Database Class. PHP Advanced Database Class. ADOdb Database Abstraction Library for PHP (and Python) for MySQL, PostgreSQL, Microsoft SQL Server, Oracle, Firebird, Interbase, LDAP, Access, VFP, DB2 and many other databases. Conexión SQL Server 2008 y LDAP con PHP. Hola a todos, bienvenidos a este tutorial. Sé que este tema es muy visto por todos pero en mi caso fue un total caos para realizar una conexión a SQL Server y LDAP (Directorio Activo) con PHP.Fue una intensa búsqueda que me llevó a mucha confusión. Así que para que no busquen más, aquí tengo la solución a estos dos temas y que les puede ayudar en sus proyectos.Complementos a utilizar: XAMPP Versión 1.7.7 Descargar Librerías ADODB Descargar Clase sqlserver.inc.php Clase LDAPhp.class.php Clase LDAPhp.php Conexión DB SQL Server 2008 sin extensión .DLL y sin modificar el php.ini Una vez instalado su XAMPP en su equipo de desarrollo procederemos a crear nuestro proyecto.

Index.php Para conectarnos debemos descargar la librería adodb y cargarla en nuestro directorio local. Código : <? Sqlserver.inc.php Este archivo contiene la cadena de conexión y la llamada a la librería adodb <? Posibles errores: Error de usuario y contraseña, permisos de lectura y ejecución en archivo adodb.inc.php.

Cambio login.php. Display your Favorite Tweets using PHP and jQuery. Martin Angelov If you have a twitter account, you oftentimes find yourself looking for a way to display your latest tweets on your website or blog. This is pretty much a solved problem. There are jQuery plugins, PHP classes and tutorials that show you how to do this. However, what happens if you only want to display certain tweets, that you have explicitly marked to show? As minimalistic twitter’s feature set is, it does provide a solution to this problem – favorites. In this tutorial, we will be writing a PHP class that will fetch, cache, and display your favorite tweets in a beautiful CSS3 interface.

It will use Twitter’s v1.1 OAuth API and the Codebird library. Update (18 Jun, 2013): This tutorial originally used the discontinued Twitter v1 API, but was updated with the new, OAuth based one. You can see the markup of the page that we will be using as a foundation below. Index.php <! As for the generation of the tweets, we will be creating a PHP class that will handle it for us. jQuery Done. Documentation. How to Create an Advanced Twitter Widget. As of March 2011, the current average number of "Tweets" the world sends per day is 140 million.

This tutorial demonstrates how to create a custom Twitter widget from scratch that uses the Twitter API, Web Intents and @Anywhere. Using the Twitter platform to create a fun, interactive tool for your website can be beneficial both in the learning and promotion departments! A Few Pros and Cons Pros: Greater Customization than the default Twitter widget.Cache file prevents problems with Twitter API Rate Limiting and over capacity issues Cons: Requires Twitter oAuth if you want to incorporate the advanced functionality of @AnywhereSetting up a Cron Job can be tricky (there are many web hosting server configurations and control panels) Now, lets get started!

Step 1. This tutorial assumes that you have some CSS and HTML knowledge, and starts out with the basic markup and styling for the widget. The HTML The CSS The #content ID may need to be changed based on your theme and placement of the widget (Ex. Search results for "Building a Website with PHP, MySQL and jQuery Mobile" Building a Website with PHP,MySQL and jQuery Mobile, Part 2 By Martin Angelov | In the second part of this two-part tutorial, we will complete our MVC driven computer web store by writing the views and discussing jQuery mobile. Read more Building a Website with PHP,MySQL and jQuery Mobile, Part 1 This is the first of a two-part tutorial, in which we will be building a simple computer shop website with PHP, MySQL and jQuery Mobile using the Model-View-Controller (MVC) pattern. How To Create a Simple WordPress Blog Theme.

So far in this WordPress theme tutorial series we’ve put together a visual concept in Photoshop and coded up a working prototype in HTML and CSS. Now let’s take our static web page files and create a fully working WordPress theme by splitting up the code over the various template files and injecting the relevant WordPress PHP tags. The site we’re building is a WordPress theme called Ticket Stub. It’s based on the idea of movie review, but the clean layout and basic styling keeps it generic enough to be used for any topic. View the final WordPress theme demo A WordPress theme is made up of various PHP template files, each of which is called to render out a specific type of webpage.

The first step when creating any WordPress theme is to customise and set up the theme details in the style.css file. It makes sense to work from the top down, so open up your index.html prototype webpage and the header.php WordPress theme file. View the TicketStub theme demo. Obtener códigos y valores RGB en PHP. Este artículo es una copia de otro artículo original. El contenido de Cristalab es aportado por sus usuarios y tardamos en encontrar los plagios, los cuales NO aprobamos ni apoyamos. Si tienes la fuente original de este artículo, posteala en los comentarios Haciendo una de mis aplicaciones en PHP me surgió una necesidad: ¿Como obtener el código de un color partiendo de los valores ( ROJO, VERDE, AZUL), y también lo contrario, ¿ Cómo obtener de un código RGB los valores ( ROJO, VERDE, AZUL)?.

Por ejemplo: Caso 1 Si tengo: Rojo: 20, Verde: 74 Azul: 216; cómo hacer para imprimir #144AD8, que es su código Hexadecimal. Caso 2 Si tengo #D8B014, cómo hacer para imprimir: Rojo: 216, Verde: 176, Azul: 20Haciendo varias pruebas con la paleta de colores, desarrollé una función que soluciona este problema. ¿Cual es la utilidad? Teoría ¿Qué quiere decir esto? Los códigos de colores son Hexadecimales; es decir con base 16 entonces:0= 11= 12= 23= 34= 45= 56= 67= 78= 89= 9A= 10B= 11C= 12D= 13E= 14F= 15 <? Zend Framework from Scratch. Ready to take your PHP skills to the next level? In this new “From Scratch” series, we'll focus exclusively on Zend Framework, a full-stack PHP framework created by Zend Technologies. First in our tutorial series, is "Getting Started with Zend Framework.

" Zend Framework is a full-stack PHP framework created by Zend Technologies. For those who aren't familiar with the company, Zend Technologies provides web developers with various tools to help them in their work. Notable examples are Zend Server, a web application server for running and managing PHP applications, and Zend Studio, a full-featured IDE for PHP. Needless to say, Zend is very invested in PHP, which is why Zend Framework is a great tool to add to any developer's arsenal. Zend: The PHP Company Zend Framework is made up of many different libraries and classes. In this series of tutorials, we'll be diving into how Zend Framework works and learning how to use its different components. Zend Framework Download Now link P.S. Leer JSON con Javascript y PHP. En estos días he estado trabajando con la API de Vimeo para un par de proyectos, pero me encontré en la necesidad de tener que hacer el llamado directamente a un archivo JSON y entonces me puse a investigar qué es eso de JSON.

Anexo ejemplos directos del parseo de JSON con el ejemplo de la API de Vimeo, sin embargo, este tutorial no está enfocado a revisar el uso de la API. ¿Qué es JSON? Es el acrónimo de JavaScript Object Notation. Si conoces XML, se podría decir que es una alternativa a un sistema de envío y recepción de datos.El "parseo" o "parsear" es leer o administrar una base de datos o conjunto de texto.La estructura o sintaxis es de la siguiente manera: Código : El siguiente ejemplo de estructura está tomado de la API de Vimeo algo recortada: Parseo con Javascript La manera más fácil de pasear un JSON con javascript es a través de jQuery + Ajax con la función $.getJSON que es equivalente a: El cual se utiliza de la siguiente manera: Parseo con PHP.