i've uped the memory with a htaccess script in a foder;
php_value memory_limit 16M
Which works fine! but as soon as i add;
php_value upload_max_filesize 10M

i get an error! do they need to be seperated at all? commas, semi-colons? or am i not allowed to change this value? would it tell me here http://jynk.net/phpinfo.php

many thanks...

dan.

    that value is changeable in a .htaccess file, and it looks fine as is there. what error do you get? just a 500 error? if so check the apache error log, it should tell you why the error is happening.

      afternoon, thanks for the reply...

      error i get;
      Internal Server Error
      The server encountered an internal error or misconfiguration and was unable to complete your request.
      Please contact the server administrator, dan@dec0de.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
      More information about this error may be available in the server error log.

      Apache/2.0.46 (Red Hat) Server at www.jynk.net Port 80

      and the logged error;
      [Tue Nov 01 08:31:29 2005] [alert] [client 84.93.85.229] /home/virtual/site230/fst/var/www/html/rundel/rundeladmin/.htaccess: php_value takes two arguments, PHP Value Modifier, referer: http://www.jynk.net/rundel/rundeladmin/nav.html

      there are 20 or so of these errors, all with links leading to the directory with the .htaccess file. do you think i'm just not allowed to change this value via htaccess. I can't change the php.ini file.

      thanks!

        Quite possibly your host has configured the server with an AllowOverride directive that prevents you from using your own .htaccess, or at least most of the functions possible in htaccess. They often do this on shared servers for good and bad reasons. You will have to ask them as it is for sure that they will have set things up to prevent you accessing or viewing any base level .htaccess files as well as the root config files.

          its weird how it says "php_value takes two arguments, PHP Value Modifier" as if in your htaccess file you have a php_value directive but only one argument on it.

            i think there are 2 php_value memory_limit 16M
            php_value upload_max_filesize 10M, when the htaccess has the 2 requests i get an error. But if i use one alone in the file they both work?!* so the max_upload thing can't be forbidden? any ideas?
            thanks...

            htaccess file;
            php_value memory_limit 16M
            php_value upload_max_filesize 10M

              ah. the line break from my application wasn't recognised! thanks for the help guys...

                Write a Reply...