This to me is an advanced topic for someone who knows very little about PHP. But I will try my best to frame this question so as to sound somewhat helpful.
I have a client that has a PHP based CMS (Content Management System) where users need to register much like a discussion board. However he also has a portal where users must register.
The client has hired me to write some ASP code that adds the user data to the CMS system also when they register with the Portal.
Long story short I thought great I can write a function that connects to the mySql db and disco we'd be done.
However I get an email explaining that I should use a PHP method to accomplish this.
I get this email to explain that they wrote there own method on the PHP side....
Email text follows.....
[To faciliate the "global login" system through Mambo, we have simply added 2 lines of code to the mosMainFrame::login() method (in includes/mambo.php). As long as you are using this method to perform your automated login, you do not need to worry about the rest of our custom code - everything will be handled automatically.
You cannot, however, simply insert a row into the mos_session table and set a cookie to perform the login - you MUST use the mosMainFrame class (directly or indirectly) to perform the login.
As stated, we've added 2 lines of code to mosMainFrame::login() to instantiate our custom UserManager class (in globe/class_UserManager.php), which performs the tasks necessary to login to all of the other web applications. If you really must bypass the mosMainFrame::login() method, you can instantiate the UserManager class yourself (passing a mosUser instance to its constructor, for the user who's logging in) and then call the UserManager::login() method.
However, I strongly recommend that you use the mosMainFrame::login() method if at all possible, as this will make the integrated login system completely transparent to you - it will "just work" with no further intervention.]
End of Email text
I believe what I have here is a either one of 3 things. 1. a PHP programmer that thinks this can easily be done. (I'd like to see how)
Some one with a very wishful thinking idea of open source
I'm just too blind to see the answer.
Please help me with this issue as I'll need to start working on this issue at 9pm Jan 5, 2005 EST.
A silly and quick but not professional answer would be to do a redirect to a PHP that handles the call to the include file to process, but if at all possible I'd be interested in a more professional solution.
Thanks In Advance