|
Mac OS X PHP developers, listen up Greg Beaver has a word of advice for you about your default PEAR installation: I won't get into the questionable business practice of shipping software with known security holes that have had known fixes for years. Instead, I would like to offer simple stepbystep instructions of how to upgrade from outdated buggy PEAR versions to the latest stable release, 1.5.0.You're five simple steps away from having an upgraded installation, all using the builtin pear installer and gopear functionality. |
|
|
On the Smarx.com blog today, there's a new post that talks about the developer's (Steve Marx) latest creation the PHP for Microsoft AJAX Library. I shipped the first public release of my own product today to coincide with ASP.NET AJAX 1.0. My project is called PHP for Microsoft AJAX Library, a small library to help PHP applications make use of the Microsoft AJAX Library. This is a shared source project under the Microsoft Permissive License, and I'd love your contributions!The general idea behind the library is to create an easy to use link between PHP applications and the ASP.NET AJAX functionality. He gives an illustration of a simple web service (a Hello World type) with both the PHP script and the corresponding HTML to interface with it. |
|
|
Dennis Popel submitted a link to a tutorial over on onPHP5.com that talks about obfuscated email address. Not just any email addresses though his example keeps them clickable but out of the way of spambots trying to harvest. Of course you all know that keeping email addresses in plain form in web pages means give them for free to spam bots. [...] This approach, while strong, leaves your pages without very convenient functionality, though. [...] This means that another method, nonimage protection of email addresses must be used, which will be able to preserve the benefits of clickable email addresses that, however, are safe from spam bots.His method revolves around character substitution swapping out the values in the email addresses with the ASCII codes they correspond to. Of course, this still doesn't solve the usability for humans, it only blocks the automated email harvesters. So, to get things back to where we can use them, he defines a Javascript function that reads the obfuscated email and passes it along to the page as a normal, clickable email link. |
|
|
Mgccl let us know about a new bit of functionality he's worked up to calculate a higher precision value of Pi than the builtin PHP function can. I want to release some Benchmark system can be uploaded to any web host and check how good the web hosting is. Pi (?) calculations spread widely as one of the most popular CPU benchmark system, that?s why I have created a Pi calculator that can get to the accuracy you want. For now, there is still one thing I'm not sure yet, I will explain it after show you the code.The function is provided (that takes in the precision value you want) and a brief explanation of what it does differently and a reason why to use it over the builtin function. |
|
|
On Builder.au, there's a new tutorial talking about the dynamic construction of an XML document using the DOM functionality already built into most PHP installs out there. They work through the different steps:Creating the Doctype declarationAdding elements and text nodesAdding attributesAdding CDATA blocks and processing instructionsSaving the resultsFor each on the list, there's code and explanation to help you create the document. By the end, you'll have a document that gives you all the information you'd want to know about someone's pizza order. |
|
|
With a new addition to their evergrowing list of tutorials looking at design patterns, Devshed sets its sights on abstract factories in this new edition. Fear not, because in this threepart series, I'm going to show you how to create an abstract factory class with copious friendly handson examples. Hopefully, by the end of this series, you should have a more intimate knowledge of how this useful pattern works.They introduce the pattern what it is and what it can do for you before showing how to define a small example of it by creating DIVs on your page. |
|
|
As mentioned by both Sean Coates and the International PHP Magazine, ActiveState has release the latest version of their popular development environment Komodo IDE 4.0. Komodo IDE 4.0 is the first unified workspace for endtoend development of dynamic web applications. A rich feature set for clientside Ajax languages such as CSS, HTML, JavaScript and XML, coupled with advanced support for dynamic languages such as Perl, PHP, Python, Ruby and Tcl, enables developers to quickly and easily create robust web apps.Komodo is all about simplicity and helping you write your code. This includes features like a multilanguage editor, integrating sharing abilities, the ability to create Firefoxlike extensions to add to other applications, and full customization settings to make your worspace your own. Find out more about the software on Komodo's page or just head over and buy this latest version for a discounted rate of $245 USD. There's also a trial copy you can download and check out before spending the cash. |
|
|
In a new post to his blog today, Jacob Santos shares a look at converting an application from one language to another from C++ to PHP (obviously). The reason I'm revisiting blackjack is because I have a C++ version and I want to port it to PHP, for fun. If you want to have a simple project for learning a language, other than Hello World, then Blackjack is a good project.Since Blackjack is a relatively simple game (as far as the rules go, that is) he chose a simple C++ version to port over. He sets up some guidelines first break down the code into simple, reusable parts and keeping it as simple as possible. Most of the rest of the code is dedicated to the code:Game startStatistics handlingRandomizationLoopingConditional statementsThe transition is pretty simple, really, especially with how flexible PHP is and the large number of built in functions it comes with. |
|
|
Derick Rethans has posted his summary of the happenings in the world of PHP as experienced through his eyes: It's the end of the year again, and that means that I (once again) spent way too much time writing this wrap up of PHP in 2006. In this, the fifth iteration of my annual PHP Look Back, we'll explore the happenings of the PHP world in 2006.He mentions things like the various PHP releases over the year (especially the release of 5.2), discussions and debates over some of the core functionality of PHP (variables, syntax, etc), actions of the PDM, lots of Unicode talk, and many, many suggestions for functionality to be added to the core. Check out the full (lengthy) look back here on his website. |
|
|
The PEAR group is happy to announce the release of the latest version of the popular package system for PHP PEAR 1.5.0. Changes in the new version include extension enabling in php.ini, implementing TAP output option for runtests command, recognize deprecated package/channel and display to user, and much more. The community is also talking about the release:Greg Beaver's discussion of how this new version is pushing the envelope.A release announcement from the International PHP Magazine website.You can get the full information on this new release from the PEAR website or just head straight to the download page and grab the update. |
|
|
Latest PHPClasses.org Releases:snmpcdpArKeySwapTemplate ProcessorJsHttpRequestean13Rejilla::MysqlDynamic PageDbSimpleHTTPSockTrackerWSSoapClientPHP ICQfen2DiagramAES128AES 128 |
|
|
this article will help newbies to understand the basic of PHP quickly and easily |
|
|
Latest PECL Releases:zip 1.9.0pecl_http 1.4.0RC2 |
|
|
On the JSLabs blog today, there's a new post talking about the combination of PHP and Resin (a highperformance application server). The Resin highperformance, open source application server features load balancing for increased reliability. Caucho's Quercus(TM) is a fast, 100% Java implementation of the PHP language allowing developers to use PHP flexibility for the web interface and Java for stability.He also talks about some key points surrounding this server as effects PHP developers:PerformanceDevelopmentCapabilitySecurityScalabilityThere's even a link to some benchmarks to see how it really performs. |
|
|
Pandaacute;draic Brady, developer of the (work in progress) PHPbased strategy game Astrum Futura has posted today with the results of his look at a ranking of current PHPbased games and their popularity. Sometimes I find it useful when measuring what's being downloaded in terms of open source PHP games to look at the top 10 rankings on Sourceforge for each gaming category. I say sometimes, because it tends to be fairly unreliable and doesn't really reflect real usage online.Games on his list include Solar Imperium, Alien Assault Traders, PHP RISK and number one on the list phpDiplomacy. Each item on the list includes the Sourceforge ranking against all other projects. |
|
|
The International PHP Magazine is back with the results from this weeks poll Poll Question: Which is the Most Important Feature of PHP 5? The options to choose from were:Better error handlingBetter MySQL performanceNewer useful functionsSQLite Database supportBest OOP support periodWith the last of the options coming out on top by a landslide (58.8%) followed far in the distance by Newer useful functions (10.3%). Be sure to cast your vote in this week's poll that asks readers to vote on which method of the choices given is the best way to do testing on your applications. |
|
|
On the IBM developerWorks site, there's a new article looking to help you internationalize your applications easily. Localizing an application can be planned, or it can happen as a rushed afterthought. Discover techniques and tools such as gettext, XML, XSLT, and design patterns that can help when retrofitting localization into a mature product or planning for localization up front.They start with a bit of a guide on how to assess the situation and see what would need to be considered before even starting on the process (looking at a Yahoo RSS feed). There's a brief look at some terminology, then its right into the code retrofitting your content (the RSS feed) via XML content and the gettext functionality. The also include a design pattern for localization in the MVC style that handles the transformation automatically. |
|
|
In this new post from The Bakery there's a tutorial on creating a REST web service with the help of the CakePHP framework: This is an example used to request the list of countries from you database to share among many applications (I use it to have consistant set of country_id's among a couple of different applications that all share the same database back end: REALBasic Application, Aperture Plugin and a CakePHP web application)They provide the code (and settings) you'll need to use to get the REST web service going. They create both a component and a helper to make the process easier and provide a SQL dump for the countries table and the Model, Controller and View templates you'll need. |
|
|
DevShed has posted the last installment of their series looking at the use of the Facade design pattern. This time, they're looking specifically at its use in handling file data for the items on the local file system. I'm going to continue demonstrating the application of the facade pattern, this time by developing yet another illustrative application. It will take care of processing the contents of a selected data file in different ways.They start from scratch with the development of the sample script creating a simple class that implements the pattern, then modifying it to work as a string processor and finally pulling them together to read the data for a file and echo out the processed results. |
|
|
Willliam Candillon has a (very) quick note for all of the phpAspect fans out there: I will be performing a talk about phpAspect at Solution Linux 2007, the 31th january 2007 and a lightning talk at FOSDEM next month. I'm looking forward to collect your feedbacks, questions and suggestions about phpAspect!The Solution Linux 2007 conference is happening in Paris from the 30th of January to the 1st of February. FOSDEM will be in Brussels, Belgium and is happening the 24th and 25th of February. |
|