 | News Feed |
 | Jobs Feed |
Sections
Recent Jobs
News Archive
|
IBM developerWorks: 30 game scripts you can write in PHP, Part 1 Creating 10 fundamental scripts
by Chris Cornutt November 20, 2008 @ 11:13:00
In a new tutorial from the IBM developerWorks site starts off a new series looking at creating some games, from start to finish.
PHP is an easy-to-use, easy-to-learn, widely accessible programming language. It's well suited for developing simple scripts you can use to help you in all kinds of games. Whether you play simple pen-and-paper games by yourself, complex tabletop role-playing games with a group of people, or online games of any kind, this series will have something for you. Each article in this "30 game scripts you can write in PHP" series will cover 10 scripts in 300 words or less (3d10 stands for "roll three 10-sided dice") simple enough for even a beginning developer, but useful enough for a seasoned game player.
The ten scripts they walk you through are things like a die roller, a name generator, a deck builder/shuffler, a poker dealer and a crossword helper.
voice your opinion now!
game script fundamental tutorial example code
WebReference.com: Administering RBAC in PHP 5 CMS Framework
by Chris Cornutt November 20, 2008 @ 10:28:15
WebReference.com continues their series looking at user administration in content management systems. This time they look at the importance of user roles and some code to add to help manage them.
Although the operations are simple, it is vital that they be handled correctly. It is generally a poor principle to allow access to the mechanisms of a system rather than providing an interface through class methods. The latter approach ideally allows the creation of a robust interface that changes relatively infrequently, while details of implementation can be modified without affecting the rest of the system.
Their code includes methods to get all roles for a user, check to see which they are permitted to use, add a "permit" role and remove it back out. The tutorial is an excerpt from the Packt book PHP5 CMS Framework Development (Martin Brampton).
voice your opinion now!
rbac php5 framework tutorial excerpt packt role
Douglas Clifton's Blog: PHP Specificity (a Five-part Series)
by Chris Cornutt November 20, 2008 @ 09:33:22
Douglas Clifton has put together a series of blog posts looking at several different types of categories that PHP applications and tools can fit into:
Rather than spending the time and effort to implement paging, I took another approach. And that was to get down to specifics. This was really a taxonomy problem, and the key was to break the page up into a top-level (general) category, and then divide the rest into sub-categories.
His series of articles covers:
voice your opinion now!
specificity framework wiki cms blog debug software
PHPro.org: Class Hierachies And Overriding
by Chris Cornutt November 20, 2008 @ 08:46:47
The PHPro.org website has this new tutorial posted today - a step further into the would of OOP in PHP with a look at abstraction, hierarchies and polymorphism.
The PHP Object Oriented method of programming brings many exciting possibilities to application code. Many of the theories surrounding PHP Object Oriented code comes from some simple concepts. To the new comer, some of these concepts seem a little abstract, and with good reason. Abstraction is a key concept on Object Oriented code, but to the un-initiated, may seem rather vague.
Kevin looks at creating abstract classes as a foundation for types other classes can work from, overriding built in classes (like extending the DirectoryIterator to make a DirectoryReader class).
voice your opinion now!
class hierarchies overriding tutorial abstraction ploymorphism
Hiveminds: PHP is a skill not a profession
by Chris Cornutt November 20, 2008 @ 07:55:59
In a new article on the Hiveminds website, one of their columnists, Carl shares his skewed perception of PHP - mainly that it's just not a profession (like .NET is).
I have to say that I am more in agreement with this line of thinking now than I was a couple of years ago. Regardless of how many Facebooks and Diggs show up on the web PHP will always only be given the same importance as HTML or JavaScript. PHP is something that is part of a skill set not something that you can say you do and be taken seriously as a web programmer. This was true 3 years ago is true now and quite honestly will be the case for many more years
He provides some results to back up his assumption, but they seem a bit tainted by his Microsoft slant on things (popularity rankings of 51.5% for ASP.NET but only 6.0% for PHP). He favors Visual Studio for development and suggests that there are no commercial CMSes for PHP.
voice your opinion now!
skill profession aspnet dotnet popularity cms
Zend Developer Zone: Dynamically Generating PDF Files with PHP and Haru
by Chris Cornutt November 19, 2008 @ 17:47:40
New on the Zend Developer Zone there's a tutorial written up by Wil Sinclair looking at building dynamic PDF files in PHP with help from Haru.
This incredible versatility also applies to the topic of today's article: the PDF, or Portable Document Format. Not content with just one, PHP actually comes with two different extensions that allow developers to dynamically generate PDF documents: the PDFlib extension, and the libHaru extension. Over the next few pages, I'm going to take a quick look at the Haru extension, providing you with a brief overview of its functions and demonstrating how you can use it in your PHP development.
The tutorial walks you through the installation of the extension and several examples of it in use - everything from simple text input out to text transformations, drawing shapes and adding annotations.
voice your opinion now!
dynamic pdf generate haru extension pecl tutorial
|
Community Events
Don't see your event here? Let us know!
|