David_B Posted October 10, 2010 Share Posted October 10, 2010 Hi guys, First post here, I'm fairly new to php, hopefully with all the great info here I'll be a pro pretty fast ;-) I'm looking at writing a script that will check 1. If a website/forum is open for registration. I.E users are allowed to register for an account. 2. If a website/forum is online. I imagine 2 is fairly easy, but I'm lost when it comes to checking is a website/forum is open for registration. Any ideas how I could pull this off? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/215573-check-if-open-for-registration/ Share on other sites More sharing options...
btherl Posted October 10, 2010 Share Posted October 10, 2010 You can fetch the page using curl (or a simpler method like file_get_contents()) and use strpos() to look for a string that only appears on the page when registration is open. Quote Link to comment https://forums.phpfreaks.com/topic/215573-check-if-open-for-registration/#findComment-1120921 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.