Re: PHP calling PHP? - Mailing list pgsql-php

From Roberto Mello
Subject Re: PHP calling PHP?
Date
Msg-id 20010511085241.A19103@cc.usu.edu
Whole thread Raw
In response to Re: PHP calling PHP?  (Chris Smith <csmith@squiz.net>)
List pgsql-php
On Thu, May 10, 2001 at 03:23:31PM +1000, Chris Smith wrote:
>
> > > > echo "<FORM ACTION=\"$PHP_SELF\" METHOD=\"POST\">\n";
> > >
> > >     Ack! You could do this for much better readability instead:
> > > echo "<FORM ACTION='$PHP_SELF' METHOD='POST'>\n";
           ^^^^^^^^^^^^^^^^
> Different quotes do different things in PHP, just something to remember...

    True, but that's not what I did. My line of code is correct. The
single quotes are within the double quotes, and hence are treated as
literals and the variable is evaluated.

    -Roberto

--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net
       http://www.sdl.usu.edu - Space Dynamics Lab, Developer
* * * <- Tribbles  � � � <- teenage mutant ninja tribbles

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://www.postgresql.org/search.mpl




pgsql-php by date:

Previous
From: "Heather Johnson"
Date:
Subject: Re: Re: how to determine where a select statement fails
Next
From: "Adam Lang"
Date:
Subject: Re: Re: how to determine where a select statement fails