 | News Feed |
Sections
|
| feed this: |  |
WebReference.com: How to Create a Search Feature with PHP and MySQL
by Chris Cornutt August 07, 2008 @ 07:53:10
On WebReference.com today Ryan Butler has written up a tutorial of a simple search feature that can be integrated into any site (with their content in a MySQL database).
In this article, you'll learn how to create a searchable form feature that will query a database table and display current staff member information. During the analysis you'll learn how to do the following: create a database table that will hold current staff listings, create a search form and use PHP, in coordination with Structured Query Language (SQL) to capture information entered by the visitor and append the information to display the results we want to show.
They give you the files for the project and work through each, showing how to make the database, put information in and connect to the database to run the query. He opts for the LIKE functionality in the WHERE clause to find the term as a wildcard in the FirstName field. It's not the most efficient, but it can be useful.
voice your opinion now!
mysql search engine like wildcard tutorial
Asvin Balloo's Blog: SEO friendly URL in PHP
by Chris Cornutt July 24, 2008 @ 11:14:40
Asvin Balloo has posted a quick look at making the URLs of your website a bit more "pretty" and SEO-friendly.
When I started implementing mod_rewrite in websites I had a problem in PHP as how to make a SEO friendly URL. All tutorials were geared towards how to implement mod_rewrite, about modifying .htaccess files, but none treated how to make the urls friendly with dynamic content.
He shares a function that he found that helped him a great deal - a method called friendlyURL. It changes a bit of text into a more friendly version of itself ("this is a test" becomes "this-is-a-test") that can be used in anything you'd want. An example could be in automatically generating links to other pages on your site that search engines can easily follow.
voice your opinion now!
seo friendly url function parse search engine
Jordi Boggiano's Blog: Who let the Dwoo out ?
by Chris Cornutt May 15, 2008 @ 12:58:46
Jordi Boggiano has blogged about a new PHP5 templating engine called Dwoo that's just been released for download.
Early this year I wanted to rebuild my template engine to have something stronger to work with, so I started thinking about it and then asked myself why I didn't use one of the available engines out there. The fact is that - and I guess I will lose many of my few readers here - I am not fond of using php itself as a template engine (with Savant or similar).
Features of the templating engine include a striking similarity to Smarty's methods, the fact that its code is scope aware, it has template inheritance and comes with a plugin system that can be extended as you see fit.
You can get complete information about the engine from the Dwoo homepage.
voice your opinion now!
dwoo template framework engine smarty release
DeveloperTutorials.com: PHP Site Search Made Easy
by Chris Cornutt March 31, 2008 @ 12:35:52
On the Developer Tutorials site today, Akash Mehta has posted his look at having search functionality on your website.
Today's websites have a lot of content. [...] Needless to say, effectively searching all that data can be a real challenge, and chances are at the end of the day you'll still be stuck with a slow and ineffective search system. [...] Implementing effective search doesn't have to be hard. In this tutorial, I'll show you how to build a basic site-specific web search in just five lines of code, using the Yahoo! APIs.
He includes a (very) brief look at the search API Yahoo! offers followed by examples of queries and then on to the real deal, a search system that takes in a user query and asks the Yahoo! API for results matching it. The results are outputted below the box.
voice your opinion now!
search engine yahoo api simple tutorial
Hasin Hayder's Blog: WorldTimeEngine - How about making your own in PHP?
by Chris Cornutt March 10, 2008 @ 11:17:00
Hasin Hayder has posted an example of a "world time search" he's worked up that uses the geonames.org and Yahoo! developer APIs to pin down the time at any given location.
I recently came by this site WorldTimeEngine where users can search the local time of any place using the name, street address or just latitude and longitude. Since that time I was thinking how easily you can make your own. As long there are some good people over there (For Geocoding API) - its a not a big deal, you know?
His script pulls the location of the place (latitude/longitude) from the Yahoo! geocoding API and passes that back into the geonames web service to get the local time. The result is an array with the lat/long, address you submitted and the time output in a standard string.
voice your opinion now!
world time engine example yahoo api webservice geonames
Alex Netkachov's Blog: Programmatically adding PHP script engine to IIS 5.1 metabase ScriptMaps
by Chris Cornutt August 13, 2007 @ 09:30:00
In a new post today Alex Netkachov steps through how he added the PHP scripting engine to his metabase scriptMaps on an IIS 5.1 web server:
I spent a few days on investigating how to modify IIS metabase from script. What I need is to add PHP engine to IIS programmatically during installing PHP. [...] The metabase object can be enumerated and each item of the enumeration can be enumerated to. The elements of this hierarchy represent folders you can see in IIS management console.
He builds out the ScriptMaps functionality (a recursive "walk" function) and another function to add the PHP scripting engine onto that (addPhpIsapi). A word of warning from Alex, though:
This code now is the part of Jamp installer. But because this functionality is dangerous, this code is not run during default installer and it recommended to backup the metabase before running it.
voice your opinion now!
scriptmaps engine iis webserver enumeration scriptmaps engine iis webserver enumeration
DevShed: Building a Search Engine with MySQL and PHP 5
by Chris Cornutt July 31, 2007 @ 16:29:00
DevShed starts off a new series of articles today with the first part of a series covering the construction of a search engine with MySQL and PHP5.
It's valid to notice that aside from the wealth of web-based applications that can be built quite easily with PHP, there's one in particular that's becoming very popular with many modern web sites as they grow in size. In this case, I'm talking about developing an internal search engine for any web site, by using the capacities provided by the powerful MySQL/PHP 5 tandem. [...] In this series, which is comprised of three instructive tutorials, I'm going to teach you how to build a web-based search application that can be easily adapted to suit your personal needs.
Part one talks about the creation of the front end for the app, how to perform searches against your data from a PHP5 script into a MySQL database and brining some of the modules of the application together (the code to both make the database request and output the results).
voice your opinion now!
search engine php5 mysql tutorial search engine php5 mysql tutorial
|
Community Events
Don't see your event here? Let us know!
|