Jump to content

PHP Image Upload


fatwombat

Recommended Posts

Hi guys,

 

Need a bit of help uploading files.

 

$filename = "campaigns/" . $_SESSION['loggedin_agencycode'] . "_text_$newname.html";

$handle = fopen($filename, "a+");

$htmlcontents = fread($handle, filesize($filename));

fclose($handle);

 

Above is my code on the submit page, and it does not work, at the end of the page I put "<? print $htmlcontents; ?> to get it to print out the HTML on the page, obvisouly the HTML will actually take affect on the page, but it doesn't even send it through. Like it does not upload it.

 

Any ideas?

 

Thanks heaps.

Link to comment
https://forums.phpfreaks.com/topic/48902-php-image-upload/
Share on other sites

Archived

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

×
×
  • Create New...

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.