Reply to Re: unexpected T_STRING

Your name:

Reply:


Posted by Anne Bos on 09/11/07 21:26

On Tue, 11 Sep 2007 12:26:47 -0400 wrote Jerry Stuckle
<jstucklex@attglobal.net>:

>Anne Bos wrote:
>> On Tue, 11 Sep 2007 10:36:14 -0500 wrote Good Man <heyho@letsgo.com>:
>>
>>> Anne Bos <anne.bosscha@hccnet.nl> wrote in
>>> news:93dde31litf6ag30gtct2a1l81lnkq0slt@4ax.com:
>>>
>>>> On Tue, 11 Sep 2007 07:22:57 -0400 wrote Jerry Stuckle
>>>> <jstucklex@attglobal.net>:
>>>>
>>>>> Anne Bos wrote:
>>>>>> After uploading a php file I got back the error message 'unexpected
>>>>>> T_STRING on line 1'.
>>>>>> Line 1 is <?php session_start() ?>.
>>>>>> The servers php version is 5.2.1.
>>>>>>
>>>>>> By the way, what is a T_STRING. I can't find that on php sites.
>>>>>>
>>>>>> Any suggestion is appreciated.
>>>>>> Anne Bos
>>>>> Aren't you missing something - like maybe a semicolon? :-)
>>>>>
>>>>> T_STRING AFAIK is just a non-operator, non-numeric value. I've never
>>>>> seen a definition of it, either - but never really looked for it. Too
>>>>> many years coding C/C++ - I'm use to cryptic messages :-)
>>>> Sorry, the ; is there. I should have copypasted.
>>>> So line 1 is <?php session_star(); ?>
>>>> Thank you so far.
>>>> Anne
>>>>
>>> errr, session_star(); or session_start(); ?
>>
>> Stupid me. session_start(); of course.
>> Sorry again.
>> Anne
>
>This shouldn't cause the error you indicate. Is this the first thing in
>your page? (It looks like it - but I have to ask).

Yes, it is
Then the head of a html-code (some 70 lines)
The body also first contains some html
then follows
<? php
$conn = connect();
$showrecs = 15;
$pagerange = 10;
and a lot more.
If the error is not in line 1 it should be here I guess.
Should I have a closer look to the function connect()?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация