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 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2009
    Posts
    77
    Thanks
    2
    Thanked 0 Times in 0 Posts

    upload_max_filesize solutions

    im trying to make an art gallery site for my sister with free hosting, i need upload_max_filesize to be at least 3m
    ive tried many free hosting services and they are all 1.5m
    ive tried what these guys say
    http://www.openg.info/entry/php-cpan...access-php-ini

    which is put this in htdocs:

    .htaccess
    Code:
    #Enables mod_rewrite, otherwise all Rewrite directives below will not work
    RewriteEngine on
    #Activates php.ini config located in main folder to work also recursively for all subfolders, obviously replace your_cpanel_user with your full path, you find it in cPanel home page on the left it's called 'Home Directory'
    suPHP_ConfigPath /home/vol2/20x.cc/20x_6657899/public_html
    php.ini
    Code:
    upload_max_filesize = 3M
    post_max_size 8M
    memory_limit 128M
    max_input_time -1
    which just gives me a 404

    and ive tried running this, and it gives me the same old 1.5m every time
    index.php
    Code:
    <?php
    phpinfo();
    ini_set("upload_max_filesize", "3M"); // Think that's right...
    phpinfo();
    ?>

  • #2
    New Coder
    Join Date
    Dec 2009
    Posts
    77
    Thanks
    2
    Thanked 0 Times in 0 Posts
    i dont think the folder public_html exists actually

  • #3
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    I doubt a free host will allow ini file overrides, by whichever means.


  •  

    Posting Permissions

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