I seem to be having some issues with my code, particularly with the fopen()
command.
Is this the correct way to write images to a file? Would I also need to include r
if I want to read from that image file later?
Here is what i have.
$boiler_img = $_FILES['boiler_image'];
$dir = "images/boilers/";
$myfile = fopen("images/Boilers/"".$boiler_img.", "w") or die("Unable to open file!");
fwrite($myfile, $boiler_img);