Welcome Guest, Not a member yet? Register   Sign In
Security in Codeigniter
#1

[eluser]Cozmika[/eluser]
Hello,

I'm learning PHP. I know a little and I decided to start with Codeigniter.
What are the best practices in security with Codeigniter when using forms/strings/some input etc.?
#2

[eluser]Pascal Kriete[/eluser]
The same practices that apply to any PHP application - or any web app, in fact.

Be paranoid about input data - clean, validate, clean again (CI has functions to help)
Be paranoid about request origins - form tokens, crossdomain.xml (if you're using flash), etc.
Store important data securely (hash passwords, avoid storing credit card data)

If you need any specifics let us know.

Welcome to Codeigniter.
#3

[eluser]manilodisan[/eluser]
Why start learning PHP with Codeigniter which does by itself all the things you should be learning hard. Why learn 50% php and 50% codeigniter when you should be learning 1100% php? Why use $this->db->query when you should be learning how to connect to your mysql with your eyes closed...
#4

[eluser]Cozmika[/eluser]
Well, I now basics of PHP and I would like to use Codeigniter to help me make apps faster and with more security. Is there some link for security in PHP?
#5

[eluser]Pascal Kriete[/eluser]
PHP Security Consortium
Presentation on the Basics
Edit: Forgot a good one:
Yahoo
#6

[eluser]Sumon[/eluser]
From my point of view, if someone have some experience in scratch coding in PHP then it's more efficient for him/her to learn CI or any framework. First need to understand some basics of PHP. The basic can include a registration system where user can register themselves. Moreover, a section for admin where from member list should be viewed, edited or deleted.

If someone have fair experience upto this point and have a clear understanding of server side scripting, client side stuff(validation or so), database operation and integration of these then why not Code Igniter

On top of you must need MVC concept to learn CI. If someone don't have no need to be worried because CI user guide have an excellent section of MVC. Just first thing, make sure before start is MVC concept and working principle is clear.

Ops!! @Cozmika Welcome to Code Igniter
#7

[eluser]Cozmika[/eluser]
I now how to write a very basic input data through HTML form, displaying, editing, deleting that data... Am I ready for CI or should I learn more?

Btw... Tnx for wellcome
#8

[eluser]manilodisan[/eluser]
what about sessions, cookies, $_POST, $_GET and all that stuff...CI might confuse you on many of these... I told you my opinion...
#9

[eluser]Cozmika[/eluser]
Well, I understand $_POST, $_GET, cookies and sessions more or less...
#10

[eluser]Colin Williams[/eluser]
You can learn PHP along the way with CI. I did.




Theme © iAndrew 2016 - Forum software by © MyBB