base_dir Error[Solved]

Last post 02-16-2012, 6:45 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  02-16-2012, 12:24 AM 73038

    base_dir Error[Solved]

    [Solution is about safe mod please off it ] 
     
    Hello Everybody,
    I am using lastest version of cuteeditor php
    I got an error from script after i put the files to server.By the way server is my own and windows 2008 i IIS 7.5
    Error is
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(C:\Windows\Temp) is not within the allowed path(s): (C:\Inetpub\vhosts\yavuzyilan.com\httpdocs\) inC:\Inetpub\vhosts\yavuzyilan.com\httpdocs\DoktorSitesi\Admin\phphtmledit\cuteeditor_files\Dialogs\phpuploader\include_phpuploader.php 
    Here is a screen.
     
  •  02-16-2012, 6:45 AM 73046 in reply to 73038

    Re: base_dir Error

    Hi ongun23,
     
    Please follow the steps below to set the TempDirectory
     
    1. Open "cuteeditor_files\Dialogs\phpuploader\include_phpuploader.php",
     
    2. Search function "InternalGetTempDirectory" and add temporary directory setting here:
        function InternalGetTempDirectory()
     {
      $dir=$this->TempDirectory;
      
      $dir="d:/temp1/temp1";//please change it to your actual temporary directory
        
      if($dir==null)
       $dir=PhpUploader_GetSystemTempFolder();
      $dir=str_replace("\\","/",$dir);
      if(substr($dir,strlen($dir)-1,1)=="/")
      {
       $dir=substr($dir,0,strlen($dir)-1);
      }
      return $dir;
     }
    3.   Test it again.
     
    Regards,
     
    Ken 
     
View as RSS news feed in XML