csckid Posted July 2, 2010 Share Posted July 2, 2010 $mybyte[]=$_POST['myfilebyte']; $filem = file($mybyte); Is there any command that will convert byte into file? Thanks Quote Link to comment Share on other sites More sharing options...
gevik Posted July 2, 2010 Share Posted July 2, 2010 I think you have to save your byte stream to a temporary file first. Quote Link to comment Share on other sites More sharing options...
AbraCadaver Posted July 2, 2010 Share Posted July 2, 2010 It's hard to tell what you're doing, but file() reads a file, plus you are assigning the data to an array first. Try: $mybyte = $_POST['myfilebyte']; file_put_contents('/path/to/file', $mybyte); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.