Click here to Skip to main content
15,913,027 members

Comments by JennyChua (Top 7 by date)

JennyChua 18-Feb-14 1:42am View    
Owhh...sorry..SA..my bad...yes...for *unix
JennyChua 17-Feb-14 23:12pm View    
I just want to know how to create a folder based on original file name in tar.
Is it can use the common cp

cp mytesting.tar.gz mytesting.

wrong right?
JennyChua 17-Feb-14 21:33pm View    
I work in DOS actually

I still got the same error

tar: ./mytesting201402070230: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
JennyChua 15-Jan-14 22:35pm View    
thanks Peter..appreciate it.
Already solve myself,just need to escape the -
JennyChua 22-Aug-13 4:14am View    
//process uploaded file
case "upl":
require_once("include/class_upload.php");
$upload_class = new upload_files();
$upload_class->temp_file_name = trim($_FILES['userfile']['tmp_name']);
$upload_class->file_name = trim($_FILES['userfile']['name']);
$upload_class->upload_dir = e_CSFB_UPLOAD_TEMP_DIR;
$upload_class->ext_array = array(".txt",".zip",".flg",".xls",".csv",".rar");
$upload_class->max_file_size = 2048576;
$userfile = str_replace(' ', '_', $userfile);

$valid_ext = $upload_class->validate_extension();
$valid_size = $upload_class->validate_size();
$file_exists = $upload_class->existing_file();
$max_file_size =$upload_class->get_max_size();
$file_size = $upload_class->get_file_size();


- It just take only the first letter.