Re: HP syntax error, unexpected T_variable [message #179898 is a reply to message #179896] |
Tue, 18 December 2012 00:51 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 12/17/2012 6:51 PM, Thomas 'PointedEars' Lahn wrote:
> Twayne wrote:
>
>> […]
>> PHP 5.3.5 on XP Pro SP3+, Apache 2.2 local server.
>>
>> ------------------------
>>
>> <?php
>> if(isset($_POST['email'])) {
>>
>> $email_to=me(at)example(dot)com;
> ^ ^
>> /*
>> Parse error: syntax error, unexpected T_VARIABLE in
>> C:\xampp\htdocs\send.php on line 5
>> */
>> ...
>> ?>
> ^^
> Superfluous and error-prone at the end of a file. Also, there should be a
> “}” before it to end the block of the “if” statement.
>
Maybe you consider it superfluous, but GOOD programmer close their code
at the end. Of course, we know YOU don't.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|