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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    358
    Thanks
    2
    Thanked 0 Times in 0 Posts

    change "upload_tmp_dir" for PHP in htaccess file

    Hi,

    Is there a way to change "upload_tmp_dir" for PHP in htaccess file?

    by default the Tmp path is : /home/httpd/Tmp
    What if i want to change to /home/httpd/Tmp_123 ??

    It can be change in php.ini, but can htaccess also works with it? how?

    Thanks
    Thanks.
    =====================================================
    From NinjaTurtle
    ++http://ohmygoh.blogspot.com|http://technology.ohmygoh.com++

  2. #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,793
    Thanks
    3
    Thanked 441 Times in 431 Posts
    upload_tmp_dir is changable only at "PHP_INI_SYSTEM" level.

    PHP_INI_SYSTEM means - "Entry can be set in php.ini or httpd.conf"

    A .htaccess entry cannot be used to change upload_tmp_dir.
    Finding out HOW to do something is called research, i.e. keep searching until you find the answer. After you attempt to do something and cannot solve a problem with it yourself, would be when you ask others for help.


 

Posting Permissions

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