TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 367
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 72
  • Total: 73
  • @rjen

Downloads problem

Started by PSPXavier, April 05, 2006, 01:06:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PSPXavier

Ae my site I upload alot of files. The biggest one I've tried so far doesn't work....I noticed that before, if the file was a file type other than allowed I would get this message:
2: unlink(): No such file or directory
File: /home/pspzone/public_html/smf/Sources/TPdlmanager.php
Line: 93



But now when I try uploading a file that is a zip(also tried rar, both of which are allowed) and is about 4 MB, I get the same message...I know it's not bigger than the size allowed, because I even tried it with the limit at 50000 KB..

Any thoughts? Thanks!

IchBin

You may have set the limit on filesize with TP, but what about your PHP setting?

PSPXavier

Umm...I'm not exactly sure, how do I find out/set a limit on my PHP setting?

G6Cad

You can set the filesize for uploads and file extensions in Adminpanel/Downloadmanager/Settings

But this have been up before and didnt work all the time for all.
We hope this will work for you anyway :)

TwinsX2Dad

Most often, you cannot change it. 2MB is the PHP default. 90-95% of Web hosts will not change it. Due to the way PHP integrates with the web server, values higher than 2MB can cause server stability problems. I would be surprised if you could find many shared Web hosts who would consider offering more than 2MB. You might find some new support tech, unaware of company network policy who might push you up a bit more, but on the next server reset, you'll be back to where you were. As a Web provider, I know we need to ensure stability and performance for all users on each server, regardless of the requirements of a few. Many host TOS even forbid certain types of download provisions, especially on shared accounts.

You will even find some dedicated server packages which have locked PHP limits.

PSPXavier

So you're saying I can't upload anything bigger than 2 MB?

G6Cad

I can upload bigger files than 2mb on my hosting service, so i guess i must be one of the lucky ones.

Cant you splitt the bigger files in zip or rar archives?

TwinsX2Dad

Quote from: PSPXavier on April 05, 2006, 11:18:53 PM
So you're saying I can't upload anything bigger than 2 MB?

In most cases, you can't. A shared Web host which has their PHP settings enabled to allow larger files will often be deficient in other ways, most often speed or security. A workaround where you upload a small file, then overwrite it with the real file (same name) usually works, but isn't conducive for public or member upload/download. The Webmaster doesn't need to use php for this, since you have FTP access.

Quite possibly, your only solution - in fact, the only intelligent solution - for an interactive site (especially one with file downloads) is a dedicated server. If you're unfamiliar with the workings of a d-server, or even a VPS, you are in for a whole new learning experience.

The bottom line is this: shared service is not intended to allow downloads or heavy MySQL usage. An interesting thing is the service offerings which promise the most bandwidth are usually the least capable of handling the load.

PSPXavier

Okay-- thanks for you help...just another (stupid) quick question...(I don't really wanna waste a whole thread for it)...

I have TP installed on my forum(obvioiusly), along with a few other mods. Will upgrading from 1.0.5 -> 1.0.7 mess anything up?

TwinsX2Dad

I'd go with 1.1 RC2, personally. I had issues trying to upgrade to 1.0.6 & 1.0.7, but none migrating to RC2. Still, others have reported smooth sailing into the .7 version.

More on servers can be found here:  http://www.tinyportal.net/smf/index.php?topic=3912.msg33162#msg33162

This website is proudly hosted on Crocweb Cloud Website Hosting.