Jump to content

Archived

This topic is now archived and is closed to further replies.

Brandonius

Binary File Manipulation?

Recommended Posts

Is it possible to manipulate a binary file on the server with PHP?

For example, take an executable, seek to byte 1000, overwrite the next 6 bytes with new data, and save the modifed file?


Thanks!

Share this post


Link to post
Share on other sites
PHP has binary safe file functions, binary operators and with [b]fseek[/b] you can seek to a byte in a file so I'd say it's possible.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.