Forum Moderators: coopster

Message Too Old, No Replies

None of the image upload scripts work

all I do seems correct

         

merijnvw

9:50 am on Nov 8, 2008 (gmt 0)

10+ Year Member



Hi, I have a place for a banner on my website, and i I want everyone to be free to put their own advert in it. Just as someone upload's it's own banner and URL, the last one is kicked out. This will improve my site traffic.

But i have problems with the uploading script. I tried dozens of php scripts from the internet, none of it works for me. I set the permission to 777. Is there another thing i should do? Any suggestions to get this to work?

venelin13

2:12 pm on Nov 8, 2008 (gmt 0)

10+ Year Member



In order someone to be able to help you, you should post the PHP code you are using for the upload functionality. Reading the code, we may determinate various problems, related to the PHP/Apache settings, such as register_globals and so on.

So, post the entire form code here - both the HTML code you are using to build the upload the form and the PHP code, which is supposed to handle the uploads.

coopster

4:53 pm on Nov 8, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, merijnvw.

none of it works for me.

When you say it doesn't work, what specifically is not working? Is the script executing? Does the file look like it is uploading? What error messages are you receiving?

merijnvw

1:40 pm on Nov 9, 2008 (gmt 0)

10+ Year Member



Hey, i posted a link to the zip containing the files, but it is deleted, isn't that permitted?

When i submit it in the form, the loadbar in the status bar is growing so it looks like it's uploading, but after that, I'm redirected to an empty page instead of that I get the thank you message, and the file that should be in the folder isn't there.

Merijn

Anyango

9:07 am on Nov 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about posting the code, here, that processes your file upload

coopster

4:58 pm on Nov 10, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Well, I'm not so certain that is going to help us any ... it actually sounds like a configuration issue of sorts. Perhaps the file is not being uploaded, too big, wrong permission, etc. The error message will be telling, turn up error_reporting [php.net] or check your logs for messages first.