I'm trying to upload an image to post on user profiles. But each time that I try an upload script I get errors. I tried simply checking for any activity within $_FILES and $HTTP_POST_FILES with the following:
echo "<br />1." . $_FILES['userfile']['name'];
echo "<br />2." . $_FILES['userfile']['tmp_name'];
echo "<br />3." . $HTTP_POST_FILES['userfile'][name];
echo "<br />4." . $HTTP_POST_FILES['userfile']['tmp_name'];
echo "<br />5." . $_FILES['userfile']['error'];
echo "<br />6." . $_POST['userfile'];
echo "<br />7." . $_POST['userfile']['tmp_name'];
echo "<br />8." . $_POST['userfile']['error'];
The result is:
1.
2.
3.
4.
5.
6. filename.extension
7. first letter of filename
8. first letter of filename
Any help would be appreciated...