php-general Digest 5 Jun 2010 22:39:55 -0000 Issue 6783

Topics (messages 305843 through 305846):

Re: CakePHP, alternatives?
        305843 by: Shreyas
        305846 by: Larry Garfield

Re: What is "app.php?ph=cus&id=4"?
        305844 by: Brandon Rampersad
        305845 by: Ashley Sheridan

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 ---
@ All - Points duly noted. Thanks for all the mighty advice.

As the owner of the thread, I consider the thread closed for now unless
anyone has anything to add.

--Shreyas

On Sat, Jun 5, 2010 at 1:02 AM, Adam Richardson <simples...@gmail.com>wrote:

> >
> > I am reading this PHP for Dummies and then I plan to read Head First with
> > PHP, MySQL, and Apache. Do you know any books that I can read online or I
> > can buy? I would be happy to do that.
> >
>
> Hi  Shreyas,
>
> I think you've received some excellent advice.
>
> I like the Head First Books quite a bit.  I attended grad school for
> cognitive psychology, and I can tell you that the Head First Books do a
> great job of integrating methods shown to enhance learning.
>
> I own several of the books in the series, including those on iPhone
> development and Design Patterns, and while I don't own the PHP book, I've
> reviewed it at the book store and recommend it to some friends who have
> taken up PHP, too, and they've been very pleased with the resource.
>
> I hope you have an enriching, enjoyable experience as you learn PHP.
>
> Adam
>
> --
> Nephtali:  PHP web framework that functions beautifully
> http://nephtaliproject.com
>



-- 
Regards,
Shreyas

--- End Message ---
--- Begin Message ---
One other thing I will add:

Don't just learn PHP.  Learn Javascript as well.  Don't treat it as PHP 
without dollar signs, but learn Javascript as Javascript, and PHP as PHP.  
Then after you've gotten some time with those, take some time to learn, or at 
least learn about even if you never work with it, Erlang.  Or Haskel. Or some 
other stricter, purely functional language.  Something that works totally 
differently than PHP.

Even if you don't ever use it, the perspective you gain from approaching a 
problem from a different angle will help you learn about the strengths and 
weaknesses of different languages, different ways of thinking, different ways 
of 
leveraging your tools well, etc.

The 6 hours or so I spent reading about Erlang and purely functional languages 
helped my PHP skills considerably, even though I never wrote a single line of 
Erlang.  (I was already very solid in PHP at the time, but it made me even 
better.)

--Larry Garfield

On Saturday 05 June 2010 12:51:47 am Shreyas wrote:
> @ All - Points duly noted. Thanks for all the mighty advice.
> 
> As the owner of the thread, I consider the thread closed for now unless
> anyone has anything to add.
> 
> --Shreyas
> 
> On Sat, Jun 5, 2010 at 1:02 AM, Adam Richardson <simples...@gmail.com>wrote:
> > > I am reading this PHP for Dummies and then I plan to read Head First
> > > with PHP, MySQL, and Apache. Do you know any books that I can read
> > > online or I can buy? I would be happy to do that.
> >
> > Hi  Shreyas,
> >
> > I think you've received some excellent advice.
> >
> > I like the Head First Books quite a bit.  I attended grad school for
> > cognitive psychology, and I can tell you that the Head First Books do a
> > great job of integrating methods shown to enhance learning.
> >
> > I own several of the books in the series, including those on iPhone
> > development and Design Patterns, and while I don't own the PHP book, I've
> > reviewed it at the book store and recommend it to some friends who have
> > taken up PHP, too, and they've been very pleased with the resource.
> >
> > I hope you have an enriching, enjoyable experience as you learn PHP.
> >
> > Adam
> >
> > --
> > Nephtali:  PHP web framework that functions beautifully
> > http://nephtaliproject.com
> 

--- End Message ---
--- Begin Message ---
Those are POST parameters and not GET.

On Fri, Jun 4, 2010 at 10:55 AM, Paul M Foster <pa...@quillandmouse.com>wrote:

> On Fri, Jun 04, 2010 at 06:54:34AM -0700, Michael Calkins wrote:
>
> >
> > I would google this but I have no idea what this method is or how it
> works.
> > app.php?ph=cus&id=4
> > Can some tell me what this either called or how it works?Can I get a
> tutorial for it please?
>
> This is standard HTTP/HTML terminology, not unique to PHP. What is means
> is that the script being executed (app.php) has been supplied two
> parameters: "ph" and "id".
>
> app.php is a script that can perform various functions, depending on the
> parameters passed to it. For example, app.php may display a record from
> a database. And in this case, app.php may be tasked to display a
> customer record, and the customer record it should display is the one
> where the customer number is 4.
>
> Syntax-wise, after the name of the script (app.php), are whatever
> parameters, if any, the script requires. The first question mark begins
> the list of parameters. Each parameter normally will be in the form
>
> parameter=value
>
> In between each of these parameter/value pairs, you will find an
> ampersand (&). So in this case, you have two parameters being passed.
> The first is "ph", and its value is "cus". The second is "id" and its
> value is "4". What these parameters mean exactly to the script depends
> on the script. There's no universal guide for parameters, what they're
> called or what their values can be. You'd have to look at the script
> itself to see what the parameters make the script do.
>
> In PHP, if you want to use these parameters, you would query the
> parameters this way:
>
> $page_type = $_GET['ph'];
> $which_item = $_GET['id'];
>
> If executed this way, you would find that $page_type has a value of
> 'cus', and $which_item = '4'.
>
> You might have code inside app.php which would look like the following:
>
> $type = $_GET['ph'];
> $id = $_GET['id'];
>
> if ($type == 'cus')
>        show_customer_page($id);
>
> Hope that helps.
>
> Paul
>
> --
> Paul M. Foster
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
A Brandon_R Production

--- End Message ---
--- Begin Message ---
On Sat, 2010-06-05 at 12:46 -0400, Brandon Rampersad wrote:

> Those are POST parameters and not GET.
> 
> On Fri, Jun 4, 2010 at 10:55 AM, Paul M Foster <pa...@quillandmouse.com>wrote:
> 
> > On Fri, Jun 04, 2010 at 06:54:34AM -0700, Michael Calkins wrote:
> >
> > >
> > > I would google this but I have no idea what this method is or how it
> > works.
> > > app.php?ph=cus&id=4
> > > Can some tell me what this either called or how it works?Can I get a
> > tutorial for it please?
> >
> > This is standard HTTP/HTML terminology, not unique to PHP. What is means
> > is that the script being executed (app.php) has been supplied two
> > parameters: "ph" and "id".
> >
> > app.php is a script that can perform various functions, depending on the
> > parameters passed to it. For example, app.php may display a record from
> > a database. And in this case, app.php may be tasked to display a
> > customer record, and the customer record it should display is the one
> > where the customer number is 4.
> >
> > Syntax-wise, after the name of the script (app.php), are whatever
> > parameters, if any, the script requires. The first question mark begins
> > the list of parameters. Each parameter normally will be in the form
> >
> > parameter=value
> >
> > In between each of these parameter/value pairs, you will find an
> > ampersand (&). So in this case, you have two parameters being passed.
> > The first is "ph", and its value is "cus". The second is "id" and its
> > value is "4". What these parameters mean exactly to the script depends
> > on the script. There's no universal guide for parameters, what they're
> > called or what their values can be. You'd have to look at the script
> > itself to see what the parameters make the script do.
> >
> > In PHP, if you want to use these parameters, you would query the
> > parameters this way:
> >
> > $page_type = $_GET['ph'];
> > $which_item = $_GET['id'];
> >
> > If executed this way, you would find that $page_type has a value of
> > 'cus', and $which_item = '4'.
> >
> > You might have code inside app.php which would look like the following:
> >
> > $type = $_GET['ph'];
> > $id = $_GET['id'];
> >
> > if ($type == 'cus')
> >        show_customer_page($id);
> >
> > Hope that helps.
> >
> > Paul
> >
> > --
> > Paul M. Foster
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 


Erm, no, they're definitely get variables and not post. Get data is sent
as part of the query string portion of the URL, post data is sent as
part of the header request.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---

Reply via email to