background preloader

PHP

Facebook Twitter

Easy IP to country lookup. 'MySQLi' for Beginners. Introduction Nearly every site that you visit nowadays has some sort of database storage in place, many sites opt to use MySQL databases when using PHP.

'MySQLi' for Beginners

However, many people haven't yet taken the step to interacting with databases properly in PHP. How To: Use Facebook Registration Plugin As Your Registration System. Why reading this tutorial.

How To: Use Facebook Registration Plugin As Your Registration System

A Guide to Cryptography in PHP. N an ideal world, words like cryptography and security wouldn't even exist, but the real world is far from perfect, so software developers have to spend a good deal of time building security into applications.

A Guide to Cryptography in PHP

Cryptography is just one piece of the security puzzle, along with SSL/TLS, certificates, digital signatures, and so on. PHP Session-Based Flash Messages. As a web developer, you will no doubt have the need to display feedback to your users.

PHP Session-Based Flash Messages

There are several times when giving your users feedback is critical — When the user has submitted a form, entered incorrect login details, etc. In the past, a common way of handling feedback like this was to append the data to the URL: This method is not efficient for many reasons. Accessory in file upload. By admin at 25 July, 2008, 10:33 am Before allowing to upload file, you make like your users to check and secure the file.You may like to check extension and allow particular file (eg.image file only), check size, and others.So, I am listing some accessory which you may wish to have. [ function checking extension of the file ]

Accessory in file upload

Http - Asynchronous PHP calls. Secure PHP configuration for your website, step by step. Retrieve Your Gmail Emails Using PHP and IMAP. Grabbing emails from your Gmail account using PHP is probably easier than you think.

Retrieve Your Gmail Emails Using PHP and IMAP

Armed with PHP and its IMAP extension, you can retrieve emails from your Gmail account in no time! Just for fun, I'll be using the MooTools Fx.Accordion plugin to display each email. The CSS Some simple CSS formatting. The MooTools JavaScript window.addEvent('domready',function() { var togglers = $$('div.toggler'); if(togglers.length) var gmail = new Fx.Accordion(togglers,$$('div.body')); togglers.addEvent('click',function() { this.addClass('read').removeClass('unread'); }); togglers[0].fireEvent('click');}); Some simple accordion code.

The PHP With our individual username/password settings set, we connect to Gmail. Displaying Recent Stumbles (From StumbleUpon) - Full On Design. <?

Displaying Recent Stumbles (From StumbleUpon) - Full On Design

Php # File created on 3rd April 2009 by Mike Rogers ( function – recent_stumbles(string $username [, string $type= NULL [, int $limit = 5]]) Easy Ways to Sort Arrays in PHP. Tutorial by Matt Doyle | Level: Beginner | Published on 16 August 2010 Categories: Learn how to sort arrays quickly and simply in PHP.

Easy Ways to Sort Arrays in PHP

Speed Makes All The Difference. Ten PHP Best Practices Tips that will get you a job. Posted by blake on Jun 4, 2008 in Code, Performance, PHP | 167 comments The last couple of weeks have been quite the experience for me.

Ten PHP Best Practices Tips that will get you a job

I was part of a big layoff at my former company, which was interesting. I've never been in that position before, and it's hard not to take it personally. I started watching the job boards, and a nice-looking full-time PHP position caught my eye, so I sent out a resume and landed an interview. Before the face-to-face portion, I chatted with the owner and head programmer on a conference call, and they ended up sending me a technical assessment quiz. Find the errors in the following code: So, give it a shot. If you got the missing comma in the parameter list, the "new Array()" error, the colon instead of a semi-colon, the '=' instead of '=>' in the foreach statement, and the erroneous use of '+' on the echo line, then congratulations, you found all the errors!

That's not how I answered the question though. 1. 2. 3. 4. 5. 6. Uploading Files To MySQL Database - PHP MySQL Tutorial. Using PHP to upload files into MySQL database sometimes needed by some web application.

Uploading Files To MySQL Database - PHP MySQL Tutorial

For instance for storing pdf documents or images to make som kind of online briefcase (like Yahoo briefcase). For the first step, let's make the table for the upload files. The table will consist of. Error reporting for PHP. 10 code snippets for PHP developers « The html blog. Regular Expressions PHP Tutorial. I have searched the web far and near for a good tutorial on PHP Regular Expressions and I have come up with a multitude of sites. However, I needed just a little bit of information from each of the sites and I ended up trying to move between 10 different webpages to get the information I needed at a particular time. This tutorial is a collation of all those bits of information. Some of this is my work, but it is mostly good collection of other tutorials available out there.

In order to give authors credit for their work, I have included ALL the links of those pages and if anyone feels like this is an outrage, let me know and I will take down the relevant information. So here goes... Basic Syntax of Regular Expressions (as from PHPBuilder.com) Some useful PHP Keywords and their use (php.net man pages) preg_split. Create a REST API with PHP « Gen X Design. Your apps never had it so good One of the latest (sort of) crazes sweeping the net is APIs, more specifically those that leverage REST. Creating an API-Centric Web Application. Planning to start working on a new web application? In this tutorial, we'll discuss how to create an API-centric web application, and explain why this is essential in today's multi-platform world.

Introduction For those who are unfamiliar with the term, API is short for Application Programming Interface. According to Wikipedia: PHP File download with speed limit. Routing in Recess! Screencast. In the first ever Recess Framework screencast we will be walking through the exciting Routing features of the framework. What is routing? Routing is the machinery that takes a requested URL path like “/product/23” and ‘routes’ or dispatches control to some other place your application. In most frameworks, including Recess, this is to a method in a controller. Using a framework that has fast, flexible, RESTful routing is important because URLs are fundamental to how people, search engines, and web services interact with you web application.

PHP snippets to interact with Twitter. Get number of Twitter followers. Creating a Web App from Scratch. Create daemons in PHP. IP address to geographic details « phoenixheart – portfolio & more. 21 Really Useful & Handy PHP Code Snippets. PHP is the most widely used web based programming language that powers millions of websites including some of the most popular ones like Facebook. Here are 21 really useful and handy PHP code snippets that every type of PHP developer will find useful. 55 Awesome PHP Tutorials for Noobs. Input Validation: Using filter_var() Over Regular Expressions. Just about the biggest time-sink on any project, is the amount of input validation that needs to be done. Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5" Use Windows Login in PHP Applications. As a developer you may run into a situation such as what I have, numerous applications deployed and or created and deployed.