PHP class to create ISO image

2.8k views Asked by At

I wanted to know if this is possible?

I would like to create a cross platform Flash projector and files and than create an ISO from it for the user to download.

Google did not help me much so far...

1

There are 1 answers

2
Leigh On BEST ANSWER

Of course it is possible to do directly from PHP.

However, as one of the comments to your question states, it's probably going to be easier to call an external binary to do the work for you (Although not all hosts may have mkisofs installed).

If you really must do this from PHP, here's some useful references for you.

ISO 9660 specification (ECMA-119) - This is the file format for "ISO" image files.

PHP pack() and unpack() - These will help you manipulate binary data in PHP.

Once you're familiar with the file structure, you may be able to create some pre-compiled segments, and just patch them at various offsets as well as inserting the payload.

Good luck!