I'm very new to php but worked a lot with javascript and html before. I'm hosting a server with apache on my own computer just for testing php. I installed php as cgi on it and everything worked fine. I did some testing with php just to get a feel for how it works, but when I tried to make a file upload form and read the file with php:
//uploadFile.php
<html>
<head>
</head>
<body>
<form action="uploadFile.php" id="form" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadFile">
<input name="submit" value="upload" type="submit">
</form>
<?php
echo $_FILES["uploadFile"]["name"];
?>
</body>
</html>
I suddenly got the message:
No input file specified
Only that! It didn't even said it was an error. I tried this very simple php script that worked before:
<?php
echo "Working";
?>
But I still got "No input file specified". Every php file I try gives me this error, wich indcates that the problem is't in my code. When I tried a normal .html file without php it worked. I have tried researching it and it seams like peaple hosting on godaddy gets this message, but I found no solution for me.
Do anyone know the solution or have any tips on how to go about solving this problem.