background preloader

Php

Facebook Twitter

Ajbdev/cronlingo: Express crontabs as human... - GitHub. Symfony. Symphony. The MVC Pattern and PHP, Part 1. The Model-View-Control (MVC) pattern, originally formulated in the late 1970s, is a software architecture pattern built on the basis of keeping the presentation of data separate from the methods that interact with the data.

The MVC Pattern and PHP, Part 1

In theory, a well-developed MVC system should allow a front-end developer and a back-end developer to work on the same system without interfering, sharing, or editing files either party is working on. Even though MVC was originally designed for personal computing, it has been adapted and is widely used by web developers due to its emphasis on separation of concerns, and thus indirectly, reusable code.

The pattern encourages the development of modular systems, allowing developers to quickly update, add, or even remove functionality. In this article, I will go the basic principles of MVC, a run through the definition of the pattern and a quick example of MVC in PHP. Understanding MVC Model View Furthermore, the description of Views as a template file is inaccurate. SCRIPT CORRECTEUR DE PONCTUATION correcteur, correction, ponctuation, php, regex, Source N°54587 PHP.

PHP: The Right Way. There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code.

PHP: The Right Way

PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time. There is no canonical way to use PHP. This website aims to introduce new PHP developers to some topics which they may not discover until it is too late, and aims to give seasoned pros some fresh ideas on those topics they’ve been doing for years without ever reconsidering. This website will also not tell you which tools to use, but instead offer suggestions for multiple options, when possible explaining the differences in approach and use-case. This is a living document and will continue to be updated with more helpful information and examples as they become available.

Translations.

Image / GD

Une nouvelle étude sur l'état d'adoption de PHP en entreprise. 60% des sociétés utilise des applications PHP pour gérer des processus métiers critiques Cupertino, Californie – 12 juin 2012 - Zend, the PHP Company, et UBM TechWeb viennent d’annoncer la sortie de l’étude “L’état de PHP en entreprise », la première étude significative auprès des décideurs informatiques qui mesure l’usage du langage PHP pour la création d’applications dans les grandes entreprises.

Une nouvelle étude sur l'état d'adoption de PHP en entreprise

Gérée par UBM TechWeb, un média de référence dans le domaine de l’économie IT, cette étude porte sur la façon dont les décideurs de haut niveau utilisent ou vont utiliser PHP. Les résultats sont résumés dans un rapport disponible gratuitement sur www.zend.com/enterprise Faits marquants L’étude révèle que PHP est largement utilisé pour développer et gérer diverses applications critiques.

(x)debug

Instant CRUD Interfaces With PHP (CodeIgniter): GroceryCrud. For data-driven web applications, we usually create an admin interface for managing this data where many parts of it are actually about listing records within a grid.

Instant CRUD Interfaces With PHP (CodeIgniter): GroceryCrud

GroceryCrud is a CodeIgniter-powered resource that can auto-generate a fully-functional create/read/update/delete interface very quickly. Once it is integrated into a CodeIgniter installation, a new grid with CRUD features can be created with only a few lines of code and it can have pagination, sorting + search, all with Ajax. The generated data-entry forms can have both server-side and client-side validation where custom rules can be integrated easily. It is possible to only use the desired columns and there are callbacks almost everywhere for further customizations.

Autoload

File & uploads. Free PHP Script, Project, Software, Tip & Tutorial on PHPKode.com. 10 super useful PHP snippets you probably haven’t seen. Text messaging with PHP using the TextMagic API If for some reason, you need to send text messages to your clients cell phones, you should definitely have a look to TextMagic.

10 super useful PHP snippets you probably haven’t seen

They provide an easy API which allow you to send SMS to cell phones. Please note that the TextMagic service isn’t free. The example below shows how easy it is to send a SMS to a cell phone using the TextMagic API: // Include the TextMagic PHP lib require('textmagic-sms-api-php/TextMagicAPI.php'); // Set the username and password information $username = 'myusername'; $password = 'mypassword'; // Create a new instance of TM $router = new TextMagicAPI(array( 'username' => $username, 'password' => $password )); // Send a text message to '999-123-4567' $result = $router->send('Wake up! ' Source: Detect location by IP Here is an useful code snippet to detect the location of a specific IP. Source: Display source code of any webpage Want to be able to display the source code of any webpage, with line numbering?

Source:

Security

API. SSH. Les flashcodes, comment les générer automatiquement et facilement avec PHP. Posté le 21 mars 2011 dans Développement web , par Abdelhak - Caroline nous expliquait dans un précédent article ce qu’est un flashcode, comment ces codes sont utilisés, etc.

Les flashcodes, comment les générer automatiquement et facilement avec PHP

Push Iphone.