
viXML Parse Web Search results in your web pages using Gigablast Metasearch XML Services.
VALUABLE SCRIPTS FOR WEBMASTERS
Synopsis: viXML is a PHP script, free to use under GPL license, that interface the Gigablast Search Engine database to place targeted search results in your own web pages.
Gigablast.com provides free metasearch services: 1000 searches per day, viXML script provides pre-made search results or custom searches, so webmasters can create
branded directories or just add some related content dynamically.
viXML Features:
Programmed in PHP Language, returns n results (50 maximum) from x position maximum position 499, including all words and excluding some words: sometimes You might want to exclude the competition pages from the results. The script uses a cache serialized file (no database), by default it is configured to refresh search results each 8 days, remember you have only 1000 searches per day, so the interaction with gigablast is limited. No database is required. Easy installation and it include a default configuration.
Possible uses: Add related theme content to web pages dynamically, create search directories or branded directories, provide search capabilities to visitors. There are some scripts around but some of them are commercial or are black listed for installations by host companies or simple violates search engines terms of use.
As today, Jan 2005 GIGABLAST.COM term of use accepts 1000 search per day, with the Cache system you might be under the limit.
Requirements: PHP 4.3.10. Easy to install 5-10 minutes, need to modify files create a dir and issue a chmod if using Cache's system.
Changes log: (updated 02-01-2005)
Two new features were added: option to open the hypelink in a new window and include the option "nofollow". The No-NoFollow Initiative is the major search engine change to ignore links (it means that search engine will not follow the link moreover it will not give any rank) . This feature is very helpful to avoid creating links to "bad neighborhood".
viXML Version Status:
Alpha version was tested during January 2005, the script is available now to the public under GLP license, free to use.
Quick viXML Demo using the words "Search Engine Optimization” with option: no links
Powered by viXML, providing custom search results
SAMPLES
Sample 1: in sample 1 i use sample1.php file in the zipped file, parameters used:
<?
$n = 20 // number of items to return
$s = 0 // start in position
$t = 2 // option to display links
$plus = 'php programming' // words to search
$minus = 'forum' // option to exclude words
?>Sample 2, I'm passing parameters on the fly "sample2.php?plus=php programming&n=20&t=2" using sample 2
See the viXML in action on my web pages using pre made meta searches using specific keywords
See it in action The script is been used in production pages. In this sample, I use parameters to open links in a new window with the <rel="nofollow"> option. The script only generates the "SEARCH RESULTS" SECTION. Do not expect that this scripts generates affiliates or news links.
In the "See_it_in_action" page, I'm returning search results using the following parameters:
/search.html?plus=ballet&n=20&s=0&t=3
or in PHP format
<?
$n = 20 // number of items to return
$s = 0 // start in position
$t =32 // option to display links
$plus = 'Ballet' // words to search
?>
But do not get confused with my friendly URL in static mode, I use mod_rewrite rule to convert to static address URL easy to read: /search/Ballet-20-0-3.html
Getting friendly static URL address using MOD_REWRITE
Caveat: How get static URL when passing PHP parameters: (getting static url using mod_rewrite):
You can use mod_rewrite to convert dynamic address in static you might use the following htaccess sample, that works for my see-it-in-action web page sample, above. It masks the 4 parameters used on my script and converts this URL:
/script/sample.html?plus=ballet&n=20&s=0&t=2
to /script/ballet-20-0-3.php
Adapt file extension .php or .html as required
Options +FollowSymLinks<br>
RewriteEngine on<br>
RewriteBase /script<br>
RewriteRule ^([^/]+)-([^/]+)-([^/]+)-([^/]+)\.php$ /script/sample.php?plus=$1&n=$2&s=$3&t=$4
[NC,NE,L]
DOWNLOADING AND INSTALLING viXML, free of charge
Version 0.0.1 The script is available free under GPL license, must maintain credits and the credit link. By clicking the buttom download you are accepting our terms of use.
Filesize 9 Kb
Help wanted? Need Installation Assistance: Having bad time installing, we can install the script for you, cost only $29 per domain.
Credit link Removal: Cost of removal the credit link is $49 per domain. Installation + Credit link Removal: One installation one credit link removal $69 per domain.
Installing instructions:
======================================================================
Files: viXML.php (PHP Class to parse XML files, size=10k)
viXML_init.php (size: size=5k)PHP version: 4.3.10
Installation time: easy, 5-10 minutes, expertise: low to medium, need to copy and modify files,issue chmod if using cache system.
1. Optional create a directory in your server for the scripts and the Cache System eg. '/home/user/public_html/script/'
If using the Cache system, create a cache directory eg '/home/user/public_html/cache', chmod the cache directory to 777 to allow writing to the cache.3. Open the viXML_init.php and find // Start configuration here, include the class file
update the path specified in 1.: include "/home/user/public_html/script/viXML.php";Find the section: ----------- Start configuration ----------
Setup the variables to desired values.3. Copy the PHP Class file: viXML.php and the file: viXML_init.php in your server eg. '/home/user/public_html/script/'
Note: if you use different directories do open the files using the full path eg: '/home/user/public_html/script/'4. Ready: call your scripts to provide targeted search results
Donations: If you liked the viXML script contributions are welcome. Help me with the web hosting expenses and to maintain the script free of charge. Thanks for your support : )
Paypal Donation
Credits:
viXML Script created and maintained by Sergio Vargas-Sanabria, please use contact information on the header.
viXML script - Comments and Questions:
viXML Blog and Help
Post questions and comments
05 Feb 2005
Vote viXML, review the script:
MORE WEBMASTERS VALUABLE HELPS AND TOOLS:
viXML Parse Web Search results in your web pages using Gigablast Metasearch XML Services.
READ_COMMENTS for CutePHP NEWS: script to parse comments for specific topic - news
Java and PHP How to run PHP using Java OnClick
Parse PHP pages into HTML with Apache directive
| Contact |
Request a Quote | CNC Qualifications | Links and Resources Sergio Vargas-Sanabria © 2005
PEOPLECNC.COM belongs to VLialin Inc.US based company. All Rights Reserved,
viXML How to add pre-made searches to pages, How provide Metasearch results to pages dynamically, Creating thematic Directories using Search Engines, How to add content to pages using popular searches, script to avoid duplicate content, PHP script to add search results to sites.