fatwombat Posted April 27, 2007 Share Posted April 27, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.