Page 1 of 1
PEAR vs PHPLIB
Posted: Wed Feb 01, 2006 7:33 am
by Mohammad
Hello
I want to which one of these libraries outstands the other one, which one is best for what? and is it possible to use both?
thanx in advance
Posted: Wed Feb 01, 2006 7:43 am
by Jenk
Yes, it is possible to use both, and it depends on a package vs package basis of which is better suited to your requirements.
Posted: Wed Feb 01, 2006 4:03 pm
by Mohammad
I need more info on both of them!!!
Posted: Wed Feb 01, 2006 5:25 pm
by Jenk
Posted: Thu Feb 02, 2006 1:14 am
by Christopher
How about neither.
I didn't know that anyone used PHPLib anymore. As for PEAR, there are some good classes there but the design and code quality is uneven.
There is a lot of good code around. What functionality do you need?
Posted: Thu Feb 02, 2006 2:56 am
by Mohammad
well actually I'm loooking for a good code for an authentication system, I checked the internet, there are tons of methods out there, and I dont know which one is the best to choose?
I need a system where I need sessions, and have user levels such as admin, normal user and etc..
can you refer me to some good php scripts which I dont need to reinvent the wheel?
!!!!!!!!!
one more thing, are there any good frameworks for PHP design? if yes refre me to them... thanx
Posted: Thu Feb 02, 2006 3:06 am
by onion2k
If I need PEAR code I tend to copy it out of the PEAR class into my own and then remove all the PEAR stuff. I've found that you can't really rely on PEAR being up-to-date, or even installed, with some web hosts, so the only alternative is to duplicate.
Posted: Thu Feb 02, 2006 3:11 am
by Christopher
A general Authentication and Access Control system is a difficult thing to build. But a specific one is not that difficult. You might be better off just building something that specifically meets your needs. Are you clear about the design of such a system? Are you clear about the difference between Authentication and Access Control?
As for frameworks I hear good things about Symphony and Prado, but there are many and it is partly a matter of taste. I hear that WACT will have a long overdue release as well.
And remember that there will be a preview release of the Zend Framework this month. That should change the PHP framework landscape considerably (depending on how good it is).
Posted: Thu Feb 02, 2006 3:19 am
by Mohammad
well I understand the concept of access control and authentication.. I have read alot of code samples... but as you said there are hundreds of ways to do that.... Im gonna give it a try to build my own system, with my specs..
here my thoughts on the authentication system:
1- Need a table to have the username, passwords and their respective user level inside ( question which I have is, should the password be encrypted and kept in the database, like a md5 or crypt encryption? )
2- there needs to be a table to contain the session control
can you explain the best way to have session control, I have heard the theme mixing session control and cookies toegther? how to implement it... can you explain the plain procedure from login in till loging out????