em dung code nay`, anh em xem sai cho nao nha
em test mai khong duoc
em test mai khong duoc
Code:
$mani = $zip -> getFromName('META-INF/MANIFEST.MF');
if(strstr($mani,'Nokia-MIDlet-Original-Display-Size:')){
if(strstr($mani,'Nokia-MIDlet-Original-Display-Size:240,320'))
echo 'Day la dinh dang ban dau cua file!';
if(strstr($mani,'Nokia-MIDlet-Original-Display-Size: 240,320'))
str_replace('Nokia-MIDlet-Original-Display-Size: 240,320','Nokia-MIDlet-Target-Display-Size: 128,128',$mani);
}else{
$mani .="\nNokia-MIDlet-Target-Display-Size: 128,128";
}
$zip -> addFromString ( 'META-INF/MANIFEST.MF' , $mani);
$zip -> close ();