Merveilles du web 2.0

13 juillet 2008

PRADO QuickStart Sample

Classé dans : php — Rémi SOUBEYRAND @ 22:32

TActivePager Sample

The following sample displays three different pagers associated with a single TDataList control. The datalist control is enabled with custom paging, which allows it to read only one page of data each time. This is typical in DB-driven applications.

Go to page: 1 2 3 > >> Please Wait…
Computer Parts


ID Name Quantity Price
ITN001 Motherboard 1 $100


ID Name Quantity Price
ITN002 CPU 1 $150

Total 10 pages.

9 3 4 :
Choose page: 1 2 3 4 5 6 7 8 9 10

Press ALT-J (Or CTRL-J on OS X) to toggle the javascript log console. (more info).

PRADO QuickStart Sample

Blogged with the Flock Browser

Demos

Classé dans : php — Rémi SOUBEYRAND @ 22:30

Online Demos

The following demos are developed using the PRADO framework. They are also available under the demos directory in the PRADO release.

  • Hello World: This is perhaps the smallest interactive PRADO application that you can build. It may serve as a good start for building your own applications based on PRADO.
  • Component Composer: This demo is an practical application that can be used to help you quickly write up a PRADO component.
  • Personal Website: This demo can be served as the starting point to develop a multi-page Web application. It also shows how to support user login in a PRADO application.
  • Quickstart tutorial demo: This demo is meant to help you learn PRADO. It contains tens of sub-demos showing various Web controls included in the PRADO release.
  • PRADO Blog: This is a complete weblog system with user management, post management and configuration management.
  • Currency Converter: A small tutorial example demonstrating the basic use of validator and AJAX controls.
  • SOAP Service: This demo is a quick setup of a SOAP server and client.
  • AJAX Chat: A easy to build web chat application using AJAX controls and Active Records for database access (see tutorial).
  • Time Tracker: A complete personal project time tracker application using SQLMap for data access.
  • Address Book: A PRADO-driven Flex application. This is a perfect demo showing how PRADO can work together with Flex to build a Rich Internet Application (RIA).

PRADO VMWare Image

PRADO VMWare Image includes everything needed to try PRADO on a virtual machine. Get a VMWare Player (free), load the PRADO VMWare Image and start the enjoy the fun of PRADO! Note: The login credentials are admin/admin for all areas that requires authentication (e.g. server login, database, cache).

Demos

Blogged with the Flock Browser

Tags:

21 mars 2008

BREEK.FR : site e-commerce souple et évolutif avec Drupal et Ubercart » Breek

Classé dans : Design, drupal, php — Rémi SOUBEYRAND @ 15:14

VU SUR BREEK.FR : Naturalglam - site e-commerce souple et évolutif avec Drupal et Ubercart

Besoin

Créer un site de e-commerce souple et évolutif, dans un délais court mais sans sacrifier la qualité.

Rôle

Conception ergonomique et graphique, choix d’outil, installation et paramétrage de Drupal et d’Ubercart, développement de modules sur mesures, documentation, formation, optimisation et référencement.

Solution

Notre équipe à fourni une prestation clé en main de la lecture du cahier des charges à la mise en ligne (choix de (l’hebergeur, de l’outil, paramétrage, dialogue avec la banque, saisie initiale…). Ainsi, notre client a pu se concentrer sur les dizaines d’autres tâches liées à la création de son site.

Au final, naturalglam.com repose sur Drupal et Ubercart ainsi qu’une quinzaines de modules dont certains développés sur mesures. Cette solution apporte une très grande souplesse (extention du type de contenu, ajout de fonctionnalités, etc.) et offre tous les services de base nécessaires à l’acquisition et la fidélisation de clients :

  • envoyer à un ami,
  • parrainage,
  • couponing,
  • carte de fidélité,
  • réductions basées sur des règles commerciales (frais de port offerts au-delà de 69 euros d’achat, etc.),
  • cross selling
  • newsletter,
  • etc.

Le site joue sur une approche web 2.0 pour renforcer sa relation avec les clientes. Ces derrières peuvent donner leur avis sur les produits, se tenir informer en temps réel via les flux RSS, etc. Elles pourront même, à terme, noter les produits.

Le projet, de son initialisation à la mise en production, aura duré moins d’un mois même si des réglages ont eu lieu quelques jours après la mise en ligne. « C’est très court quand on sait que ce délais comprend le brief, la cinématique, les pistes graphiques, la structuration du catalogue, l’installation et le paramétrage, le développement de quelques modules spécifiques, la rédaction et la saisie initiales, l’intégration au système de paiement, la documentation, la recette, la mise en production, etc. » précise Stéphane Bordage, responsable du projet chez Breek.

www.naturalglam.com

site e-commerce souple et évolutif avec Drupal et Ubercart » Breek

Blogged with the Flock Browser

BREEK.FR : e-commerce sous Drupal, les modules indispensables » Breek

Classé dans : drupal, php, site web — Rémi SOUBEYRAND @ 15:10

BREEK.F : Comment faire un site marchand sous Drupal ?

Comment réaliser un site e-commerce avec Drupal ? Nous vous proposons une liste des modules que nous utilisons en production sur la boutique Natural Glam.

Gestion de contenu

  • Clone module 5.x-2.0
  • IMCE 5.x-1.0
  • Localization client 5.x-1.0
  • Meta tags 5.x-1.5
  • Page Title 5.x-2.0
  • SimpleMenu 5.x-4.0
  • Simplenews 5.x-1.1
  • Simplenews Template 5.x-1.1
  • Site map 5.x-1.1
  • Taxonomy Image 5.x-1.0
  • TinyMCE 5.x-1.9
  • Token 5.x-1.9
  • uBrowser 5.x-1.2
  • CCK 5.x-1.6-1
  • Node Reference 5.x-1.6-1
  • Views 5.x-1.6
  • XML Sitemap 5.x-1.3

Interface & intéraction utilisateur

  • jQuery Update 5.x-1.x
  • Fivestar 5.x-1.8
  • Voting API 5.x-1.5
  • Comment
  • Custom Breadcrumbs 5.x-1.2

Utilitaires

  • Google Analytics 5.x-1.3
  • Pathauto 5.x-2.0
  • Poormanscron 5.x-1.1
  • Tables API 5.x-1.4
  • Imagecache 5.x-1.x
  • Mime Mail 5.x-1.x

Solution e-commerce (basé sur Übercart)

  • Cart 5.x-1.0-alpha8
  • Order 5.x-1.0-alpha8
  • Product 5.x-1.0-alpha8
  • Store 5.x-1.0-alpha8
  • Inventory API 1.10
  • Simple Stock Levels 1.4
  • Ubercart Simple Stats 5.x-0.4
  • Attribute 5.x-1.0
  • Catalog 5.x-1.0
  • Notify 5.x-1.0-alpha8
  • Payment 5.x-1.0-alpha8
  • Shipping Quotes 5.x-1.0-alpha8
  • Roles 5.x-1.0-alpha8
  • Shipping 5.x-1.0-alpha8
  • Taxes 5.x-1.0-alpha8
  • Value Added Tax price alter
  • Multi-Product
  • Order Total
  • Cart Links 5.x-1.0-alpha8
  • Google Analytics for Ubercart
  • Importer 5.x-1.0-alpha8
  • Manufacturer 5.x-1.0-alpha8
  • Product Kit 5.x-1.0-alpha8
  • Repeater 5.x-1.0-alpha8
  • Terms and Conditions
  • Flatrate 5.x-1.0-alpha8
  • Regions 1.0
  • UPS 5.x-1.0-alpha8
  • World quote 1.0
  • SIPS/ATOS Payment system 5.x-1.0
  • Store Coupons 5.x-1.5
  • Userpoints 5.x-2.14
  • Workflow-ng 5.x-1.3

Développement de modules spécifiques BREEK.FR

  • Gestion de parrainage (Parrainage)
  • Extraction des étiquettes pour Colissimo & UPS (Etiquettes)
  • Envoyer à un ami (Spread)

BREEK reversera très bientôt ses modules à la commaunuté.

Cette liste est basé sur la dernière version stable de Drupal 5.

e-commerce sous Drupal, les modules indispensables » Breek

Blogged with the Flock Browser

Charts | drupal.org | version 6

Classé dans : php — Rémi SOUBEYRAND @ 9:29

Transform Data into Information. Charts is a very good way to highlight important things.

Features:

  1. Data Schema: with one single data structure, you will be able to use several chart services
  2. 3 Chart plugins: out of the box, you will can choose among Google Chart, Open Flash Chart and FusionCharts
  3. Dozen Chart Types: lines, area, bars, pies, plotting and some 3D options
  4. Administration: administer Drupal core with beautiful charts
  5. CCK and Views: you will be able to include charts on all kinds of nodes
  6. API: integrate your own module
  7. Code Compliance: PHP E_ALL, Drupal code compliance, XHTML Strict, CSS valid code

With the same input, you will be able to use 3 different types of Charting Services:

  • Google Chart: they are plain images, simple and effective
  • Open Flash Chart: nice flash option, free to use (flash files not included)
  • FusionCharts: full feature flash charts with a small ad on it (flash files not included)

Want to integrate your module, making it much more nice and feature rich? See the Charts manual here on Drupal handbooks.

Charts | drupal.org

Blogged with the Flock Browser

Tags: , ,

10 mars 2008

Propel - Trac

Classé dans : php — Rémi SOUBEYRAND @ 14:02

Propel Website!

This is the website of the Propel PHP project. Propel is an Object-Relational Mapping (ORM) framework for PHP5. It allows you to access your database using a set of objects, providing a simple API for storing and retrieving data.

Propel allows you, the web application developer, to work with databases in the same way you work with other classes and objects in PHP.

  • You don’t have to worry about database connections or writing SQL — unless you want to.
  • You never have to worry about escaping data or type-casting results.
  • You define your database in a simple XML format (or tell Propel to build it from an existing database) and Propel will create database initialization files for your database and will generate static classes and objects that provide an OO interface to your database. (It can generate other useful things based on the datamodel too!)
  • Propel builds classes which are aware of the structure of your database so there’s no performance lost to initialization or to on-the-fly database metadata queries.

Most web application database tasks are really simple — and with Propel they’ll actually feel as simple as they are. Finally, extensibility is at the heart of Propel’s design; we expect you to want to change and customize things.

Read Why Propel? to learn more about how Propel can make life easier — or see the Documentation if you’re ready to get started using Propel.

Propel - Trac

Blogged with Flock

Tags:

7 mars 2008

Nexen.net : portail PHP et MySQL - ExtJS pour PHP : ExtPHP, ou PHP-Ext?

Classé dans : ExtJS, php — Rémi SOUBEYRAND @ 21:32
Image pour le titre du contenu
Sur le site Ajaxian, on découvre 2 interfaces PHP pour extJS. ExtJS est un framework Javascript, qui permet de produire nombre de widget utiles : onglets, fenêtres d’outils, arbres, grilles, formulaires, etc. ExtJS est écrit en JavaScript, et les bibliothèques ExtPHP et PHP-Ext (notez la variété de noms…) permettent de produire les instructions JS en notation objet PHP.

J’ai découvert ExtJS ce matin, et la bibliothèque à l’air particulièrement utile et efficace. Les bibliothèques PHP se présentent à point pour faire le relais depuis du code PHP vers cette bibliothèque. A suivre…

Nexen.net : portail PHP et MySQL - ExtJS pour PHP : ExtPHP, ou PHP-Ext?

Blogged with the Flock Browser

Tags: ,

To ExtPHP, or to PHP-Ext?

Classé dans : ExtJS, php — Rémi SOUBEYRAND @ 21:32

To ExtPHP, or to PHP-Ext?

Category: JavaScript, PHP, Ext

I got emails on the same day from two developers letting me know about ExtJS wrappers for PHP.

PHP-Ext

First, Sergei Walter Guerra told me about PHP-Ext “an open source widget library written for PHP 4 and 5 to empower the UI Layer.”

Blogged with the Flock Browser

Tags: ,

5 mars 2008

PHP: header - pdf document

Classé dans : php — Rémi SOUBEYRAND @ 14:13

I just lost six hours of my life trying to use the following method to send a PDF file via PHP to Internet Explorer 6:

<?php
header
(‘Content-type: application/pdf’);
header(‘Content-Disposition: attachment; filename=”downloaded.pdf”‘);
readfile(‘original.pdf’);
?>

When using SSL, Internet Explorer will prompt with the Open / Save dialog, but then says “The file is currently unavailable or cannot be found.  Please try again later.”  After much searching I became aware of the following MSKB Article titled “Internet Explorer file downloads over SSL do not work with the cache control headers” (KBID: 32330 8)
PHP.INI by default uses a setting: session.cache_limiter = nocache which modifies Content-Cache and Pragma headers to include “nocache” options.  You can eliminate the IE error by changing “nocache” to “public” or “private” in PHP.INI — This will change the Content-Cache header as well as completely remove the Pragma header.  If you cannot or do not want to modify PHP.INI for a site-wide fix, you can send the following two headers to overwrite defaults:

<?php
header
(‘Cache-Control: maxage=3600′); //Adjust maxage appropriately
header(‘Pragma: public’);
?>

You will still need to set the content headers as listed above for this to work.  Please note this problem ONLY effects Internet Explorer, while Firefox does not exhibit this flawed behavior.

PHP: header - Manual

Blogged with Flock

Tags: , ,

28 février 2008

12 frameworks PHP

Classé dans : php — Rémi SOUBEYRAND @ 11:55

article un peu vieux mais sympa : 12 frameworks PHP

Un bon framework ? Rapide à apprendre, à intégrer - donc intuitif -, d’une maintenance aisée, stable et si possible extensible. Panorama.
13/03/2006
  Forum

Réagissez dans les forums de JDN Développeurs

Malgré les efforts placés dans PEAR et PECL, PHP ne dispose pas (encore ?) d’un framework qui fasse l’unanimité. Le langage dispose en revanche d’une multitude de candidats, souvent incompatibles.

OAS_AD(’x06′);
L’essor du langage Ruby, aidé par l’excellent framework Web Rails (lire notre article du 06/03/06), a inspiré nombre de ces projets, qui ont adopté son approche Modèle-Vue-Contrôleur (MVC), et vont parfois même jusqu’à tenter de répliquer les fonctionnalités de Rails en PHP. D’autres suivent la voix tracée par Struts ou Cocoa.

Dans tous les cas, l’objectif premier est de mettre à disposition les outils adéquats. Disons-le tout de suite : aucun framework PHP ne peut à ce jour répondre aux attentes de tous les développeurs, mais nous avons sélectionné ici 10 bons compromis. Précisons qu’il n’est pas question ici de CMS ou d’API.

12 frameworks PHP

Blogged with Flock

Tags: ,

19 février 2008

CMS : la version 6.0 de Drupal est arrivée Actualite — vnunet.fr —

Classé dans : drupal, php — Rémi SOUBEYRAND @ 20:49

A LIRE : CMS : la version 6.0 de Drupal est arrivée

“La dernière mouture de ce système de gestion de contenus en open source est disponible en téléchargement. En anglais, pour l’instant.

Impatiemment attendue par certains webmasters, la version 6.0 de Drupal vient de sortir dans les bacs, quelques semaines seulement après la sortie de Joomla 1.5, l’un des principaux rivaux de ce moteur de gestion de contenus en open source aux cotés d’autres outils comme PHP Nuke, eZ Publish, Mambo ou Spip. ….”

CMS : la version 6.0 de Drupal est arrivée Actualite — vnunet.fr — Christophe Dutheil 15-02-2008

Blogged with Flock

Tags: , ,

1600 raisons de passer à Drupal 6 (TOOLinux)

Classé dans : drupal, php — Rémi SOUBEYRAND @ 8:47

A LIRE : 1600 raisons de passer à Drupal 6

“Un de développement plus tard, voici Drupal 6. 1600 nouveautés, corrections et améliorations confondues, viennent garnir l’un des CMS libres les plus en vogue.” …

1600 raisons de passer à Drupal 6 (TOOLinux)

Blogged with Flock

Tags: ,

14 février 2008

Php Inside 2.4

Classé dans : php — Rémi SOUBEYRAND @ 11:35

A quoi sert Php Inside 2.4 ?

“Php Inside 2.4 est un mini navigateur. Par ses options, il vous permet d’accéder à votre site (intranet, internet, ou local) dans une fenêtre personnalisable (restriction de navigation, apparence, envoi de variable, etc…). Vous avez également la possibilité de lancer et fermer EasyPHP en même temps que le programme lui-même. Php Inside met en valeur vos créations web dynamiques.”

Découvrez Php Inside 2.4

Blogged with Flock

Tags:

A RELIRE POUR METTRE DES RESUMES : 01net. - PHP 5 : l’alternative à Java EE et.NET ?

Classé dans : php — Rémi SOUBEYRAND @ 9:31

A RELIRE POUR METTRE DES RESUMES : PHP 5 : l’alternative à Java EE et.NET ?Grâce à un modèle objet abouti, PHP 5 remplace de plus en plus souvent Java EE pour le développement d’applications critiques basées sur des architectures web.

01net. - PHP 5 : l’alternative à Java EE et.NET ?

Blogged with Flock

Tags: ,

Le Guide php : librairie PHP, bibliothèque PHP, briques logicielles pour PHP

Classé dans : php — Rémi SOUBEYRAND @ 9:24

A consulter : Le Guide PHP : l’annuaire des meilleurs briques logicielles pour PHP

“Une des grandes forces de la plate-forme PHP réside dans la multitude et diversité des applications existantes. La difficulté pour l’utilisateur non averti va consister à trouver la bonne.
Nous vous proposons ici deux guides”

Les critères de notation

“Les applications et bibliothèques sont notés sur dix. Cette note découle d’une analyse basée sur les critères de selections suivants”

  1. Utilité
  2. Ergonomie
  3. Documentation
  4. Communauté de support
  5. Exploitation / Robustesse
  6. Qualité du code
  7. Pérennité

Le Guide php : librairie PHP, bibliothèque PHP, briques logicielles pour PHP

Blogged with Flock

Tags: , ,

Livre Blanc "PHP en entreprise” par l’ Association Française des Utilisateurs de PHP

Classé dans : php — Rémi SOUBEYRAND @ 9:12
A LIRE : le Livre Blanc “PHP en entreprise”
EXTRAIT SITE INTERNET : “L’Association Française des Utilisateurs de PHP (www.afup.org) publie la quatrième édition de son livre blanc « PHP en entreprise ». Rédigé par des experts de PHP, ce document fournit aux entreprises une information synthétique sur PHP 5 et son écosystème.

Ce livre blanc s’adresse aux développeurs, chefs de projets, décideurs et architectes qui souhaitent répondre aux questions suivantes :
- la plate-forme PHP rivalise-t-elle avec .NET et J2EE ?
- Quelle est son architecture technique ?
- Combien d’entreprises l’utilisent-elle ?
- Peut-on développer des services web et des applications client serveur avec PHP ?
- Est-il possible d’interfacer SAP et Lotus Notes avec PHP ?
- Quels sont les projets critiques qui recourent à cette technologie ?
- etc.

Chiffres clés (25 études Forrester, Gartner, etc. compilées), schémas techniques (2), captures d’écrans (8), exemples de code (6), témoignages d’entreprises (15) : tous les éléments sont réunis pour faire de ce livre blanc un véritable outil de travail.

Sommaire :
- Fiche d’identité de PHP
- PHP en chiffres
- Les atouts de PHP pour l’entreprise
- Architecture technique
- Une plate-forme qui s’ouvre aux problématiques d’intégration.
- PHP, J2EE et .NET : plus complémentaires que concurrents
- L’écosystème PHP
- Ce qu’en pensent les entreprises”

Livre Blanc “PHP en entreprise” par l’ Association Française des Utilisateurs de PHP

Blogged with Flock

Tags: ,

Chez Xavier - Votre blog sous Symfony, pas à pas

Classé dans : php — Rémi SOUBEYRAND @ 9:08
A lire : Votre blog sous Symfony, pas à pas …

Extrait : “Cet article s’adresse aux développeurs Web disposant des connaissances basiques en PHP, gestion de bases de données, et plus généralement d’une culture en développement Web. Il présente les différentes étapes nécessaires à la construction d’un blog à l’aide du Framework Symfony. Ce guide, spécialement adapté aux utilisateurs de Linux et plus particulièrement d’Ubuntu, présente successivement l’installation d’Apache2, PHP5, MySQL, et de Symfony, puis explique en détail les différentes étapes du développement d’un weblog. Les fonctionnalités avancées comme la possibilité de rédiger des commentaires ou de permettre des trackbacks, ne seront pas abordées dans ce tutoriel d’initiation.”

Chez Xavier - Votre blog sous Symfony, pas à pas

Blogged with Flock

Tags: ,

12 février 2008

Profiling PHP with Xdebug and WINCacheGrind

Classé dans : php — Rémi SOUBEYRAND @ 18:28

Profiling PHP with Xdebug and WINCacheGrind

Ok..so this is really short, no BS tutorial, on how to profile your PHP application under windows

Step 1
Download windows modules for your version of PHP from http://www.xdebug.org/

Step 2
Write this lines at your php.ini file

zend_extension_ts=”c:/wamp/php/ext/php_xdebugXXXXXXX.dll”
; general settings
xdebug.auto_trace=0
xdebug.collect_includes=1
xdebug.collect_params=1
xdebug.collect_return=0
xdebug.default_enable=1
xdebug.extended_info=1
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.max_nesting_level=100
xdebug.trace_format=0
xdebug.trace_output_dir=”c:/XXXXXXXX/”
xdebug.trace_options=0
xdebug.trace_output_name=timestamp; debugger settings
xdebug.remote_autostart=0
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_mode=req
xdebug.remote_port=9000

; profiler settings
xdebug.profiler_append=1
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=”c:/XXXXXX/”

now, important stuff
replace XXXX’s in line
zend_extension_ts=”c:/wamp/php/ext/php_xdebugXXXXXXX.dll”
with name of Windows module from step 1

Also instead of c:/XXXXXX/ write path where you want to keep profiling and debug files.

Step 3
Save your php.ini and restart your web server, start your local script and cachegrind files should appear in directory from step 2

Important notice, when you debug or profile large scripts (forums, blogs, etc) profiler writes a lots of data, so be careful to have enough free space, and check constantly

Step 4
When you are done,refer to step 2 and change line
xdebug.profiler_enable=1
into:
xdebug.profiler_enable=0 , and restart Apache again.
This will stop profiling process, and every time you wish to start profiling you must change it back to 1, and restart Apache.

Step 5
Download win cachegrind from http://sourceforge.net/projects/wincachegrind/
install, and set working directory to the same direcotry as in step 2, load your files and enjoy.

Now fun part begins, you should search for functions that takes most of your execution time, and try to optimize that code…

Few general advices for fast application are:
-As less includes as possible.
-Avoid too many database connections, try to use JOINS in your SQL query to get most meaningful data.
-Avoid array sort and count inside loops.
-when ever possible use caching of database data.

Blogged with Flock

Tags: , ,

Publié sur WordPress.