Is PHP a good first language? May 1, 2008 – 3:47 pm Tags: PHP, Programming Sometimes I’ve seen people say PHP is a bad first language, because it teaches bad programming habits.
But is this actually true at all? Often those who say that don’t really like PHP themselves either, many times because of equally untrue reasons. I think PHP is a perfectly good first programming language – I would even go as far as say it’s possibly the ideal first language if you are interested in web development. What makes a good first programming language? When I began programming back in.. uh..
PHP — Good or Bad? It all starts with Tim Bray's little rant on PHP a few days ago.
Tim can't stand PHP, because ...all the PHP code I've seen in that experience has been messy, unmaintainable crap. Spaghetti SQL wrapped in spaghetti PHP wrapped in spaghetti HTML, replicated in slightly-varying form in dozens of places. I have seen some well designed PHP code, but generally Tim's observation stands valid. The problem is more than wild spread of spaghetti PHP code found in many open source applications.
Things only get messy when your temporary "Hello World" application starts to need database support, need to manage large XML documents, need to talk in different charsets, and need to scale to hundreds of requests per second. However, what I see the fundamental problem of PHP is not that there are zillions lines of messy code out there, but the language itself. Using FastCGI to Host PHP Applications on IIS 7 : Host Applications on the Microsoft Web Platform : Running PHP Applications on IIS. Learning OOP in PHP ASAP! Free Address Book Script ( PHP + MySQL ) Ver 1.18 ( Security patch applied ) This is a free Address Book PHP script with a MySQL database.
This script allows users to search, view, add, edit, and delete address entries from a web browser. Each user can have a different login username. It's very easy to add/remove fields to/from the script. In fact, I've seen others using this script to store something totally different from addresses. You can customize Address Book Script online and/or manually. To manually customize it, please see Customization Quick Guide. To customize online, use Address Book Builder, which guides you through the steps of building a custom version of Address Book Script. Ajax Fileup Addon for Address Book Script. 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. 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. Real-World OOP With PHP and MySQL. Numerous examples from robots to bicycles have been offered as “easy” explanations of what OOP is.
I’ve opted to show you how OOP works with a real-life example, for a programmer. By creating a MySQL CRUD class you can easily create, read, update and delete entries in any of your projects, regardless of how the database is designed. Setting up the skeleton of our class is fairly simple once we figure out exactly what we need. First we need to make sure that we can do our basic MySQL functions.
In order to do this, we need the following functions: Select Insert Delete Update Connect Disconnect Those seem pretty basic, but I’m sure that as we go through, we’ll notice that a lot of them utilize some similar aspects, so we may have to create more classes. This function will be fairly basic, but creating it will require us to first create a few variables. This function will simply check our connection variable to see if it is set to true.
The next section is the real magic of the code. Symfony - Home. 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.
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.