mail us  |  mail this page

products  |  company  |  support  |  downloads  |  isp services  |  contact us

Tech Info - PHP Web Tool Kit

This is the first version of our PHP web based tool-kit for manipulating and debugging web sites. A 'rag-bag' of tools for fixing 'screw-ups' and other sundry highly technical issues. Hope it may be of some use to you and saves you some time (check our links pages for all the primary references).

Health-Warning This is made available at your risk, we make no warranty that the code has no bugs in it or that it will even do what we think or say it will. Like all downloaded software we urge caution if you use it.

History Lesson (..or why we built this kit)

When we set out on our voyage of discovery (updating our web site in 1999) we started to create a mixture of Javascript and Apache SSI based pages. Like all folks who do things in a hurry (short-hand for not reading all the documentation) we hit a problem which basically meant that we had to modify about 400 files.

Immediately after the panic (we had a very nice panic actually) we looked at the available techniques for fixing our 'little local difficulty' which included shell script, PERL and some other stuff all of which would do the job and all of which would require us to invest time and effort learning (remember we were 'newbies'). But we had also made a corporate decision (pretty impressive eh!) that our future direction was web based for everything (we are going web-based for all our product configuration tools) and since neither shell scripts or PERL have much relevance in that context we decided to investigate a web based solution. And we decided on PHP (bit of a toss up over Python at the time whereas now we would use Ruby at the drop of a hat).

So we fixed our immediate problem (replace strings in all relevant files) using a 10 line down-loaded PHP script (probably from panic-central.com), then discovered that we needed to conditionally add lines .. and delete lines .. and publish webs and so it grew.

Web Kit Functions

This link takes you to an eviscerated (whoa! even the spell check doesn't have this word) page (the buttons call invalid pages - except the phpinfo section) which contains the GUI interface to the web tool kit page and describes the functions and their parameters.

The Web Kit

The kit consists of four PHP pages (actually the initial page does not need to be php its a straight forward multiple form page....but we were young and innocent at the time - well innocent at least)

Notes:

  1. To capture the modules just click 'save as' a php module in an appropriate cgi-bin directory. If you are using netscape (4.x) you may have to 'copy' and 'paste' into a suitable text editor and then save. Or you can download them as a zipped file.

  2. If you are doing very large web updates the 'Update and Synchronise' sometimes 'times out' with an FTP error and takes a good 2 mins to do so. Right now we do not have a good explanation for this but suspect it's our FTP server (ProFTP). We are investigating .. but if you find out before we do .. let us know.. In the meantime the workaround is to update sub-directories and use the 'single' option when updating the web root or use the directory to directory updates if your filesystems are all on-line.

  3. The Web Update function (in update.php) is implemented as a thingy object mostly as an experiment in writing PHP objects but we think the implementation is cleaner than in-line code would have been (trying to appease the OO crowd!!).

  4. All you should have to do to modify for your site is:

    1. Either modify or remove the 'virtual' lines since they contain our header and trailer and other page formatting stuff.
    2. modify as necessary every 'action' to reflect your 'cgi-bin' directory.

    If you need to do more contact us and we'll fix these instructions or add a readme.txt to the zip.

Technical Explanation

One day (real soon now) we'll add some notes but there are comments fairly liberally throughout the code.



Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.

Tech

tech home
web stuff
dom stuff
css stuff
language stuff
regex stuff
rfc stuff
protocol stuff
cable stuff
lan wiring
rs232 wiring
howto stuff
survival stuff
wireless stuff
ascii codes
data rate stuff
telephony stuff
mechanical stuff
pc stuff
electronic stuff
tech links
open guides
RSS Feed Icon RSS Feed

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Mozilla

web zytrax.com
add page to facebook add page to technorati.com add page to digg.com add page to del.icio.us add page to furl.net add page to stumbleupon add page to reddit.com mail this page feature print this page

HTML Stuff

W3C HTML 4.01
HTML5 (WHATWG)
W3C Page Validator
W3C DOCTYPE

XHTML Stuff

W3C XHTML Basic
W3C XHTML 1.1
W3C CSS1
W3C CSS2.1

DOM Stuff

W3C DOM
W3C DOM Events
Gecko DOM
MSIE DOM

Usability/Access

usability.gov
W3C -WAI
Web Style Guide
Michael L Bernard
WebAim.org

Jolly Useful

Peter-Paul Koch
A List Apart
Eric Meyer on CSS
glish.com
DOCTYPE definitions

Our Stuff

Our DOM Pages
DOM User Guide
DOM Explorer
DOM Navigation
CSS Techniques
CSS Short Cuts
CSS overview
Oh Really!

Javascript

ECMA-262

Pop-out Menus

webmasterbase.com
Brainjar Menubar
Our Lite JS Menus
Our CSS Menus
Tigra Menus

printer friendly

Print Page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2008 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by super.net.sg
web-master at zytrax
Page modified: February 19 2008.