Well, when drupal 6 comes out you can specify php 5 only. So, that will help you out then.
One thing you can do is see if a function exists. If it doesn't exist throw an error and don't let it be enabled.
Do you need to use curl? Or, is drupal_http_request a function that will work in it's place?
Does this work for multiple users of a site or just one?
I like this... looks like a promising start.
Matt Farina
Geeks and God Co-Host
www.mattfarina.com
Being a fan of Twitter, and a user of Drupal, I made my first module today.
Once enabled, the preferences page for it lets you put in a Twitter.com username and password, then you can place the TwitterBlock block anywhere you want on your drupal site.
It just displays your friends' most recent twitter post, along with their avatar.
It needs TONS of work, but you can see the basics at http://www.geekbrownbag.com
Cool, huh?
Requires curl because that's what the twitter API supports and PHP5 because I'm lazy and use file_get_contents.
I would love to figure out a way to throw an error if you tried to enable it on a system that didn't meet the requirements.
The Geekons Christian Technology Podcast (not as good as G&G, but whatever)