background preloader

7 Secure, Lightweight, and Easy to Use PHP Frameworks

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. Different frameworks are better for different types of projects, and for different developer. Today we will focus on 7 secure, lightweight and easy to use PHP Frameworks. Why Use a PHP Framework? There are plenty of reasons to use a PHP Framework to build your websites. 1. Below we’ve covered some of the best frameworks available today. 1. CodeIgniter is a powerful, high-performance, open-source PHP framework that helps you author PHP applications rapidly. CodeIgniter has an exciting online manual, a couple of helpful video tutorials and an active user forum. 2. 3. 4. 5. 6. 7.

JpGraph - Most powerful PHP-driven charts Ten PHP Best Practices Tips that will get you a job | PHP vs .Net 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. 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. 7. 8. 9. 10. … sorry, pet peeve.

DevNetwork Forums • Index page Tutorials Zend Server Web API spotlight: Connecting to a Zend Server cluster part 2 Hey everybody, In a previous post I introduced the serverAddToCluster Web API action which allows us to initiate clusters and join existing ones with Zend Server. That post showed some code and discussed how the clustering process is started; now I will talk about how we should track the progress of our cluster and deal with […] Continue reading... PHP 101: PHP For the Absolute Beginner p. Continue reading... XML- RPC Client This tutorial teaches you, step-by-step, how to build an XML-RPC client in PHP using the XML-RPC library written by Edd Dumbill. A primer is included to introduce the basics of the XML-RPC specification. Continue reading... VIDEO : Behavior Driven Development with Behat Behavior Driven Development with Behat Unit tests give you a good base to ensure your classes are working technically correct. Continue reading... Installing and Configuring Zend Server 6 on Apple Mac OSX Continue reading...

10 code snippets for PHP developers « The html blog 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. 01.include('EmailAddressValidator.php'); 03. 04.if ($validator->check_email_address('test@example.org')) { 07.else { Random password generator PHP password generator is a complete, working random password generation function for PHP. 01.function generatePassword($length=9, $strength=0) { 02. 03. 04. if ($strength & 1) { 05. 07. if ($strength & 2) { 08. 10. if ($strength & 4) { 11. 13. if ($strength & 8) { 14. 17. 18. 19. for ($i = 0; $i < $length; $i++) { 20. if ($alt == 1) { 21. 22. 23. } else { 24. 25. 28. return $password; Get IP address Returns the real IP address of a visitor, even when connecting via a proxy. 01.function getRealIpAddr(){ 02. if (! 04. 06. elseif (! 08. 10. else{ 11. 13. return $ip; XSL transformation PHP5 version Source : 01. 04. 05. 08. 11.

Top 20+ MySQL Best Practices Database operations often tend to be the main bottleneck for most web applications today. It's not only the DBA's (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. Before we start, be aware that you can find a ton of useful MySQL scripts and utilities on Envato Market. Most MySQL servers have query caching enabled. The main problem is, it is so easy and hidden from the programmer, most of us tend to ignore it. The reason query cache does not work in the first line is the usage of the CURDATE() function. Using the EXPLAIN keyword can give you insight on what MySQL is doing to execute your query. The results of an EXPLAIN query will show you which indexes are being utilized, how the table is being scanned and sorted etc... Take a SELECT query (preferably a complex one, with joins), and add the keyword EXPLAIN in front of it. From MySQL docs:

PHP include() and require() Write your own PHP MVC Framework (Part 1) | anant garg What is MVC? From Wikipedia– Model–View–Controller (MVC) is an architectural pattern used in software engineering. In simpler words- 1. Why should I write my own framework? This tutorial is by no means a comprehensive/definitive solution to your framework needs. So why should you write your own framework? More importantly, you have complete control over your framework. Lets dive right in The Directory Structure Although we will not be a couple of directories mentioned above for this tutorial, we should have them in place for future expansion. application – application specific code config – database/server configuration db – database backups library – framework code public – application specific js/css/images scripts – command-line utilities tmp – temporary data Once we have our directory structure ready, let us understand a few coding conventions. Coding Conventions 1. mySQL tables will always be lowercase and plural e.g. items, cars 2. Now we add index.php to our public folder view.php add.php

15 Best Resources To Learn PHP Online PHP is the scripting language can be embedded into HTML , used for develop web applications. Every type of websites can create with the help of this language. This language can run almost on every operating system and platform. Online tutorials always being popular among internet users. their are number of websites to help providing designs and development tutorials which help to learn different everytime. Today we have listed 15 best website to learn PHP online. 1) PHP.net 2) PHP Builder 3) Deniweb Forum 4) W3Schools 5) Stack Overflow 6) PHP Edit 7) PHP Designer 8 ) Zend Studio 9) WikiBook’s PHP Books 10) PHP Tutorials 11) Developer Tutorials 12) 9Lessons 13) Hot Scripts 14) PHP Freaks 15) Big Resouces

15 very useful PHP code snippets for PHP developers | ViralPatel.net Following are list of 15 most useful PHP code snippets that a PHP developer will need at any point in his career. 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” 5. 6. Required Extension: SimpleXML 7. 8. Following is the PHP code to create the JSON data format of above example using array of PHP. Following code will parse the JSON data into PHP arrays. 9. 10. This basic snippet will create a random authentication code, or just a random string. 11. Validate a date in “YYYY-MM-DD” format.

PDF Generation with Zend Framework | 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. 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 LiveDocx is a SOAP-based document generation service, based on the market-leading, word processing component TX Text Control .NET. Templates and documents Throughout this article, we refer to the terms templates and documents. Using LiveDocx and Learn more Footnotes

Related: