Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 is it good to use deprecated tags, and functions in php, or should I always try to use the newest version of those deprecated, and if I find myself using deprecated tags at one point or another are they considered bad programming practice or against some specific standards. Quote Link to comment Share on other sites More sharing options...
poirot Posted April 18, 2006 Share Posted April 18, 2006 Well, you should avoid deprecated functions and tags whenever possible, since they are likely to be replaced in the future. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Author Share Posted April 18, 2006 sounds good, I like following standards and I know in xhtml I stay away from deprecated tags, I was just checking to make sure I should do the same with php, thanks. Quote Link to comment Share on other sites More sharing options...
Jewbilee Posted April 18, 2006 Share Posted April 18, 2006 you have to stop posting so many different threads, your pushing the threads that others have way down farther the more posts you make. It is not fair to the others. If you have multiple questions, especially ones as basic as these, you should combine them into one large post Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 18, 2006 Share Posted April 18, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Deprecated: Used typically in reference to a computer language to mean a command or statement in the language that is going to be made invalid or obsolete in future versions.[/quote]I can't think of a good reason to code using stuff that might well fail in the next release of the language. The flip side to it is that there's a definite downside to code that requires functionality that's only found in php_release-date_yesterday ... yes, you can install it on your test/local server but don't expect it to be the release that exists on a server where you're providing scripting for a client. A good web host will periodically upgrade to the latest stable release (quite different from the latest release).If you look at the most frequent problems on this board, it would be those arising from expectations that register_globals was set to ON - true in the old, old versions and no longer so. That's a good indicator of why you should avoid using deprecated stuff. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Author Share Posted April 18, 2006 thanks for the posting, and I will post less. Thanks again. 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.