Need Help Creating A PHP Uploader
Moderator: General Moderators
Need Help Creating A PHP Uploader
I really need some help creating a PHP Uploader. It will run on my website, VideoTube. Users need to be able to upload files up to 8Mb. I sort of need a PHP code free, or really really cheap. I'm payin a fortune on server fees, I just built one and its hosted from my home. If anyone could help, I'd be really grateful.
Do you have any code for us to go off of? if so, please post it here. Also, i tried going to your domain and it said it was under constructions at Network Solutions. they do charge a fortune for web hosting. There are much cheaper hosting companies out there especially if your going to be using PHP (which they all pretty much support by default)
Wayne
Wayne
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
More Information
Right, I also have another alternative, which is to get a different domain name (been planning for ages), and scrap the network solutions server hosting. I was going to run the website from my home network server (56,000 GB space), 7GB RAM, 4.7Ghz Dual Core Processor. It cost me a fortune to build, and my internet fee's are pretty high too. I have 2 64Mb ADSL Line's with unlimited usage, which should provide plenty of bandwidth, and I have Microsoft IIS 6.0 Business Edition, with XP Pro.
I am currently running a Java Upload Applet from http://www.javaatwork.com. This was implemented April last year, but I didn't want to buy the software, so I'm running restrictions of 3Mb's file upload. This needs to support up to 25Mbs file upload, and have a progress bar. Do you know any applications that exist at a free price, or would it be easier to code a PHP Uploader. I chose the Java Uploader because it implemented a progress bar and changeable upload directories. Ideally, I do not want users to change the upload directory. I want all videos to be sent to a default folder on my network server, where they can be censored, and then converted to FLV.
In conclusion, I need a PHP or Java file uploader that will;
- Allow upload of 25Mbs
- Use PHP or Java
- Use HTTP to upload files
- Show a progress bar
- Only allow video files (doesn't matter which format)
If anyone can lend us a hand, please post a reply.
I am currently running a Java Upload Applet from http://www.javaatwork.com. This was implemented April last year, but I didn't want to buy the software, so I'm running restrictions of 3Mb's file upload. This needs to support up to 25Mbs file upload, and have a progress bar. Do you know any applications that exist at a free price, or would it be easier to code a PHP Uploader. I chose the Java Uploader because it implemented a progress bar and changeable upload directories. Ideally, I do not want users to change the upload directory. I want all videos to be sent to a default folder on my network server, where they can be censored, and then converted to FLV.
In conclusion, I need a PHP or Java file uploader that will;
- Allow upload of 25Mbs
- Use PHP or Java
- Use HTTP to upload files
- Show a progress bar
- Only allow video files (doesn't matter which format)
If anyone can lend us a hand, please post a reply.
Last edited by azwebs on Thu May 10, 2007 3:54 pm, edited 3 times in total.
-
nickvd
- DevNet Resident
- Posts: 1027
- Joined: Thu Mar 10, 2005 5:27 pm
- Location: Southern Ontario
- Contact:
Re: More Information
Um... How much hard drive space do you have?azwebs wrote:<snip> ...(560,000 GB space), 7GB RAM, 4.7Ghz Dual Core Processor. It cost me a fortune to build ... <snip>
I seriously doubt you have 560 terabytes...
Disk Space
Seriously, there are 20 HDD's in the machine, and there are 8 externals. Do you have any ideas for my uploader?
Ok let me get this straight.
A. you have this way over powered server that you are running out of your house that costs a fortune, 64mbs DSL (does that even exist?). Also you are using Windows XP pro on a server machine with 7 gigs of RAM and more data storage than a google data center.
B. You have a java applet that does what you want but can't afford blowing $89 on it even though you can afford the above.
C. You come here looking for a free solution to your upload script.
Did you forget to take your meds this morning?
A. you have this way over powered server that you are running out of your house that costs a fortune, 64mbs DSL (does that even exist?). Also you are using Windows XP pro on a server machine with 7 gigs of RAM and more data storage than a google data center.
B. You have a java applet that does what you want but can't afford blowing $89 on it even though you can afford the above.
C. You come here looking for a free solution to your upload script.
Did you forget to take your meds this morning?
Re: Disk Space
riiiiiiightazwebs wrote:Seriously, there are 20 HDD's in the machine, and there are 8 externals. Do you have any ideas for my uploader?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Ok folks, quit bashing the poster.
There are a few things you can do. What I have recently done, to begin coding uploaders, is to literally take the code example int he PHP manual and test it on my server. From there, just modify it to do what you want it to do.
There are thousands of upload scripts available in just about any PHP app these days. I know phpBB has one for avatar uploads (complete with file size limitation enforcement and the what not). Wordpress has one built in to their app as well.
Keep in mind that you are also going to have to modify your php.ini to allow files of that size to be uploaded. And with a system of that magnitude, why did you choose to go with XP instead of Linux for OS knowing you might be going to PHP as your server side processor? Also, are you actually able to use all 7GB of ram that you have? I have heard that even Vista caps at 3.
There are a few things you can do. What I have recently done, to begin coding uploaders, is to literally take the code example int he PHP manual and test it on my server. From there, just modify it to do what you want it to do.
There are thousands of upload scripts available in just about any PHP app these days. I know phpBB has one for avatar uploads (complete with file size limitation enforcement and the what not). Wordpress has one built in to their app as well.
Keep in mind that you are also going to have to modify your php.ini to allow files of that size to be uploaded. And with a system of that magnitude, why did you choose to go with XP instead of Linux for OS knowing you might be going to PHP as your server side processor? Also, are you actually able to use all 7GB of ram that you have? I have heard that even Vista caps at 3.
Re: Server
Ok. Enough of this. Lying about how your computer runs two operating systems at once won't impress anyone, and it certainly won't persuade anyone to help you out with some code. This forum is for developers, and people learning PHP, to help each other voluntarily. You don't need to try and look grand in order for people to give you some guidance. Stop it.azwebs wrote:The server has 7GB RAM.
I should have mentioned that it runs;
Windows XP Professional x64 Bit
Windows Business Server 2003
Sorry for the confusion!
If you want some help with some existing code, or some tips on how to write an upload script, explain what you need here.
If you want someone to jump in and provide you with a script for free, PM me and I'll move this topic to the Volunteer Work forum.
Above all though, you will have to be honest otherwise I'm going to recommend your posting privileges here are revoked.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Where did you get your 20TB hard disks from? I tried looking on microdirect but they don't seem to have them in stock yet.
I got impatient waiting for Intel to release the 8GHz Core Oxo so I made one last night myself. My Mac mini is working great now. If I could just get one of those hard disks of yours I'd be happy. I feel sick when I think about my 60GB hard disk now
Did you come from the future? It's 2007 here.
I got impatient waiting for Intel to release the 8GHz Core Oxo so I made one last night myself. My Mac mini is working great now. If I could just get one of those hard disks of yours I'd be happy. I feel sick when I think about my 60GB hard disk now
Did you come from the future? It's 2007 here.
Future Insight
No, unfortunately, I didn't come from the future. Any pc with sustainable RAM and CPU power can process up to 4 operating systems. Because of the volume and power required for Business Server 2003, I can only run that and XP. As for the disks, there are many 720GB disks, not one huge one.
On startup, the computer asks you to select an operating system to boot, so it isn't actually running two at once. As I said, any PC with enough space, RAM and resources for two OS's can take them. Try it out if you have two different versions. It can even be XP Home and XP Professional.
On startup, the computer asks you to select an operating system to boot, so it isn't actually running two at once. As I said, any PC with enough space, RAM and resources for two OS's can take them. Try it out if you have two different versions. It can even be XP Home and XP Professional.
-
nickvd
- DevNet Resident
- Posts: 1027
- Joined: Thu Mar 10, 2005 5:27 pm
- Location: Southern Ontario
- Contact:
Re: Future Insight
I still call bull-crap... 750gb * 30 drives...azwebs wrote:No, unfortunately, I didn't come from the future. Any pc with sustainable RAM and CPU power can process up to 4 operating systems. Because of the volume and power required for Business Server 2003, I can only run that and XP. As for the disks, there are many 720GB disks, not one huge one.
On startup, the computer asks you to select an operating system to boot, so it isn't actually running two at once. As I said, any PC with enough space, RAM and resources for two OS's can take them. Try it out if you have two different versions. It can even be XP Home and XP Professional.
okay... the forums hate google links... use "(750GB * 30) in TB" as your query for the (simple) math...
750 GB * 30 = 21.9726562 terabytes
*coughbullcrapcough*
