merilan Posted November 13, 2010 Report Share Posted November 13, 2010 Is it possible to implement algorithms in PHP to enhance you webapp. I know that algorithms usually go hand in hand with compiler languages, if it is not possible, is there a way to bridge the two (c algorithms in a php web app). Is there some kind of library out there? Some pear packages? or is there a book that i can be refereed to that deals with implementing algorithms in a PHP web app. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 13, 2010 Report Share Posted November 13, 2010 Yes, you can implement algorithms within PHP. But what sort of algorithm? All an "algorithm" means is "a specific set of instructions for carrying out a procedure or solving a problem." Quote Link to comment Share on other sites More sharing options...
merilan Posted November 13, 2010 Author Report Share Posted November 13, 2010 So would it be correct to assume that in an MVC structure, the Controller can contain the algorithms? I need to run search algorithms, data-mining and some other in the web app. So I am guessing that there aren't any open-sourced software's out there. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 13, 2010 Report Share Posted November 13, 2010 They could go within the controller, but I would personally put them in the model to avoid cluttering the controller. It's generally considered best practice to make the controller as light on code as possible, and use it to simply pass along instructions to the model/view. So I am guessing that there aren't any open-sourced software's out there. I'm not completely sure what you are asking... I know you can find open-source search scripts online, and probably datamining/others as well. Quote Link to comment Share on other sites More sharing options...
merilan Posted November 13, 2010 Author Report Share Posted November 13, 2010 "Fat model skinny controller" right? Thank you very much you answered all of my questions. And I apologize for being so vague. I am new to all of this. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 13, 2010 Report Share Posted November 13, 2010 "Fat model skinny controller" right? Yep, that's the advice that I've heard in the past. Thank you very much you answered all of my questions. And I apologize for being so vague. I am new to all of this. Sure thing. Happy to help. Feel free to post if you have other questions. Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.