Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP-WIN] about php4 COM functions..

0 views
Skip to first unread message

Kevin Ferron

unread,
Mar 31, 2001, 4:30:42 PM3/31/01
to
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 ke...@vcconcepts.com if
you would like to discuss this further.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows...@lists.php.net
For additional commands, e-mail: php-wind...@lists.php.net
To contact the list administrators, e-mail: php-lis...@lists.php.net

0 new messages