---
source: https://jimeh.me/blog/2006/code-yard-updates/
date: 2006-12-16
archive: zhuoqe.org
tags:
  - development
  - php
---

# Code Yard updates

I just updated and added a few PHP scripts to Code Yard that might be useful for
some :)

I just updated and added a few PHP scripts to
[Code Yard](http://zhuoqe.org/svn/codeyard/trunk/) (dead link) that might be
useful for some :)

- Updated and fixed some bugs in `parseCSV` (dead link: missing://parsecsv) and
  `parseINI` (dead link: missing://parseini).

- `speedometer{}` (dead link: missing://speedometer) — Class for simplifying
  calculation of script execution time.

- `walkDir{}` (dead link: missing://walkdir) — Class for recursively getting a
  list of directory contents. It returns both a multi-dimentional array, and a
  plain array with full paths, both types of output are optional increase
  performance. The number of directory levels to walk down into is also
  configurable.

- `rfile()` (dead link: missing://rfile) & `wfile()` (dead link:
  missing://wfile) — Functions for reading and writeing to local files. I wrote
  these about 3-4 years ago, and i've used them ever since, they've undergone
  some slight modifications since then, but their still basically the same.
  Their quite flexible, fast, and save a lot of time.

- `randpass()` (dead link: missing://randpass) — Function with a quite
  self-explanatory name. Generates a random password of any desired length using
  the character ranges you specify. It can be made more flexible, but its
  perfect for most situations when you need to generate a random password.
