Home
downloads
About me
Homepage of:
Rop van Duijne
Nijmegen, Holland
Contact:
Click on the logo below
to send a message to
ropnet.nl
mail
Tools
PHP Scripts
I have developed a lot of scripts for use on my websites. Some of them could be of use to other developers and I would like to present them on this page. Most of these scripts are written with the specific environment in which they have to operate in mind, so some work was needed to make them more commonly usable. Most comments in the original scripts were in Dutch, for instance...
Below are the scripts I did manage to rebuild/translate. I intend to expand this page in the future.
Collapse-menu - Two-level collapsible menu
This is a design-idea in PHP and Javascript. The menu uses cookies to maintain the state of the main buttons (collapsed or not-collapsed) between pages. Changing the state of the buttons does not require a page reload.
Tablemaker - Convert plain text to HTML-tables
How many times do you have to build a table from plain text, such as an email? The Tablemaker can help you with that tedious job (if you can run PHP on your machine). Free to download.
Click here for an online Tablemaker-demo.
Downloadcounter - Count downloads from your site
This simple script keeps record of the number of downloads and registers the last date a download-link was used. An administrative script is included.
Instructions for installation and use are in the readme-file, included in the zipfile.
The scripts work correctly on an Apache-server, in a Windows environment as well as Unix. Free to download.
08-01-2008: Small function added to prevent counting of visits by search engine-robots.
05-07-2007: A bug in the retrieve-function has been fixed.
Users3 - A simple user authentication script
• Uses a MySQL-database instead of cookies.
• Users can be given a different level of authentication that can be retrieved on every page.
• The username can also be retrieved on every page.
• Only a few lines of code are needed for a page that needs to be password-protected. (If you don't need the different levels or the username, only one line will suffice)
• Users have to log in every time they visit the (part of the) site that needs authentication.
• Possibility to set an expiry-time, needed when a user does not logout correctly.
• The date and time of the most recent visit per user is stored in the database and visible for the administrator.

You can find more details (such as instructions for the installation and examples) in the readme-file, which is included in the zipfile. The scripts work correctly on an Apache-server, in a Windows environment as well as Unix. Free to download.
Last update: 21-09-2008