php

TwitterFacebook
Get flash to fully experience Pearltrees

Check Member's/ User's Online or Offline Status

Introduction The following piece of code will calculate the last visited time of a Member/User and calculate the time difference with the current time. And if the Member/User's last visited time is greater than 10 minutes then that will be considered OFFLINE status, otherwise ONLINE. Background http://www.codeproject.com/Tips/507296/Check-Members-Users-Online-or-Offline-Status

Accessing Incoming PUT Data from PHP

http://www.lornajane.net/posts/2008/accessing-incoming-put-data-from-php Recently I started writing a REST service. I began in the usual way, writing a php script, calling it with a GET request, accessing the variables using the PHP superglobal variable $_GET. I wrote code to handle a POST request and used the variables I found in $_POST. Then I tried to write a PUT request. PHP doesn't have a built-in way to do this, and at first I was a little confused as to how I could reach this information. It turns out that this can be read from the incoming stream to PHP, php://input .
http://net.tutsplus.com/tutorials/tools-and-tips/20-all-too-common-coding-pitfalls-for-beginners/ Regardless of our current skill level, we all were beginners at one point in time. Making classic beginner mistakes comes with the territory. Today, we’ve asked a variety of Nettuts+ staff authors to chime in with their list of pitfalls and solutions – in a variety of languages. Learn from our mistakes; don’t do these things!

20 All Too Common Coding Pitfalls For Beginners

PDO

login

formulaires

PHP Coding Guidelines | PHP Developer

These are the guidelines that I follow when writing my PHP scripts, unless a coding standard already exists for the project I’m working on. It can be helpful to have something like this if you’re working on a joint project. N.B. http://www.phpdeveloper.org.uk/articles/php-coding-guidelines/
Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the user-agent string combined with specific HTTP headers to detect the mobile environment. Download Latest stable version: https://github.com/serbanghita/Mobile-Detect/tags http://code.google.com/p/php-mobile-detect/

php-mobile-detect - PHP class for mobile device detection

http://phpmaster.com/working-with-files-in-php/

Working with Files in PHP

You may well be familiar with databases such as MySQL and Access which are an ever-increasingly common means of storing data. But data is also stored in files, like Word documents, event logs, spreadsheets, image files, and so on. Databases generally require a special query language to retrieve information, whereas files are ‘flat’ and usually appear as a stream of text.

s blog: PHP Sucks! But I Like It!

http://blog.ircmaxell.com/2012/04/php-sucks-but-i-like-it.html I read a rather interesting post yesterday called PHP: a fractal of bad design . It's been getting a lot of traffic among the PHP community lately because it's rather inflammatory. But to be honest, it does make a lot of really good points.

phpquery - phpQuery - jQuery port to PHP

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library . Library is written in PHP5 and provides additional Command Line Interface (CLI). PEAR installation pear channel - discover phpquery - pear . appspot . com pear install phpquery / phpQuery GitHub Fork & pull request: github.com/TobiaszCudnik/phpquery . http://code.google.com/p/phpquery/
This is a tiny tool that allows you to launch the built in PHP 5.4 HTTP test server with a few clicks. It allows you to select which PHP binary you want to use (in case you have multiple on your system) and the document root of the test server. Click the picture for a larger screenshot of the application running. Keep in mind PHP-GTK 2 does not currently support PHP 5.4. http://php-gtk.eu/en/apps/pewpew-phps-embedded-webserver

pewpew - PHP's Embedded Webserver | PHP-GTK Community

Grocery Crud - Un générateur de CRUD basé sur CodeIgniter

Grocery Crud est un générateur de CRUD PHP basé sur le framework CodeIgniter. Dans vos applications web et en particulier dans vos espaces d'administration, vous répétez toujours les mêmes tâches à savoir: Créer une fonction de listing, de création d'une nouvelle entrée, la fonction de modification et celle de suppression. En d'autres terme, créer un CRUD (Create Read Update Delete). http://www.lafermeduweb.net/billet/grocery-crud-un-generateur-de-crud-base-sur-codeigniter-1315.html

PHP Bug Lost - Déboguer et monitorer vos applications

Comme le Profiler de Symfony2, PHP Bug Lost permet d'ajouter une console de débug et de monitoring sur ses sites à partir d'un seul fichier. En ajoutant ce script, vous pourrez monitorer et déboguer plus facilement vos applications en regroupant toutes les informations essentielles en bas de page, à la manière du profiler de Sf2 ou de Firebug. Ainsi en mode console de déboguage, vous pourrez visualiser les variables instanciées sur votre page, visualiser les requêtes SQL, gérer la gestion de message (erreur, warning, message), le temps d'exécution des pages, etc.

Gérer l’envoi de SMS en PHP : TextMagic vous aide

Gérer l’envoi de SMS en PHP : TextMagic vous aide Avez-vous déjà remplacé l’envoi d’un mail par un SMS ? En effet, tout comme de nombreux sites le proposent désormais, envoyer un notification par un message texte, autrement dit un SMS , au lieu d’une notifications par courrier électronique, autrement dit un mail, peut être très utile dans le cas d’informations sensibles, ou urgentes. Après quelques fouilles sur le Web, j’ai retenu quelques solutions , dont il est très simple de mettre en place. En tout cas pas plus difficile que d’envoyer un mail… Laissez-moi vous montrer comment ! À mon insu, l’envoi de SMS peut être très facile puisqu’il vous suffit d’envoyer un mai l… En effet, vous pouvez envoyer votre texte à une adresse e-mail et il sera délivré au numéro que vous avez spécifié.

Creating a Secure Login System the Right Way | Tinsology

Making a custom login system is a common task for beginning PHP developers. Jumping right into it, however, may not be the best approach. There are several important aspects to building a login system that not only makes it work, but makes it safe. Updated on December 15th 2009: Added Session Control Section Updated on December 15th 2010: Switched to sha256

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 . They provide an easy API which allow you to send SMS to cell phones. Please note that the TextMagic service isn’t free.
When Rasmus Lerdorf first put PHP together, he - quite sensibly, despite his heritage - chose not to write it in Greenlandic or Danish. Good job too - that would have been rather unpleasant to work with. He opted instead, being in Canada at the time, for the local tongue. No, not French - that bastard dialect of the Queen's English commonly referred to as "US English" 1 .

If PHP Were British