note 61232 added to class.com

From: Date: Sat, 28 Jan 2006 23:49:39 +0000
Subject: note 61232 added to class.com
Groups: php.notes 
Request: Send a blank email to php-notes+get-102641@lists.php.net to get a copy of this message
It seems that PHP does not support setting of properties with arguments. This is how I got around the problem: // Object with method I want to set $auth = new COM("AUTHXOCX.AuthXOCXCtrl.1"); // ScriptControl $oScript = new COM("MSScriptControl.ScriptControl"); $oScript->Language = "VBScript"; $oScript->AllowUI = TRUE; // Add out object to the control $oScript->AddObject('auth', $auth, true); // Create a VBScript function that allow me to set them $oScript->AddCode( 'Function fixAccess(accessname) auth.AuthDataReferrerEnabled(accessname) = 1 auth.AuthDataAuthentiXDBEnabled(accessname) = 0 End Function'); // Execute function $oScript->Run("fixAccess", $dir); ---- Server IP: 203.16.234.19 Probable Submitter: 211.30.122.3 (proxied: 10.0.1.2) ---- Manual Page -- http://www.php.net/manual/en/class.com.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61232 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61232&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61232&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102641) next »