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


Groups > comp.lang.php > #10858

Re: part 2 - file exists not working

Message-ID <13286076.b1rK9CuggJ@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-09-24 18:54 +0200
Subject Re: part 2 - file exists not working
Newsgroups comp.lang.php
References (2 earlier) <Ct60u.140494$PB4.4300@fx03.iad> <16091ltv3xnv7.h4tb7rm02jdu.dlg@40tude.net> <PHg0u.124791$Fo7.16927@fx19.iad> <2620287.ckb7lz7aL7@PointedEars.de> <awh0u.124795$Fo7.114268@fx19.iad>

Show all headers | View raw


Lew Pitcher wrote:

> [Thomas 'PointedEars' Lahn] wrote:
>> Lew Pitcher wrote:
>>> noreply@example.com wrote:
>>>> Output reseulted in one table row showing with no data.
>>>> 
>>>> www.mroldies.met/filetest.php
>>> 
>>> If $result is not FALSE, you loop through it using mysql_fetch_array()
>>> or one of it's child functions (mysql_fetch_row or mysql_fetch_assoc())
>>> to retrieve individual rows
>>> 
>>> Something like
>>> 
>>>   while ($row = mysql_fetch_array($result) )
>>>   {
>>>     printf("atitle: %s\n",$row['atitle']);
>>>     printf("btitle: %s\n",$row['btitle']);
>>>     /* and so on */
>>>   }
>> 
>> JFTR: The mysql extension is *deprecated* and will be *removed*:
>> 
>> <http://php.net/mysql_fetch_array>
> 
> A very valid point that we've repeatedly made to richard.
                                                   ^^^^^^^
Unfortunately, *that* explains a lot.  I have the OP killfiled for address 
munging and was not aware of that.

(This was also due to your rather uncommon practice of not including the 
name in the attribution line at all, which I would advise against.  Postings 
are written by *people*, not e-mail addresses.  An e-mail address signifies 
almost nothing; in the From header field value, it may even specify a 
mailbox that is heavy spam-filtered and seldom read, not suitable for 
contacting the author.  And please skip the attribution novel while you are 
at it; it does not make sense, and it makes discussions a lot harder to 
read, to duplicate non-essential header information there. 

<http://www.netmeister.org/news/learn2quote.html/>)

> And that he has considered and rejected.

Still, IMHO all examples should be written according to what one considers 
best common practice.  At least they can serve as a recommendation to 
others.  Bad examples to fix original code are almost as bad as bad original 
code.  A Usenet posting is written once, but then is distributed, and 
archived; thus it is still found much later, and read many times in total, 
not only by the OP.
  
>> Use mysqli or pdo_mysql instead.
> 
> Agreed.


PointedEars
-- 
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
  -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

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