php-general Digest 14 Oct 2012 11:41:50 -0000 Issue 8006
Topics (messages 319444 through 319448):
Re: Beneficial site spamming framework
319444 by: Ashley Sheridan
PHP The Right Way (website)
319445 by: tamouse mailing lists
Ok then, here is a test
319446 by: Jim Lucas
319447 by: Jim Lucas
Is it possible to click download button,and run 2 tasks downloading a file and
show number of downloads(ajax)simultaneously?
319448 by: Negin Nickparsa
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Maciek Sokolewicz <maciek.sokolew...@gmail.com> wrote:
>On 13-10-2012 09:24, Ashley Sheridan wrote:
>> I think it might be an issue with your email client/server, as this
>one
>> just came through 3 times too!
>>
>
>That is very odd, because it only shows up once in the newsgroup, only
>once in my own mailclient (Thunderbird) and only once in the archives
>of
>marc.info.
>
>Are you sure the problem isn't on your end? Perhaps someone else could
>confirm/deny the recieving of my previous message to the list 3x?
>I'm willing to try and fix whatever might be causing it, but I can't
>really find any proof of anything going wrong?
>
>- Tul
It was only your replies coming through so often, so I doubt its my end. Also,
the newsgroup is the same thing as the mailing list I believe, in this instance.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
--- End Message ---
--- Begin Message ---
This just dropped in my inbox the other day from Smashing #69:
> 2. PHP The Right Way
>
> If you are developing for the Web, the chances are high that you have
> to deal with PHP on a regular basis. However, once you've stumbled
> upon a problem that you have to solve, finding a good solution among
> thousands and thousands of (partly outdated) PHP tutorials out there
> can be quite a nightmare — especially if you are relatively new to
> PHP. Where would you go to learn about the current best practices in
> PHP?
>
> PHP The Right Way
>
> Perhaps PHP The Right Way. The site is an easy-to-read, quick
> reference for the best practices in PHP, accepted coding standards,
> and links to authoritative tutorials around the Web. Josh Lockhart has
> worked together with a dozen of well-respected members of the PHP
> community to create a useful, up-to-date resource for everybody to
> use.
>
I've just been perusing it, and it offers some good advice. Anyone
here work on it / read it? Thoughts?
--- End Message ---
--- Begin Message ---
On 10/12/2012 11:42 AM, Daniel Brown wrote:
> Well, as the adage goes, you'll catch more flies with honey than
> with vinegar. And considering this is the very first message I've
> ever seen from you, it sounds like either (a) you didn't follow the
> proper protocol, or (b) there's something in the process we need to
> review. If you think the issue lies on our end, you can submit a bug
> at https://bugs.php.net/ and detail the steps to reproduce the issue.
> If it is indeed something we need to correct, believe me, we will. We
> don't deliberately attempt to mislead or frustrate people, despite how
> it might have seemed.
Well, with that said, here is a test.
I have found, in the past, that when I enable all the SPAM filtering
that I want, that 76.75.200.58/pb1.pair.com/lists.php.net mail server
gets blocked by my mail server. It has been a while so I don't remember
what the reason was it got blocked, but I have enabled all the filtering
again, and this is my test email with the full set of filtering enabled.
Lets see if the server still gets blocked. I will post the logs if and
when it gets blocked.
--
Jim Lucas
--- End Message ---
--- Begin Message ---
On 10/13/2012 10:42 PM, Jim Lucas wrote:
On 10/12/2012 11:42 AM, Daniel Brown wrote:
> Well, as the adage goes, you'll catch more flies with honey than
> with vinegar. And considering this is the very first message I've
> ever seen from you, it sounds like either (a) you didn't follow the
> proper protocol, or (b) there's something in the process we need to
> review. If you think the issue lies on our end, you can submit a bug
> at https://bugs.php.net/ and detail the steps to reproduce the issue.
> If it is indeed something we need to correct, believe me, we will. We
> don't deliberately attempt to mislead or frustrate people, despite how
> it might have seemed.
Well, with that said, here is a test.
I have found, in the past, that when I enable all the SPAM filtering
that I want, that 76.75.200.58/pb1.pair.com/lists.php.net mail server
gets blocked by my mail server. It has been a while so I don't remember
what the reason was it got blocked, but I have enabled all the filtering
again, and this is my test email with the full set of filtering enabled.
Lets see if the server still gets blocked. I will post the logs if and
when it gets blocked.
--
Jim Lucas
Well, I got it. Seems the problem has gone away.
Never mind then.
--
Jim Lucas
--- End Message ---
--- Begin Message ---
I have a table,which has a field counting the downloaded files,so with php
I can return the value:
<span class="num" id="<?php echo $id;?>">Downloaded:<?php echo
$downloadcount;?></span>
when clicking the button,it will download the file:
<input type = "button" value="Download" class="button" id="<?php echo
$id; ?>" name="dl" onclick="window.location.href='<?php echo
$track;?>'">
I wanted to refresh the download count when clicking the button first is it
possible?because I think by using onclick in the span section I can't have
an onclick event in jquery but if I will assume that it is possible then
how to store it in php?so I can update the table?
I wrote something which is wrong:
$(function() {
$(".button").click(function(){
var clicks = 0;
var theID = $('.num').attr('id');
clicks++;
$(theID).html("Downloded:"+clicks);
});
});
in php section I have a while loop that will return each row like this:
while($row=mysql_fetch_array($sql))
{
$id=$row['ID'];
//some code
}
here is my demo if you would like to see the whole enter james in textbox:
http://parsa-web.goodluckwith.us/index.php
--- End Message ---