I am writing some installer phpware, i have decided to make a auto installer for it .
So i want the install envolve 2 files being uploaded, a index or install.php and a data.pak.
I want it not to be zipped or tared etc. and to use functions that come with PHP to allow 'universal' compatibility.
I know yabbse does it, but on closer inspection there must be a better way of doing things, here is what i want in the pak file:
header (to include dir, chmod, name, etc.)
file (Whole file)
next header
next file
etc.
yabbse does it by stating the length of each file in bytes and including it in each header, like this:
Read (header) first line, get file name, get size (x)
Read x bytes (y)
write file y
read next header
It also sets the dir as it goes along:
header get dir
write dir
next header
Any ideas on how to do this?