$value)
{
if(!file_exists($value))
{
mkdir($value,0777);
}
}
if($pd_id != null)
{
$pd_folder = $array[3].'/'.$pd_id;
if(!file_exists($pd_folder))
{
mkdir($pd_folder,0777);
}
}
// $fp = fopen($path.'/ci_logs/sample.html','a');
// $data = '
WELCOME
';
// fwrite($fp, $data);
// $data = 'DSKFHLKSDFNSLDKN
';
// fwrite($fp, $data);
// fclose($fp);
// $str = file_get_contents($path.'/ci_logs/sample.html');
// echo $str;
// $log = MYLOG::logFunction2($path.'/ci_logs');
// $log->info('EXTERNAL LOG IINFO',array(1,2));
// $log->error('EXTERNAL LOG ERROR',array(3,4));
// $CI =& get_instance();
// echo $CI->config->item('log_path');
// log_message('error','Hi this');
// $CI->config->set_item('log_path', $path.'/api_request_logs');
// echo $CI->config->item('log_path');
// log_message('error','Hi this');
}
}
?>