Re: PHP calling PHP?

Поиск
Список
Период
Сортировка
От Roberto Mello
Тема Re: PHP calling PHP?
Дата
Msg-id 20010511085241.A19103@cc.usu.edu
обсуждение исходный текст
Ответ на Re: PHP calling PHP?  (Chris Smith <csmith@squiz.net>)
Список 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 по дате отправления:

Предыдущее
От: "Heather Johnson"
Дата:
Сообщение: Re: Re: how to determine where a select statement fails
Следующее
От: "Adam Lang"
Дата:
Сообщение: Re: Re: how to determine where a select statement fails