Click to See Complete Forum and Search --> : Looking to bullet-proof


s_shrum
01-28-2004, 03:13 AM
I wrote this in like 3 hours with no knowledge of the 12-or-so functions that I used. It works, but will choke if various things are not in place.

Looking to bullet-proof it and maybe even tighten it up.

http://code.shrum.net/scripts/postfiles.php/postfiles.txt

TIA

Moonglobe
01-28-2004, 03:36 AM
for those massive echo statements you might try heredoc syntax (types.string at php.net). also, if you're running this through the CLI (as you should be) just use $argc and $argv, they're automatically registered as global by default in the CLI.