background preloader

web development

Facebook Twitter

Introduction To SimpleXML With PHP. Introduction To SimpleXML With PHP By Kevin Waterson Contents Abstract XML creation and manipulation can be quite complex and so, PHP has provided several methods of handling XML. Each method has a varying degree of complexity, but perhaps the simplest of them all, is the appropriately named extension, SimpleXML This tutorial requires a fundamental understanding of XML structures. If you lack this, it is highly recommended brushing up on XML and how it can be used. Getting Started Perhaps the best place to begin, is with an XML file. <? This is an example of any XML file that may be found for user data in an address book, or contact list or other data source. Load an XML file Loading an XML file with simpleXML is achieved with a single function call to the simplexml_load_file() function. <? If( ! Similarly, if the XML data is in a string, rather than a file, the simplexml_load_string() function can be used in the same fashion.

<? If( ! Accessing Nodes Importing DOM echo $sxe->user[0]->surname; ? <?

Color

PHP / MySQL : comment résoudre les problèmes d’accents ? | Programmation Web. Introduction Le jeu de caractères est un point très important à connaître avant même d’écrire le premier bout de code d’un site web. Si vous négligez cette partie intégrante du développement, alors vous courrez à des risques d’incompatibilité qui se traduirons par l’apparition de caractères ressemblant à cela : é, . Nous allons voir dans cet article les points les plus importants à connaître pour partir du bon pied dans le développement de votre projet. Les jeux de caractères : courte explication Pour un ordinateur, les caractères ne signifient strictement rien. Il ne comprend que les nombres. Toutefois, les 128 caractères ne permettaient pas la gestion de la totalité des langues existantes. L’ISO 8859-15 permet d’écrire dans l’alphabet latin, c’est-à-dire en français, anglais, allemand, etc. Il faut savoir que l’ISO 8859-15 et l’UTF-8 ne sont pas compatibles, leur structure étant différente.

Procédure à suivre Les fichiers La première étape est d’écrire les fichiers en UTF-8. Le PHP MySQL. 5 Most Common Mistakes in Social Media. When my agency started doing social media audits three years ago, we weren’t exactly sure what to expect. What we soon discovered is that, big or small, B2B or B2C, many companies seem to be making the same mistakes, regardless of the department leading the charge. Here is a quick overview of the five most common mistakes we’re seeing, along with notes on how to correct these self-defeating faux pas. 1. The Wrong Metrics The most common metric mistake is emphasizing the number of fans you have over other markers, an approach that is symptomatic of a larger problem: viewing social as another mass medium through which branded content can be pushed. 2. Once the social media bug began to spread across companies, every line extension of a line extension wanted its own Facebook page or Twitter account and/or Pinterest board. 3.

In social settings, brands, like people, get really boring if they only talk about themselves. 4. 5. Authored by: Drew Neisser. Introduction aux CSS. Jus Website Template. For Publishers. Plugins. SlidesJS, a simple slideshow plugin for jQuery. .fadeIn. Description: Display the matched elements by fading them to opaque. The .fadeIn() method animates the opacity of the matched elements. It is similar to the .fadeTo() method but that method does not unhide the element and can specify the final opacity level. Durations are given in milliseconds; higher values indicate slower animations, not faster ones. The strings 'fast' and 'slow' can be supplied to indicate durations of 200 and 600 milliseconds, respectively. If any other string is supplied, or if the duration parameter is omitted, the default duration of 400 milliseconds is used.

We can animate any element, such as a simple image: Easing As of jQuery 1.4.3, an optional string naming an easing function may be used. Callback Function If supplied, the callback is fired once the animation is complete. jQuery API Documentation. Pythoneer » JavaScript: Remove element from Array. [UPDATE] Thanks to Joe and others hinting me to the danger of purely using indexOf() without a check for -1. Added it in the last example. I mean it’s not the first time I am doing it, but it happens always again that I have to look up how exactly it works. And every time I know it is very easy. So here is how to remove an element from an array, mainly for my poor brain, so it doesn’t have to remember anymore. Though I know, now that I wrote it down I will never forget it again. DON’T Unfortunately the most obvioous solution leaves a “hole” in the array :-(. >>> var list = [4,5,6]; >>> delete list[1]; true >>> list [4, undefined, 6] Sad, but understandable.

DO So do it right and use splice() . >>> var list = [4,5,6]; >>> list.splice(1, 1); // Remove one element, returns the removed ones. [5] >>> list [4, 6] Useful DO Actually, what I mostly need is: remove a certain value from an array. >>> var visibleIds = [4,5,6]; >>> var idx = visibleIds.indexOf(5); // Find the index >>> if(idx! Permalink. 9 Ways to Add LinkedIn to Your Company Website. Brian Honigman is a social media account manager at LunaMetrics, a Google Analytics certified partner that also specializes in social media, search engine optimization, and PPC. Follow him at @Brian_Honigman and read his blog at BrianHonigman.com.

Adding LinkedIn's social features to your company website is a great way to tap into both a large-scale recruitment platform and a targeted network of business contacts. Don't believe it? Well, according to a study conducted by Bullhorn, a web-based software and services firm, LinkedIn is the leading social network for job recruiting. Another study conducted by HubSpot, an inbound marketing company, showed that LinkedIn is 277% more effective at generating leads than Facebook and Twitter. If you're ready to get started, here are nine key plugins and examples. 1. Also, because LinkedIn's audience is business-centric, the LinkedIn Share button should be used much more sparingly than, say, the Facebook Like button. 2. 3. 4. 5. 6. 7. 8. 9.

Integrate linkedin api in your site. Now a days most popular host sites provide api so that we integrate in our site to create mash-up application. Linkedin recently published their own apis. So now we can integrate linkedin apis in our site. So why we should integrate linkedin api: Users can bring linkedin profile and network in your siteThere are 52 millions users in linkedin so you can engage them in your siteYou may create authentication through linkedin api so that user don’t need to register in your siteYou can search profile, connectionUsers can also update their status from your site using linkedin apisAnd many more… In this tutorial I’ll show how could you integrate linkedin api in your site, search a company name and get your profile info.

Before proceeding: Look at the LinkedIn APIs Terms of Use 1.visit and click Add New Application. Now fill the form. Integration Url would be your project url. oAuth Redirect Url would be the web page url. Now click Add Application. Aspirer un site avec wget. Ce n’est pas un sujet nouveau. Mais trouver de l’info sur le sujet n’est pas toujours aisé. Je demanderais aux gens qui voudraient aspirer les sites de faire attention, ceci peut mettre à genoux un serveur, donc il faut faire attention. Le but de l’aspiration est d’obtenir Off-Line des infos du web. Il est parfois plus sympathique de contacter le gestionnaire du site pour lui demander s’il peut donner les infos via un autre moyen (comme une extraction du contenu de ses pages). Cette manip ne marchera pas sur tous les serveurs web, car il existe des moyens de se protéger de l’aspiration (entre autre pour des raisons de BP). Voici une commande utile : wget -r -k -E -np Donc la cible est -r pour parcourir tous les liens du sites.

D’autre options utiles : -lX, où X est un entier, pour ne parcourir que X niveaux de l’arborescence du site. Les options pour ne pas pourir le serveur : Like this: J'aime chargement… Teste-2 | Wix.com. Comment socialiser votre site grâce à Facebook? Liste de mots du français. Zend Framework. Dans vos scripts de vue, il est souvent nécessaire d'effectuer certaines actions complexes encore et encore : par exemple, formater une date, générer des éléments de formulaire, afficher des liens d'action.

Vous pouvez utiliser des classes d'aide pour effectuer ce genre de tâches. Une aide est simplement une classe. Par exemple, nous voulons une aide nommée "foobar". Par défaut, la classe est préfixée avec "Zend_View_Helper_" (vous pouvez spécifier un préfixe personnalisé en paramétrant votre chemin d'aide), et le dernier segment du nom de classe est le nom de l'aide ; ce segment peut être avec des CaracteresMajuscules ; le nom complet de la classe est alors : Zend_View_Helper_FooBar .

Cette classe doit contenir au moins une méthode, nommée comme l'aide avec la notationCamel : fooBar() . Pour utiliser une aide dans votre script de vue, appelez la en utilisant $this->nomAide() . Fieldset($name, $content, $attribs) : crée un ensemble de champs XHTML . Devrait être un tableau. Null , <? <? <? How to Write a Batch File (with Examples) Note: In Linux, shell scripts are used instead of batch files. See this guide for details on writing shell scripts in Linux. 1Open Notepad. Notepad allows you to create code as a text file and then save it when you're done as a batch file. You can open Notepad by clicking Start → Programs → Accessories → Notepad. You can also enter notepad into the Run box.

<img alt="Image titled 4288 2" src=" width="728" height="546" class="whcdn">2Learn some basic batch commands. <img alt="Image titled 4288 8" src=" width="728" height="546" class="whcdn">8Save the file. Zend Framework.

Il y a deux modes d'utilisation de Zend_Layout : avec Zend Framework MVC, et sans. Scripts de layout Dans tous les cas, un script de layout est nécessaire. Les scripts de layout utilisent simplement Zend_View (ou une implémentation particulière personnalisée). Les variables de layout sont enregistrées dans le placeholder Layout, et peuvent être accédées via l'aide de vue placeholder ou directement en tant que propriétés de l'objet layout. Par exemple : <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Mon Site</title></head><body><?

Toutes les aides de vue enregistrées sont accessibles dans Zend_Layout car il utilise Zend_View pour son propre rendu. <! Utilisation de Zend_Layout avec le système MVC de Zend Framework Zend_Layout::startMvc() crée une instance de Zend_Layout avec des paramètres de configuration optionnels. <body> <! Zend Framework. Zend Framework inclue plusieurs aides d'action par défaut : AutoComplete pour des réponses automatiques à des auto-complétions AJAX ; ContextSwitch et AjaxContext pour distribuer des formats de réponse alternatifs pour vos actions ; FlashMessenger pour gérer des messages entre les sessions ; Json pour encoder et envoyer des réponses JSON ; Redirector, qui fournit différentes implémentations pour rediriger vers des pages internes ou externes à votre application ; et ViewRenderer pour automatiser le processus de paramétrage de vos objets de vues dans votre contrôleur et du rendu de ces vues.

AutoComplete Beaucoup de librairies javascript AJAX propose une fonctionnalité dite d'auto-complétion. Une liste de résultats possibles est chargée au fur et à mesure que l'utilisateur saisit. L'aide AutoComplete est destinée à simplifier le retour de ces valeurs vers la librairie Javascript. L'utilisation basique ressemble à ceci : Par défaut, l'auto-complétion : Les méthodes disponibles sont : <? JSON. Tutoriel Zend 1.11.11 avec NetBeans de Serge Lenglet. Utilisation d'un ORM : les bases de Doctrine - PHP - Base de données (PHP) Wp-content/uploads/Getting-Started-with-Zend-Framework.pdf. Edit this Fiddle. Zend Framework. Zend Framework Zend Framework is an open source, object oriented web application framework for PHP 5. Zend Framework is often called a 'component library', because it has many loosely coupled components that you can use more or less independently. But Zend Framework also provides an advanced Model-View-Controller (MVC) implementation that can be used to establish a basic structure for your Zend Framework applications.

This QuickStart will introduce you to some of Zend Framework's most commonly used components, including Zend_Controller, Zend_Layout, Zend_Config, Zend_Db, Zend_Db_Table, Zend_Registry, along with a few view helpers. Using these components, we will build a simple database-driven guest book application within minutes. The complete source code for this application is available in the following archives: Model-View-Controller So what exactly is this MVC pattern everyone keeps talking about, and why should you care? Welcome to the Doctrine Project — Doctrine-Project. Pagne africain Texicodi | Pagnes africains ->FasoBoutik : artisanat africain.