| Joined: Sep 2005 Posts: 102 UGN Member | OP UGN Member Joined: Sep 2005 Posts: 102 | Ok, so I guess php 5 has the register_variables set to off.
Do you think it would be best to learn php with the rules set the way they are now or would it be best to turn the register_variables to on.
I am looking at it from the point of a beginner learning the language not necessarily from a security position.
For now I have changed the .ini file and have them back on. However Im curious on what your opinion is on the best way to learn. | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | The developers a PHP.net suggest for security to get register globals OFF. However Every Hoster and script I have seen have register globals set to on, or require they be on. I guess the answer to your question is this. It is good practice to design with register globals off. But in the production world it seems the pratice is to design as if they were on. It is often harder to design with them off as you need to be a bit more creative. I have them on on the server, but try to design as if they were off. Usally fail at this | | | | Joined: Sep 2005 Posts: 102 UGN Member | OP UGN Member Joined: Sep 2005 Posts: 102 | Thats kind of what I was thinking. Learn with em on so I can learn this language without making it too friggin difficult on myself. Then when designing be security conscience.
Thanks for your input and info regarding hosts.
Since Im self hosting for now I get to choose! lol | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | I prefer designing for php4, ensures more compatability if you choose to move or sell scripts. | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | Ture!!! If you are developing for sales, bleeding edge is bad. you want 2 or 3 versions back I would say. | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Originally posted by �int��: Ture!!! If you are developing for sales, bleeding edge is bad. you want 2 or 3 versions back I would say. Word of advice; always program for sales ... | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | | | | | Joined: Sep 2005 Posts: 102 UGN Member | OP UGN Member Joined: Sep 2005 Posts: 102 | Thanks Gizmo!
I will be developing for sales. However first I have plenty of developing for practice, mistakes, and learning to not "get owned"! Again thanks for the links as I can guarantee I will be previewing all of them.
Fortunately I have taken a database design class using oracle. So when it comes to the database I will be ok with normalization (about the only real info I remember from the class). LOL
I figure over the next week or so I will just be doing the examples from the books Im reading (PHP AND MYSQL FOR DYNAMIC WEB SITES written by Larry Ullman . Learning PHP 5 written by David Sklar ,, an Oreilly book.
I wonder how its going to be learning PHP from 2 books that cover different versions. lol Might be a tad quirky sometimes but whatever,, ill get through it.
Thanks again everyone. | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Well, if you're going to, eventually, design for sales; you should look into MySQL as your DB of choice as it's going to be what 99% of your users would use ... See PM btw... | | |
Posts: 860 Joined: March 2002
| | Forums41 Topics33,840 Posts68,858 Average Daily Posts0 | Members2,176 Most Online3,253 Jan 13th, 2020 | | | | | | | | | | | Doom 3 by Cyrez - 09/11/14 08:58 PM
| | | | | | | | | | | | | | | | | | |