Re: back ticks
| From: | kev | Date: | Tue, 01 Aug 2000 12:34:49 +0000 |
| Subject: | Re: back ticks | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9407@lists.php.net to get a copy of this message | ||
dima,
Back ticks are used to execute external commands, eg the following line will
print out what OS you are using:
echo "OS = ".
uname."<BR>";
Your example would probably work if you remove the backticks altogether as
they are unnecessary, although you may need to put the $month+1 term in
brackets.
HTH,
- Kev
dima wrote:
> Hi everyone,
>
> for some particular reason back ticks fail to to evaluate the expression
> in the following:
>
> $month = 7;
> $year = 2000;
>
> echo date ("t", mktime (0,0,0,$month + 1,0,$year));
>
> and I can't get why.
>
> help much appreciated.
>
> thanks.
>
> d.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net