To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 23 December 2004 18:04, amol patil wrote:
hallo Mike,
thanks for reply, but i want a bit more help, again
I want a Porsche if anybody is listening.
Please keep this on-list -- someone else may have time to reply before I can (especially as I am about to go home for my tea and a well-earned sleep!).
i know these parse errors are generally typing mistakes ,
that is the only thing they are, assuming the build of php you are running is okay (i'll hazard a guess you are running on some shared hosting or a local copy on windows - either I doubt the php binary is the problem), php is telling you there are syntax errors
but i have checked for it , but still i am getting errors.
i have attached files with their codes , can you go through it to find what is going wrong
the attached files are stripped when going thru the mailing list.
Parse error: parse error, unexpected '<' in /home/dollar1/public_html/signup.php on line 263
this means the character '<' appeared in your code where it shouldn't
e.g.
<?php
$i <= 0; // okay $i =< 0; // borked
parse error, unexpected '<' in /home/dollar1/public_html/login.php on line 94
Parse error: parse error, unexpected T_STRING in /home/dollar1/public_html/addfunds.php on line 91 then on 102
T_STRING means 'String Token' (a token is an atomic syntax element, very roughly speaking tokens are what the php engine turns your code into so that it can translate it into machine code)
it means you are declaring a string where you should not, e.g. a misplaced opening quote:
<?php
$i = 'this line is borked'';
---
in short you code is not correct. correct code does not give parse errors.
also realise that the error may not occur on the line the parser chokes on. often it is the preceeding line that has a typo, and in the case of an unmatched curly brace the error can occur at the very end of the script, when the offending curly brace is found somewhere at the beginning.
thank you.
"Ford, Mike" <M.Ford@xxxxxxxxxxxxxx> wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 21 December 2004 07:58, amol patil wrote:
hallo friend,
i have developed simple and small database website using php ,html
and java script.
but i am getting these three parse errors on clicking ,
i have checked 3-4 imes on these line numbers, but there wasn't any $ variable. php script is also correctly written. what is this T_STRING error.
can you help me regarding this.
thank you.
errors:
Parse error: parse error, unexpected $ in /home/dollar1/public_html/signup.php3 on line 379
$ in PHP's error messages represents the end of the file, so PHP has
reached the end of signup.php3 when it's still expecting more
program. This means you have an error somewhere in the preceding 378
lines -- most likely a missing }. (If PHP was complaining about a
variable reference, the message would refer to "unexpected
T_VARIABLE".)
Cheers!
Mike
--------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@xxxxxxxxxxxxxx Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
Do you Yahoo!? Jazz up your holiday email with celebrity designs. Learn more.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php