Problem with PHP script in 1 and 1 hosting

I have a problem.

I wrote an upload form on my html page. Then the php download file was generated. I added both to my web server 1 and 1. when I click on the script on the direct web page - it starts to load, however the domain name file /upload.php is where there is nothing (empty) when I check the destination folder nothing there is.

any gurus wishing to help with this - i'm stumped - is this my first time doing php?

0


source to share


3 answers


Have you checked what the tag <form>

has enctype="multipart/form-data"

?

Posting the source code will help you get better quality answers.



Also, in upload.php file try to do print_r($_FILES);

to list files.

+3


source


The question is rather vague, but most often these problems occur due to incorrect folder permissions.



Try chmod 666 on the folder you are writing.

0


source


Try another error check. Take a look at this IBM tutorial on Debugging Techniques for PHP Programmers. Some of the suggestions only work in the IDE, but there is a lot of debugging using print statements (simple but effective).

0


source







All Articles