I Variants PHP kullanarak bir bayt dizisi oluşturmaya çalışıyorum. Ancak, ben o iş yapmak için görünmüyor olabilir. İşte bir örnek kod:
$ie = new COM("InternetExplorer.Application");
$ie->Visible = true;
$ie->Height = 500 ;
$ie->Width = 700 ;
$post = array (ord('p'),ord('='),ord('1')) ;
$v = new VARIANT($post, VT_ARRAY|VT_UI1);
$ie->Navigate2("http://host/web/echo_request.php",0,'',$v) ;
Kod bir hata üretir:
Fatal error: Uncaught exception 'com_exception' with message 'Variant type conversion failed: Type mismatch.type conversion failed: Type mismatch.
I http://fi2.php.net/manual/en/com.constants.php gelen varyant türü için kombinasyonları her türlü ile denedim
Herhangi bir yardım büyük beğeni topluyor!