FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » HP syntax error, unexpected T_variable
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: HP syntax error, unexpected T_variable [message #179892 is a reply to message #179890] Mon, 17 December 2012 17:44 Go to previous messageGo to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:aj92hoFhv6sU1(at)mid(dot)uni-berlin(dot)de,
M. Strobel <sorry_no_mail_here(at)nowhere(dot)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(at)example(dot)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(at)example(dot)com';
> php > if (isset( $_POST['email'])) { $to_1 =
> $_POST['email']; $to_2 = 'me(at)example(dot)org';} php > echo "I
> send mails to $to_1 and $to_2 \n";
> I send mails to cc(at)example(dot)com and me(at)example(dot)org
>
>
> /Str.


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

Twayne`
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Gettting values from URL in PHP 5.4
Next Topic: passing values into javascript
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:24:42 GMT 2024

Total time taken to generate the page: 0.04131 seconds