Archive for February 5th, 2008
PHP Developer - February 5th, 2008
The PHP Women user group has made an announcement today on their site about a partnership between them and the DevChix to help provide mutual support to each other.
Working together we will hopefully be able to do much more then we would do apart. […] We at PHPWomen eagerly look forward to working with DevChix and are excited at what we can do together in the future.
You can find out more about the DevChix group from their website including their own PHP section and their announcement about the partnership too.
Continue Reading ·
PHP Developer - February 5th, 2008
The DevX.com site has posted some code that gives you methods for passing information back and forth between PHP and a Flash application.
When you need to develop a web form with a special design and great effects, you will probably elect to use Flash. But building and programming Flash forms is considerably different from building standard HTML-based forms. […] To do that though, you need to know how to access data in the Flash form and (sometimes) how to update the Flash form from PHP as well.
They help you build a sample Flash form as a base to work with in the transfer methods including the ActionScript to get the data out of each field. The tutorial shows the two way communication that’s possible - pushing the Flash values out to the PHP script via a getURL() call and pulling the results back in with a call to loadVars() from the PHP script’s output.
Continue Reading ·
PHP Developer - February 5th, 2008
On the ProDevTips blog today, Henrik has posted about an alternative to the popular Akismet plugin for the PHP blogging tool, WordPress, to help prevent even more comment spam from making it past - WP_Hashcash.
WP Hashcash is an antispam plugin that eradicates comment spam on Wordpress blogs. It works because your visitors must use obfuscated javascript to submit a proof-of-work that indicates they opened your website in a web browser, not a robot.
He includes the code that he needed to change to get the widget part of the plugin up and working correctly. You can find out more about this plugin from its page on Elliot Back’s blog.
Continue Reading ·
PHP Developer - February 5th, 2008
DevShed continues their series looking at connecting a PHP5 script to the powerful Yahoo! search backend with part four of the series today. This part focuses on reworking some of the previous examples to make them more modular using custom defined functions.
Logically, these examples can be really useful for learning the basic concepts surrounding the use of these search services, but undoubtedly, it’s necessary to modify and improve their source code to make it more compact and completely reusable.
They start the overhaul with the web search (complete with example results) then push on to the video and image searches and work them over the same way.
Continue Reading ·
PHP Developer - February 5th, 2008
Maarten Balliauw has written about a method he’s developed to convince the Zend_Search_Lucene component of the Zend Framework to index the contents of a Word 2007 document.
Lucene basically is an indexing and search technology, providing an easy-to-use API to create any type of application that has to do with indexing and searching. If you provide the right methods to extract data from any type of document, Lucene can index it. […] Sounds like a challenge!
He works through the three step process to getting the searching working, the key being his readDocXContents() function that goes through the Word file and returns all the text it can find. This is passed back out so the Zend Framework component can pull the data in and search (their example is on the string “Code Access Security”).
You can grab the the full code here.
Continue Reading ·