PHP upload script problems :(

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
d-lexy
Forum Newbie
Posts: 4
Joined: Mon Dec 01, 2003 11:31 am
Location: Toronto, Canada
Contact:

PHP upload script problems :(

Post 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
nemode
Forum Newbie
Posts: 12
Joined: Sat Nov 01, 2003 11:20 am

Post by nemode »

d-lexy
Forum Newbie
Posts: 4
Joined: Mon Dec 01, 2003 11:31 am
Location: Toronto, Canada
Contact:

Post 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
nemode
Forum Newbie
Posts: 12
Joined: Sat Nov 01, 2003 11:20 am

Post by nemode »

sorry mate. havent a clue y its outputing that...
it worked fine for me.

soz
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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.
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

If the upload worked,
just turn off warnings with error_reporting()
d-lexy
Forum Newbie
Posts: 4
Joined: Mon Dec 01, 2003 11:31 am
Location: Toronto, Canada
Contact:

Post 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!
Post Reply