background preloader

PHP Specific

Facebook Twitter

Jijawi: The PHP Web Installer - Jijawi. Simple Layouts with PHP. This tutorial is for those starting out in PHP and want to learn a great way to create layouts.

Simple Layouts with PHP

This will help reduce redundancy and keep you from writing too much code. Download the Source Anyone that has been developing HTML based sites for some time has undoubtedly ran in to the issue of keeping the design consistent across multiple pages. Most websites follow a similar layout to the picture. This is great unless you have sites that require multiple pages. Technique #1 A lot of sites follow this kind of layout scheme. Three Quick Tips To Make Your PHP Understandable. Introduction Producing code that clearly conveys a developer’s intent is key to any well written application.

Three Quick Tips To Make Your PHP Understandable

That not only applies to PHP, but every programming language. Developers who emphasize the creation of legible code tend to create applications which are easier to both maintain and expand upon. 40+ Invaluable PHP Tutorials and Resources. PHP Variable and Array Tests. PhpFormGenerator v3.0 beta - create professional web forms in minutes. The Script Dungeon. Extremely useful PHP classes. PHP PSD Reader A few weeks ago, I wrote an article about this PHP which allow you to display any Adobe PSD file on screen.

extremely useful PHP classes

Very usefull to create preview of PSDs designed for clients, for example.Download Browser detect One of the most common (and boring) problem for front-end developers is definitely cross-browser compatibility. This PHP class will detect almost all browsers and simplify your cross-browser work.Download Akismet Remember those days without spam? ADOdb The large majority of websites and web apps are using databases to store all kinds of data. HTML Purifier. PHP Web Traffic Analysis. JpGraph - Most powerful PHP-driven charts. Free PHP Scripts. 15 very useful PHP code snippets for PHP developers. Following are list of 15 most useful PHP code snippets that a PHP developer will need at any point in his career.

15 very useful PHP code snippets for PHP developers

Few of the snippets are shared from my projects and few are taken from useful php websites from internet. You may also want to comment on any of the code or also you can share your code snippet through comment section if you think it may be useful for others. 1. Send Mail using mail function in PHP 2. 3. The above code will not work in case your client is behind proxy server. 4.

This function will return the duration of the given time period in days, hours, minutes and seconds. e.g. secsToStr(1234567) would return “14 days, 6 hours, 56 minutes, 7 seconds” PHP Web Design. It’s not only imperative to echo the vision and strategy of an enterprise through its website but, it is equally important to engage your potential customers and partners into conversation.

PHP Web Design

Twig - The flexible, fast, and secure template language for PHP. PHP Tutorial: Free. In this lesson, we will introduce you to PHP and show you how it works.

PHP Tutorial: Free

You will also be able to write your first PHP script after learning the basic syntax of PHP. Lesson Goals. 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: Face detection in pure PHP. Une résumé en français est disponible en fin d’article.

Face detection in pure PHP

Lately, I’ve been looking for ways to detect faces in photos with PHP. Nowadays, face detection is built in many consumer products (camera obviously, but also Google and iPhoto), and seems to be a pretty common job. So I expected to find many solutions for doing it with PHP. Surprisingly, the only one I could find is OpenCV, an opensource lib that was originally developed by Intel. OpenCV seems to perform well but you need to be able to install it on your server. Learning about face detection So I started to think about implementing it myself. TCPDF - PHP Class for PDF. It appears that you are using AdBlocking software.

TCPDF - PHP Class for PDF

The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website. <div style="font-family:helvetica,arial;font-size:small;padding:0 4px 0 4px;background-color:#FFFFCC;color:#003399;border:1px;border-style:solid;border-width:1px;border-color:orange;"><form action=" method="post"><div><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="paypal@tecnick.com" /><input type="hidden" name="lc" value="US" /><input type="hidden" name="item_name" value="Tecnick.com" /><input type="hidden" name="no_note" value="0" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_SM.gif:NonHostedGuest" /> It appears that you are using AdBlocking software.

The cost of running this website is covered by advertisements. Miles Johnson // Blog: 5 custom PHP functions: Strings. All of these functions can be found within the Titon Utility library.

Miles Johnson // Blog: 5 custom PHP functions: Strings

It's now time for some PHP that isn't Cake related. This is the first part in a series of "Basic/Common PHP functions that all programmers should know". This series has to deal with manipulating strings. I try to make my functions short, sweet and powerful, and I hope you learn something from them. SocialEngine PHP Social Network Script - Create your own social media community! 10 code snippets for PHP developers. I’ve compiled a small list of some useful code snippets which might help you when writing your PHP scripts… Email address check Checks for a valid email address using the php-email-address-validation class. Source and docs: 01.include('EmailAddressValidator.php'); 03. 04.if ($validator->check_email_address('test@example.org')) { LiveDocx in PHP - Zend_Service_LiveDocx. Generating print-ready well-formatted PDF documents with PHP is not an easy task.

Traditionally, there are two main approaches to PDF generation with PHP. Given sufficient time and patience, both partially get the job done, but still leave a lot to be desired: HTML-to-PDF: This approach is widely used in mainstream applications. Here an HTML document is programmatically created and converted to a PDF, using one of the many open source libraries 1. Since HTML, however, is not a page-oriented format (as is PDF), it is impossible to perform a 1-to-1 mapping between HTML and PDF. Programmatic: This approach offers total control of the resulting PDF. A completely new approach In this article, the author presents an entirely new, third approach. Before we delve into a technical discussion on the inner workings of this new approach, let us first take a look at a practical example.

The code demonstrated in this article ships with Zend Framework 1.10 or newer. Introducing LiveDocx. A PHP Charting library. Phpgroupware.org. PHP command line syntax checking. Posted April 24th, 2010 in PHP The PHP CLI (command line interface) allows basic syntax checking of a PHP file. I'll show the basic usage of this in this post and then a couple of ways to check all files in a directory, and all files recursively down the directory tree as posted by a couple of people on Twitter. Akelos PHP Framework. 43 Ways to Optimize your PHP Code. PHP snippets. How-to use PHPMailer for SMTP and GMail. These days I tried some plugin to send e-mail message within WordPress via SMTP. Since my domains email is hosted with Google applications I decided to send my messages via the SMTP server from GMail.

I found several articles and PHPMailer tutorials, but a lot of them didn’t worked for me. Why using GMail for sending mail messages? First of all it’s FREE! Sure most website owners can use their own SMTP server for sending email messages from their website, but it makes sense even than to use GMail for sending mail. Requirements. Quick and Dirty PHP Caching. Advertisement Caching your database-driven website pages has a plethora of benefits, not the least of which being improved speed and reduced server loads. This article will explain how to set up a simple caching system, and will also address when and where caching might not be appropriate. For me, the impetus to switch to a caching method for one of my database driven sites was sparked by Mosso, since they bill by cpu cycle, and I have one site that is, well, humongous (60k+ pages), and it happens to the highest traffic site on the account.

While the database queries were all very efficient, and each page had, on average, no more than 6 queries, performance and cpu cycles would both be helped quite a lot by implementing a cache. This caching solution was a temporary fix, while we switched to a new CMS that was already using a robust caching system. Using output buffering, caching pages is incredibly easy. PHP Optimization Tips. This tutorial will explain many small techniques which will, hopefully, help optimize your php scripts. AtomicPHP. Free Scripts Free PHP Scripts Scripts.url. Easy Thumbnails with PHP. Home > Back End, PHP > Easy Thumbnails with PHP Don’t hassle with image processing software if you don’t have to. Open source PHP web application framework. A Brief History 2006: CodeIgniter was born. 7 Secure, Lightweight, and Easy to Use PHP Frameworks. Choosing a good PHP frameworks can help you develop complex Rich Internet Applications quickly, with a best practices oriented approach, and saving a lot of time reusing code snippets that are already available.

There are a lot of interesting PHP frameworks you can choose for your next web project. Which framework you choose is really a personal decision. There is no one “best” framework on the market at the moment. Creating 10 fundamental scripts in PHP. Getting started As both a game master/storyteller and a developer, I frequently find myself writing little utilities and scripts to help me when running, planning, and playing games.

Sometimes I need a quick idea. Other times, I just need a whole pile of names for Non-Player Characters (NPCs). Bits of PHP code - Google Chart API for PHP. Google have released the Google Chart API which enables you to produce swizzy graphs like the above, which is the total 'hours-listened' to BBC Radio 1 from March 1999 to September 2007. In their API documentation, they publish some JavaScript code to help with encoding the URL. Here's the same thing in PHP - which, by default, will also sort out the maximum size as the maximum value in the array you pass it. // Here's an array containing some data to plot$test_data=array(0.5,6,12,17,2,0.3,9);