php-general Digest 15 Oct 2012 11:09:25 -0000 Issue 8007
Topics (messages 319449 through 319455):
Re: PHP The Right Way (website)
319449 by: Jim Giner
319450 by: tamouse mailing lists
319451 by: Daniel Brown
319452 by: Jim Giner
319453 by: Jim Giner
Re: Is it possible to click download button,and run 2 tasks downloading a file
and show number of downloads(ajax)simultaneously?
319454 by: Tedd Sperling
SNMP via PHP
319455 by: Lester Caine
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 ---
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"?
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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/
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
OK I've spent the last two hours going through pages of crap generated by
google, and that includes google crap created by searches on sites like
http://www.phpbuilder.com - cause mainly of cause by php pages on sites
supporting other languages :(
Certainly it seems that PHP is preferred even to website java and ruby ...
I had some problems over the weekend with the network here and decided it was
time to get some monitoring in place locally. cacti simply loaded up and I have
working system, but now I'm having trouble getting SNMP sorted on the target
machines. So I started looking for an editor to handle the MIB data and keep
hitting one dead end after another.
I'm sure there must be something out there using php-snmp for a browser?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--- End Message ---