note 12239 deleted from ref.com by danbrown
| From: | danbrown@php.net | Date: | Mon, 21 Dec 2009 17:18:03 +0000 |
| Subject: | note 12239 deleted from ref.com by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164239@lists.php.net to get a copy of this message | ||
Note Submitter: kevin at vcconcepts dot com
----
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.