Page 1 of 1

PHP upload script problems :(

Posted: Mon Dec 01, 2003 11:31 am
by d-lexy
Hi guys!

I'm in a need for a PHP based upload script. I need the script to be as basic as possible.

I found a script that seemed to be really cool and simple. It is called hooble upload (http://hooble.t35.com/products/index.php).

I could not get it to work though, and after many emails with the creator of this script I was still where I began. Namely, I get an error when trying to access the upload page saying that there is an unexpected variable on line 109, which happens to be a $counter.

Anyway, It's not even important that I get the hooble upload to work, If someone can just point me to a really simple upload script that just UPLOADS without any extra options, I'd be really happy :)

Thanks in advance!!!
Alex

Posted: Mon Dec 01, 2003 11:35 am
by nemode

Posted: Mon Dec 01, 2003 11:46 am
by d-lexy
Nemode,

I actually got it working right away :D:D:D

however, I'm still getting an error

I get it twice, when I access the page and once I've uploaded the file

the error is: Warning: Cannot modify header information - headers already sent by (output started at /client/home/btvplus/docs/customers/upload/uploader.php:2) in /client/home/btvplus/docs/customers/upload/uploader.php on line 5

It has something to do with the cookie I think

Posted: Mon Dec 01, 2003 12:07 pm
by nemode
sorry mate. havent a clue y its outputing that...
it worked fine for me.

soz

Posted: Mon Dec 01, 2003 12:10 pm
by Pyrite
I think if you turn on output buffering in your php.ini , php will let you send header after headers have already been sent.

Otherwise, whatever header() function you have there needs to be at the beginning of your script.

Posted: Mon Dec 01, 2003 1:45 pm
by xisle
If the upload worked,
just turn off warnings with error_reporting()

Posted: Mon Dec 01, 2003 1:58 pm
by d-lexy
xisle wrote:If the upload worked,
just turn off warnings with error_reporting()
Did that, now it's cool :)

Thanks a lot everyone!

Turned out easier than I thought!

Thanks again!