php-general Digest 14 Oct 2012 11:41:50 -0000 Issue 8006

2012-10-14 Thread php-general-digest-help

php-general Digest 14 Oct 2012 11:41:50 - 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


--
---BeginMessage---


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---
---BeginMessage---
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---
---BeginMessage---

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---
---BeginMessage---

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 

[PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner

On 10/14/2012 1:10 AM, tamouse mailing lists wrote:

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?

Sounds like a good idea, but as for me - if I was a newbie I'd have a 
problem with their very first instructions.  It says right off the start 
to type in the following:

php -5 localhost:8000

which when I do (from a dos prompt) gives me a nice description of the 
command, but fails to do anything else for me.  So how does this (as it 
says) help me learn with the hassle of configureing and installing a 
full-fledged web server?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread tamouse mailing lists
On Sun, Oct 14, 2012 at 10:48 AM, Jim Giner
jim.gi...@albanyhandball.com wrote:
 On 10/14/2012 1:10 AM, tamouse mailing lists wrote:

 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?

 Sounds like a good idea, but as for me - if I was a newbie I'd have a
 problem with their very first instructions.  It says right off the start to
 type in the following:
 php -5 localhost:8000

 which when I do (from a dos prompt) gives me a nice description of the
 command, but fails to do anything else for me.  So how does this (as it
 says) help me learn with the hassle of configureing and installing a
 full-fledged web server?

Are you running 5.4+? First thing it says is Use the current stable
version (5.4). The PHP server (-S) is not available in anything
earlier.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Daniel Brown
On Sun, Oct 14, 2012 at 11:48 AM, Jim Giner
jim.gi...@albanyhandball.com wrote:

 Sounds like a good idea, but as for me - if I was a newbie I'd have a
 problem with their very first instructions.  It says right off the start to
 type in the following:
 php -5 localhost:8000

That should be a capital S, not a five.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner

On 10/14/2012 12:06 PM, tamouse mailing lists wrote:

On Sun, Oct 14, 2012 at 10:48 AM, Jim Giner
jim.gi...@albanyhandball.com wrote:

On 10/14/2012 1:10 AM, tamouse mailing lists wrote:


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?


Sounds like a good idea, but as for me - if I was a newbie I'd have a
problem with their very first instructions.  It says right off the start to
type in the following:
php -5 localhost:8000

which when I do (from a dos prompt) gives me a nice description of the
command, but fails to do anything else for me.  So how does this (as it
says) help me learn with the hassle of configureing and installing a
full-fledged web server?


Are you running 5.4+? First thing it says is Use the current stable
version (5.4). The PHP server (-S) is not available in anything
earlier.

I'm not running anything.  It says to type a command and I did.  That's 
my point - it's kind of misleading in it's introduction.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner

On 10/14/2012 12:12 PM, Daniel Brown wrote:

On Sun, Oct 14, 2012 at 11:48 AM, Jim Giner
jim.gi...@albanyhandball.com wrote:



Sounds like a good idea, but as for me - if I was a newbie I'd have a
problem with their very first instructions.  It says right off the start to
type in the following:
php -5 localhost:8000


 That should be a capital S, not a five.


hmmm,  that does make a difference.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

2012-10-14 Thread Tedd Sperling
On Oct 14, 2012, at 7:41 AM, Negin Nickparsa nickpa...@gmail.com wrote:
 I wanted to refresh the download count when clicking the button first is it
 possible?

Yes, it is possible.

The following is an example of a server-side php script refreshing a Web page 
via a javascript client-side action:

http://php1.net/a/zipcode-states/

The action is triggered by simply using the selection control, which in turn 
activates an onchange javascript routine that causes a slave php script to run 
retrieving data from a database returning the data thereby causing an ajax 
script to update the selection control.

All the code (html, javascript) is there except for the php script, which 
should be trivial to write.

Cheers,

tedd
_
t...@sperling.com
http://sperling.com





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php