Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7824

Re: HP syntax error, unexpected T_variable

From "Twayne" <nobody@devnull.spamcop.net>
Newsgroups comp.lang.php
Subject Re: HP syntax error, unexpected T_variable
Date 2012-12-17 12:44 -0500
Organization Aioe.org NNTP Server
Message-ID <kanlmv$asi$1@speranza.aioe.org> (permalink)
References <kanjie$4pm$1@speranza.aioe.org> <aj92hoFhv6sU1@mid.uni-berlin.de>

Show all headers | View raw


In news:aj92hoFhv6sU1@mid.uni-berlin.de,
M. Strobel <sorry_no_mail_here@nowhere.dee> typed:
> Am 17.12.2012 18:08, schrieb Twayne:
>> I'm still fighting the error message below over two days
>> now. I'm back again hopefully
>> simplifying my question to get more answers. So far I've
>> had no hint what the syntax error is. As a neophyte I'm
>> trying to work down thru one problem at a time so it's a
>> learning experience, too. I've looked at several other
>>    scripts and they seem to do the same thing I'm doing.
>> PHP 5.3.5 on XP Pro SP3+, Apache 2.2 local server.
>>
>> ------------------------
>>
>> <?php
>> if(isset($_POST['email'])) {
>>
>>   $email_to=me@example.com;
>> /*
>> Parse error: syntax error, unexpected T_VARIABLE in
>> C:\xampp\htdocs\send.php on line 5
>> */
>> ...
>>>
>> ----------------------------
>
> There must be something wrong with your installation. Or
> you are execting a different php file than you think.

If there's anything wrong with my installation I'm not aware of it. I've 
gone thru php.ini pretty closely and the XAMPP conf files and AFAICT all is 
OK.
   Every other .php I have played with works, including phpinfo and several 
other stubs I've played with.

No, I'm not getting the wrong file. It only exists in and is saved directly 
to htdocs.

    I use NotePro to develop my code as it has an automatic click where all 
it takes is a click to send the file in htdocs to my local server. It also 
has a great clip library for PHP plus  I made one of my own to make things 
easier to find.

And I use NoteTab for highlghting the text, etc. when  I have to 
troubleshoot. Maybe I will look into a legit IDE and see if that helps with 
stuff like this.
>
> strobel@s114-intel:~> php -a
> Interactive shell
>
> php > $_POST['email']= 'cc@example.com';
> php > if (isset( $_POST['email'])) { $to_1 =
> $_POST['email']; $to_2 = 'me@example.org';} php > echo "I
> send mails to $to_1 and $to_2 \n";
> I send mails to cc@example.com and me@example.org
>
>
> /Str.


that might help; I'll dig more into it.  Thanks.

Twayne` 

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

HP syntax error, unexpected T_variable "Twayne" <nobody@devnull.spamcop.net> - 2012-12-17 12:08 -0500
  Re: HP syntax error, unexpected T_variable "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-17 18:19 +0100
    Re: HP syntax error, unexpected T_variable "Twayne" <nobody@devnull.spamcop.net> - 2012-12-17 12:44 -0500
      Re: HP syntax error, unexpected T_variable Denis McMahon <denismfmcmahon@gmail.com> - 2012-12-17 18:05 +0000
  Re: HP syntax error, unexpected T_variable The Natural Philosopher <tnp@invalid.invalid> - 2012-12-17 17:30 +0000
  Re: HP syntax error, unexpected T_variable Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-18 00:51 +0100
    Re: HP syntax error, unexpected T_variable Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-17 19:51 -0500
      Re: HP syntax error, unexpected T_variable "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-18 12:36 +0100
        Re: HP syntax error, unexpected T_variable Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-18 07:10 -0500
          Re: HP syntax error, unexpected T_variable "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-12-18 14:11 +0100
            Re: HP syntax error, unexpected T_variable Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-18 11:50 -0500
              Re: HP syntax error, unexpected T_variable Adam Harvey <usenet@adamharvey.name> - 2012-12-19 02:02 +0000
                Re: HP syntax error, unexpected T_variable Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-18 21:23 -0500
                Re: HP syntax error, unexpected T_variable "Twayne" <nobody@devnull.spamcop.net> - 2012-12-18 21:41 -0500
    RESOLVED! Re: HP syntax error, unexpected T_variable "Twayne" <nobody@devnull.spamcop.net> - 2012-12-17 20:56 -0500
      Re: RESOLVED! Re: HP syntax error, unexpected T_variable Denis McMahon <denismfmcmahon@gmail.com> - 2012-12-18 17:34 +0000

csiph-web