Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

deprecated tags

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Well, you should avoid deprecated functions and tags whenever possible, since they are likely to be replaced in the future.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.