...

View Full Version : Urgent cause to files larger than 2MB



mazazino
08-09-2007, 08:09 AM
So i wanna upload files using ftp functions in php or using using move_uploaded_file()..but the thing is my host has WebShell3 that only allows uploading files less than 2MB..i talked to my web host and they said that they can't allow uploading files more than 2MB large..so i thought of making a .htaccess file but the web host told me its impossible if i'm on windows..so is there another way?..change web host?..im pretty desperate bcoz i need to upload mp3 files,setup files, flash files...and other text documents that will be larger than 2MB..any ideas?

StupidRalph
08-09-2007, 08:21 AM
Either your webhost is misinformed or lying to you.

I just created a .htaccess file on my laptop with XP sp2.

1. Open Notepad
2. Write the configurations.
3. Save as...
4. Name it .htaccess
5. Change the file type from .txt to all files.
6. Save and Shake Head in Disappointment at Web Host.

CFMaBiSmAd
08-09-2007, 08:54 AM
If the web server is Apache (and the hosting company has not specifically configured it to disallowed the settings affecting upload size to be changed in a .htaccess file) you can create a .htaccess file to modify the necessary settings.

So, the questions become, what web server is it, and if it is Apache, has the hosting company prevented .htaccess settings that affect upload size?

Your post mentions Windows, but that is not the deciding factor, because Apache runs under Windows, but does your hosting company offer that combination?

WebShell3 is a hosting control panel (the the best of my knowledge) and it is also not the deciding factor (unless it has a user settings section that affects the local PHP settings.)

Short answer - If you want to use a web browser/HTML form to upload larger files and your hosting company can't or won't change the maximum upload settings, or the web server is not Apache, or it is Apache and the necessary .htaccess settings have been disabled, you will need to find a different way or a different host.

If this is just for your own use in managing the site, either the control panel file functions should allow you to upload larger files, or you would need to use an FTP client (assuming the hosting company provides an FTP server.) Note: The PHP FTP functions implement an FTP client for the purpose of sending/getting files from an FTP server. The PHP FTP functions do not implement a FTP server that you could connect to using an FTP client.

Could you post a link to your web hosting company's web site?

mazazino
08-09-2007, 12:53 PM
my web host is www.ixwebhosting.com
if anyone could tell how to get this particular web hosting service to change my upload limit I would appreciate it..its real urgent..

mazazino
08-09-2007, 12:58 PM
Either your webhost is misinformed or lying to you.

I just created a .htaccess file on my laptop with XP sp2.

1. Open Notepad
2. Write the configurations.
3. Save as...
4. Name it .htaccess
5. Change the file type from .txt to all files.
6. Save and Shake Head in Disappointment at Web Host.


Ok, ill try it, but i need to know the configurations, what should i exactly write in the file?

NancyJ
08-09-2007, 02:06 PM
The web host isnt saying the .htaccess wont work because they're stupid and uninformed, they're saying the .htaccess wont work if he's on a windows SERVER, nothing to do with his pc. Presumably they're using IIS, since their servers also run asp.

If you're talking about you personally uploading files to your webserver through your control panel, just use a real ftp client, which wont have such limitations.

If you're talking about running a script on your server allowing users to upload files there's nothing you can do about your hosts restrictions. Their servers, their rules.

StupidRalph
08-10-2007, 10:06 AM
Either your webhost is misinformed or lying to you.

I just created a .htaccess file on my laptop with XP sp2.

1. Open Notepad
2. Write the configurations.
3. Save as...
4. Name it .htaccess
5. Change the file type from .txt to all files.
6. Save and Shake Head in Disappointment at Web Host.

Really, some people really need to lighten up instead of being the post police. If you were to discount the last half of step 6 you will see that I was trying to help. Even if I misunderstood the post (which hasn't been proven as of yet) I was trying to help. Isn't that what the forums are for, helping people?

Get off your high horse and stop giving people negative rep for no reason. If you have a problem with my statements then PM me to discuss it instead of leaving me nasty remarks and negative rep. [/VENT]

I apologize to everyone else on the forum who had to read this. I just felt it was really unfair and a cheap shot.

StupidRalph
08-10-2007, 01:20 PM
they're saying the .htaccess wont work if he's on a windows SERVER, nothing to do with his pc. Presumably they're using IIS, since their servers also run asp.
I'm using .htaccess on my SERVER which is windows.

The link to the hosting company wasn't available at the time of my post. Although, I see your reasoning for suggesting they're more than likely using IIS since they support ASP. But since the thread starter mentioned .htaccess it led me to believe that they chose something running Apache.

Thread Starter, could you clarify your intentions a little more please. CFMaBiSmAd has a really insightful post that may help you out.

CFMaBiSmAd
08-10-2007, 02:20 PM
if anyone could tell how to get this particular web hosting service to change my upload limit I would appreciate it..its real urgent..You are going to need to provide some specific information.

There is a lot of irrelevant information in your first post and it is not clear if you are asking about the upload limit for a PHP script that you are writing or if you are attempting to upload your own content to your site using your control panel, an FTP client/server, or your own file management PHP script? What exactly are you doing? You also need to tell us what web server your hosting package has?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum