Posts from — October 2009
rawtracker 1.1 released
![]()
Rawtracker is an application written in PHP that you can add to your website that allows your users to track their United States Postal Service (USPS) packages.
Installation
Step 1: Upload all files from the rawtracker download to your website.
Step 2: Open plugins/configure.php and add your USPS account information.
define("USPS_USERNAME","***Your usps username goes here***");
define("USPS_TIMEOUT",'5');
You will need to get a USPS web services account (available for free here).
When you register for an account, it will only have access to the USPS test servers. The variable above can be changed to the following for testing:
After a few test requests are sent out, your account can then be upgraded to production level (and the URL will need to be changed back to the production servers).
Step 3: Adding rawtracker to your site is pretty easy.
In the header of your page, add the following:
<script type="text/javascript" src="rawtracker/js/rawtracker_popup.js></script>
<link rel="stylesheet" href="rawtracker/css/rawtracker.css" type="text/css" media="screen">
In the body add:
<input type="button" value="Track" onclick='trackLaunch()'>
Download
Rawtracker 1.1 can be downloaded Here.
October 31, 2009 2 Comments
Must-have tools for php developers
The following are tools that are invaluable to any php developer:
1) PHP Development Tools Project (eclipse)
Link: http://www.eclipse.org/pdt/
The PDT project provides a PHP Development Tools framework for the Eclipse platform. This project encompasses all development components necessary to develop PHP and facilitate extensibility. It leverages the existing Web Tools Platform (WTP) and Dynamic Languages Toolkit (DLTK) in providing developers with PHP capabilities.
2) ez_sql/ez_results – mysql wrapper library (Free)
Location: http://www.jvmultimedia.com/portal/
A great mysql library that features:
-Disk caching
-It is one php file that you include at the top of your script. Then, instead of using standard php database functions listed in the php manual, you use a much smaller (and easier) set of ezSQL functions
-It has excellent debug functions making it lightning-fast to see what’s going on in your SQL code
-Most ezSQL functions can return results as Objects, Associative Arrays, or Numerical Arrays
-Works with Smarty templating language
3) Smarty Template Engine (Free)
Location: http://smarty.php.net/
An excellent template engine for php.
One of Smartys primary design goals is to facilitate the separation of application code from presentation. Typically, the application code contains the business logic of your application, written and maintained in PHP code. This code is maintained by programmers. The presentation is the way your content is presented to the end user, which is written and maintained in template files. The templates are maintained by template designers.
4) mysql gui bundle 5.0 (Free)
Link: http://dev.mysql.com/downloads/gui-tools/5.0.html
A suite of GUI tools that includes: MySQL Administrator, MySQL Query Browser, MySQL Migration Toolkit, and MySQL Workbench.
Here is a list of some more tools that can be very helpful for php developers.
Editors
Pnotepad: http://www.pnotepad.org/
Pspad: http://www.pspad.com/
notetab: http://www.notetab.com/
notepad++: http://notepad-plus.sourceforge.net/uk/site.htm
conTEXT: http://www.context.cx/
php Designer: http://www.mpsoftware.dk/
Dev-PHP: http://devphp.sourceforge.net/
notepad2: http://www.flos-freeware.ch/notepad2.html
crimson editor: http://www.crimsoneditor.com/
textpad: http://www.textpad.com/
ultraedit (commercial): http://www.ultraedit.com/
Mysql GUI clients
Navicat (commercial) : http://www.navicat.com/
phpmyadmin: http://sourceforge.net/projects/phpmyadmin/
sqlyog: http://code.google.com/p/sqlyog/
Libraries
Propel: http://propel.phpdb.org/trac/wiki/Users/Introduction
Html purifier (Great for preventing XSS attacks): http://htmlpurifier.org/
Templates/Frameworks
phptal: http://phptal.motion-twin.com/
cakePHP: http://www.cakephp.org/
prado: http://www.xisc.com/
codeIgniter: http://codeigniter.com/
savant: http://phpsavant.com/
bTemplate: http://www.massassi.com/bTemplate/
vLibTemplate: http://vlib.clausvb.de/
Blitz (a php extension): http://alexeyrybak.com/blitz/blitz_en.html
php template engine:
fryPHP: http://fry.sourceforge.net/
October 21, 2009 3 Comments
Zencart local seo reports mod

Introduction
This module allows you track all of the keywords used to search you website. This can be helpful because it can give you an insight into what your customers actually need.

Installation
Step 1: Open admin/includes/boxes/report_dhtml.php
at line 20 where it says:
add right after:
step 2: open includes/modules/pages/advanced_search/header_php.php
at the end, add the following:
$keywordQuery = sprintf("INSERT INTO rawseo_keyword_reports (keyword,timestamp) VALUES('%s',now())",mysql_escape_string($_GET['keyword']));
@mysql_query($keywordQuery);
//end logging keywords
step 3: open includes/modules/pages/advanced_search_result/header_php.php
find the following line (around line 54):
$keywords = $_GET['keyword'];
add right after:
$keywordQuery = sprintf("INSERT INTO rawseo_keyword_reports (keyword,timestamp) VALUES('%s',now())",mysql_escape_string($keywords));
@mysql_query($keywordQuery);
//end logging keywords
step 4: Upload all files included in this zip file to your catalog
step 5: import db/rawseo_keyword_reports.sql into your database
You should now have another menu item under reports called “Rawseo Local Keyword Reports”.
Download
All files for this module can be download here.
October 20, 2009 No Comments
How to create a multi-file uploader for your website
If you own a website of any kind and have ever wanted to allow your users to upload multiple files from a single screen, you have a few choices:
- a java applet
- an active X control
- A Flash app
- multiple file input elements (which is messy and not very efficient)
The following is a much easier way to allow multiple file uploads. Using DOM (The Document object Model), one file upload box can be created making it much easier and more user-friendly.

Installation and usage
Installation is pretty easy. The download includes sample code that you can use on your website.
All files and example of usage can be downloaded Here
October 15, 2009 No Comments