Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Urgent cause to files larger than 2MB

    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?

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,107
    Thanks
    2
    Thanked 326 Times in 318 Posts
    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?
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #4
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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..

  • #5
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by StupidRalph View Post
    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?

  • #6
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    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.

  • #7
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    Angry Negative Rep for this?

    Quote Originally Posted by StupidRalph View Post
    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.
    Last edited by StupidRalph; 08-10-2007 at 10:14 AM. Reason: grammar
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #8
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    Quote Originally Posted by NancyJ View Post
    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.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #9
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,107
    Thanks
    2
    Thanked 326 Times in 318 Posts
    Quote Originally Posted by mazazino View Post
    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?
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •