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

From Chris Smith
Subject Re: PHP calling PHP?
Date
Msg-id 01051015233100.28891@area51.cybersydney.com.au
Whole thread Raw
In response to Re: PHP calling PHP?  (Grant <grant@conprojan.com.au>)
Responses RE: PHP calling PHP?  ("Christian Marschalek" <cm@chello.at>)
Re: PHP calling PHP?  (Roberto Mello <rmello@cc.usu.edu>)
Re: PHP calling PHP?  ("Christian Marschalek" <cm@chello.at>)
Re: PHP calling PHP?  (Roberto Mello <rmello@cc.usu.edu>)
List pgsql-php
> > > 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...

If you did echo '$PHP_SELF' (single quotes) it won't print the variable
value, it will print the variable name.. (easy to get caught on!)..

eg
<?
        echo "PHPSELF = $PHP_SELF<br>";
        echo 'PHPSELF = $PHP_SELF<br>';
?>

prints out..

PHPSELF = test.php
PHPSELF = $PHP_SELF

pgsql-php by date:

Previous
From: Grant
Date:
Subject: Re: PHP calling PHP?
Next
From: "Christian Marschalek"
Date:
Subject: RE: PHP calling PHP?