about php4 COM functions..

From: Date: Sat, 31 Mar 2001 22:34:44 +0000
Subject: about php4 COM functions..
Groups: php.windows 
Request: Send a blank email to php-windows+get-6416@lists.php.net to get a copy of this message
I thought i'd share with those of you unfamiliar with one of the cool things about developing php on win32 systems.. http://www.phpbuilder.net/columns/alain20001003.php3 This is a good article, but i don't think the author hit the nail on the head showing how useful this can be. Now, checkout this article: http://www.4guysfromrolla.com/webtech/040300-1.shtml Notice how he describes 1) how to build a com object & 2) how to call and use the com object from ASP. In php, this is how you would call the same object: <? $instance = new COM("Checkyear.LeapYear"); $isleapyear = $instance->IsLeapYear($year); $instance->close(); if($isleapyear) { echo "The <b>$year</b> is a leap year"; } else { echo "The <b>$year</b> is not a leap year"; } ?> I hope this helps someone.. you can contact me at kevin@vcconcepts.com if you would like to discuss this further.

« previous php.windows (#6416) next »