I am coding a signup form:
when account is created then depending on admin setting, a SMF forum account also will be created for that user upon signup. To do so I thought of two ways:
1) create another file to insert a user row in forum db and include this script in signup code.
2) instead of including this file we can post the request to it via curl. In this way forum acc creation will be done in background so if any error occurs in forum acc creation, it won't stop signup processing. I think forum acc creation error should not affect on signup process.
So which way is better?
curl or include?