Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #10919

Re: part 2 - file exists not working

From Curtis Dyer <dyer85@gmail.com>
Newsgroups comp.lang.php
Subject Re: part 2 - file exists not working
Date 2013-09-27 01:47 +0000
Organization A noiseless patient Spider
Message-ID <l22o2j$9tn$1@dont-email.me> (permalink)
References (5 earlier) <2620287.ckb7lz7aL7@PointedEars.de> <awh0u.124795$Fo7.114268@fx19.iad> <l1t4uv$2r0$1@speranza.aioe.org> <l20ik9$t1q$1@dont-email.me> <l22b0o$m4l$1@speranza.aioe.org>

Show all headers | View raw


Twayne wrote:

[Twayne's quoted text below has been rewrapped]

> On 2013-09-26 2:01 AM, Curtis Dyer wrote: ...
> 
>> Arbitrary server admins don't determine when features of PHP
>> become deprecated, the PHP development team does.
> 
> Say WHAT?  ... what makes you think that current servers, which
> almost all offer at least TWO versions of PHP to its users will
> stop doing that?

None of what I wrote has anything to do with this.

> Some even offer THREE I've come across in the past.  DEPRECATED
> means removed from a VERSION of the language, not ALL versions!

No, deprecated means that a feature or practice is considered 
dated in favor of something else, and that one should avoid using 
it, where possible. It is by no means a strict mandate that you 
must never use the feature. (Although, you obviously can't use the 
feature whenever you move to the new version in which a deprecated 
feature is dropped.)

> And just who is going to force server admins to have a dictated
> version of PHP available and no other?

No one, but I never wrote or implied anything like that.

> It's myopic crap-thinking like that, that gets my attention
> here. 

It's not a big deal. If you're writing new code, today, there's no 
reason not to avoid using the mysql extension. That's all. I'm not 
warning to toss away or fix old code *right now*.

And, if anything, it's myopic thinking to write code depending on 
a deprecated extension in situations where you don't need to.

> And besides, mysql i isn't all that different from mysql,
> period. It's just not the Armageddon arrival as some are working
> so hard to point out. 

This is a ridiculous straw man.

> If you want to help, TEACH ; otherwise phase out.

What do you mean? What do you think trying to inform people about 
best practices is all about? No one here is imposing mandates on 
anyone. We can just offer the best advice as we're able, and it's 
up to the OP and others who might read the advice to do with it 
what they will.

> Forget the vague warnings and scenarios of web sites not working
> overnight.

No one has written this. When I read Thomas's post upthread, for 
example, it read as a helpful aside to me. It was quite clear and 
concise. There's nothing vague about informing people about a 
deprecated feature.

Again, no one has written that people's code will break overnight.

<snip>

>> When giving people advice about writing code, it's helpful to
>> encourage the best possible practices. The mysql extension is
>> indeed deprecated, and people learning PHP ought to be made
>> well aware of this.
> 
> True, and that should be your job;

Usenet is not my job; Usenet contributors don't get paid for 
posting. I generally post here in the event that I feel I'm able 
to provide what little help I can. Further, newsgroups like this 
have been a big help to me, so contributing back is a nice change 
of pace.

> NOT making gregarious claims

I've never heard claims described as gregarious. Perhaps you meant 
grandiose? If that's the case, I made none.

The mysql extension is deprecated, but this has nothing to do with 
magically breaking Web servers. It's a simple warning to 
developers (and sever admins), that, at some point, the extension 
will be phased out.

It's a helpful warning and is intended to give people time to 
prepare however they choose. For some people, the concern probably 
isn't immediate. That's fine. However, there's absolutely nothing 
wrong with suggesting to beginners that they ought to use instead 
mysqli or the PDO MySQL driver.

There are other reasons for using alternatives to the mysql 
extension that go beyond the fact that it's deprecated (although, 
they likely have contributed to the fact that it has become 
deprecated). For example, the fact that you can use prepared 
statements or, in PDO's case, it provides an abstract interface to 
allow developers to reuse code for multiple databases.

> that all sites will stop working if/when a server's admin
> employs a new version of a program!
>>
>> While your code may continue to work on your system, the same
>> cannot be said of everyone who takes advice from posts such as
>> those in this thread.
> 
> THEN SAY SO!

I have written it in the post you quoted. Although, I didn't write 
in all-caps, so perhaps you missed it.

<snip>

-- 
Curtis Dyer
<?$x='<?$x=%c%s%c;printf($x,39,$x,39);?>';printf($x,39,$x,39);?>

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

part 2 - file exists not working richard <noreply@example.com> - 2013-09-23 10:04 -0400
  Re: part 2 - file exists not working Tim Streater <timstreater@greenbee.net> - 2013-09-23 15:17 +0100
    Re: part 2 - file exists not working richard <noreply@example.com> - 2013-09-23 10:35 -0400
  Re: part 2 - file exists not working Paul Herber <paul@pherber.com> - 2013-09-23 15:33 +0100
  Re: part 2 - file exists not working David Robley <me@home.invalid> - 2013-09-24 10:16 +0930
    Re: part 2 - file exists not working Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-09-23 22:07 -0400
      Re: part 2 - file exists not working richard <noreply@example.com> - 2013-09-24 01:57 -0400
        Re: part 2 - file exists not working David Robley <me@home.invalid> - 2013-09-24 17:19 +0930
          Re: part 2 - file exists not working richard <noreply@example.com> - 2013-09-24 04:10 -0400
          Re: part 2 - file exists not working richard <noreply@example.com> - 2013-09-24 04:32 -0400
          Re: part 2 - file exists not working Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-09-24 23:23 +0000
            Re: part 2 - file exists not working David Robley <me@home.invalid> - 2013-09-25 09:48 +0930
        Re: part 2 - file exists not working Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-09-24 09:45 -0400
          Re: part 2 - file exists not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-24 16:34 +0200
            Re: part 2 - file exists not working Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-09-24 10:41 -0400
              Re: part 2 - file exists not working richard <noreply@example.com> - 2013-09-24 12:17 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-24 09:29 -0700
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-24 18:51 -0400
                Re: part 2 - file exists not working Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-24 19:10 +0000
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-24 19:08 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-24 18:39 -0700
                Re: part 2 - file exists not working "Peter H. Coffin" <hellsop@ninehells.com> - 2013-09-24 22:17 -0500
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-26 17:20 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-26 15:43 -0700
                Re: part 2 - file exists not working Jerry Stuckle <jstucklex@attglobal.net> - 2013-09-26 19:43 -0400
                Re: part 2 - file exists not working Scott Johnson <noonehome@chalupasworld.com> - 2013-09-24 18:54 -0700
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-26 17:39 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-26 15:47 -0700
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-28 13:58 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-28 11:45 -0700
                Re: part 2 - file exists not working Tim Streater <timstreater@greenbee.net> - 2013-09-25 09:01 +0100
              Re: part 2 - file exists not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-24 18:54 +0200
                Re: part 2 - file exists not working Tim Streater <timstreater@greenbee.net> - 2013-09-24 18:30 +0100
              Re: part 2 - file exists not working Scott Johnson <noonehome@chalupasworld.com> - 2013-09-24 15:40 -0700
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-24 19:14 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-24 18:43 -0700
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-26 17:42 -0400
              Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-24 18:50 -0400
                Re: part 2 - file exists not working Scott Johnson <noonehome@chalupasworld.com> - 2013-09-24 18:56 -0700
                Re: part 2 - file exists not working Curtis Dyer <dyer85@gmail.com> - 2013-09-26 06:01 +0000
                Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-26 18:04 -0400
                Re: part 2 - file exists not working Curtis Dyer <dyer85@gmail.com> - 2013-09-27 01:47 +0000
                Re: part 2 - file exists not working Jerry Stuckle <jstucklex@attglobal.net> - 2013-09-26 22:56 -0400
                Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-26 20:11 -0700
                Re: part 2 - file exists not working Jerry Stuckle <jstucklex@attglobal.net> - 2013-09-26 23:41 -0400
                Re: part 2 - file exists not working Curtis Dyer <dyer85@gmail.com> - 2013-09-27 06:04 +0000
                OT Re: part 2 - file exists not working Twayne <nobody@spamcop.net> - 2013-09-28 14:33 -0400
                Re: OT Re: part 2 - file exists not working Fiver <numeralfive@gmail.com> - 2013-09-28 23:12 +0200
                Re: OT Re: part 2 - file exists not working The Natural Philosopher <tnp@invalid.invalid> - 2013-09-29 06:50 +0100
                Re: OT Re: part 2 - file exists not working "Peter H. Coffin" <hellsop@ninehells.com> - 2013-09-29 10:39 -0500
                Re: OT Re: part 2 - file exists not working Jerry Stuckle <jstucklex@attglobal.net> - 2013-09-29 14:49 -0400
  Re: part 2 - file exists not working Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-09-24 23:20 +0000
    Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-24 18:46 -0700
    Re: part 2 - file exists not working richard <noreply@example.com> - 2013-09-24 22:27 -0400
      Re: part 2 - file exists not working The Natural Philosopher <tnp@invalid.invalid> - 2013-09-25 06:21 +0100
      Re: part 2 - file exists not working David Robley <me@home.invalid> - 2013-09-25 15:20 +0930
        Re: part 2 - file exists not working Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-09-26 20:30 +0000
    Re: part 2 - file exists not working Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-25 07:42 +0000
      Re: part 2 - file exists not working The Natural Philosopher <tnp@invalid.invalid> - 2013-09-25 09:07 +0100
        Re: part 2 - file exists not working Richard Yates <richard@yatesguitar.com> - 2013-09-25 06:29 -0700
          Re: part 2 - file exists not working The Natural Philosopher <tnp@invalid.invalid> - 2013-09-25 15:09 +0100

csiph-web