new!!!

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

14 replies · 735 views · started 17 years ago · 1 min read

10 participants
cedwap Developer · 64 posts #1

Parse error: syntax error, unexpected T_STRING in /home/chatbet/public_html/ezowap/vote.php on line 5

I encountered this problem when I installed the vote.php

	<? 
session_start ( "$ REMOTE_ADDR"); 
header ( "Content-type: text / vnd.wap.wml; charset = utf-8"); 
require ( "nadstr.php"); 
print "<? xml version = \" 1.0 \ "encoding = \" utf-8 "?> 
<! DOCTYPE wml PUBLIC \ "- / / WAPFORUM / / DTD WML 1.1 / / EN \" \ "http://www.wapforum.org/DTD/wml_1.1.xml \"> "; 
if (empty ($ vote) & & empty ($ result)) ( 
print "<wml> <card title = \" Golosovani f \ "> <p> Question: $ vopros <br/> from Board: <br /> <br/> <select name=\"vote\" title=\"vote\"> 
<option value=\"1\"> $ otv1 </ option> 
<option value=\"2\"> $ otv2 </ option> 
<option value=\"3\"> $ otv3 </ option> 
<option value=\"4\"> $ otv4 </ option> 
<option value=\"5\"> $ otv5 </ option> 
</ select> 
</ p> 
<do type = \ "accept \" label = \ "Golosovat & # x044C;! \ "> 
<go href=\"vote.php\" method=\"post\"> 
<postfield name=\"vote\" value=\"$(vote)\"/> 
</ go> 
</ do> <br/> <do type = \ "accept \" label = \ "Rezult & # x0430; you \ "> 
<go href=\"vote.php\" method=\"post\"> 
<postfield name=\"result\" value=\"$(vote)\"/> 
</ go> 
</ do> 
</ card> 
</ wml> "; 
) 

if (! empty ($ vote)) ( 
if (@ $ vote == "") ( 
print "<wml> <card title=\" Oshibka\"> <p align = \" center \ "> & # x0412; We have not picked wa options reply! V & # x0435; rnites and sélectionner ; third option on & # x0442; Board! </ p> </ card> </ wml> "; 
) 
if (empty ($ _SESSION)) ( 
$ _SESSION [ 'Username'] = $ vote; 
if ($ vote == "1") ( 
$ file = fopen ( "vote.dat", "r +"); 
$ data = file ( "vote.dat"); 
list ($ ot1, $ ot2, $ ot3, $ ot4, $ ot5) = explode ("|", $ data [0]); 
$ ot1 + +; 
$ zapis = "$ ot1 | $ ot2 | $ ot3 | $ ot4 | $ ot5"; 
$ summa = $ ot1 + $ ot2 + $ ot3 + $ ot4 + $ ot5; 
if ($ file) ( 
fputs ($ file, $ zapis); 
) 
print "<wml> <card title = \" Golosovani f \ "> <p align = \" center \ "> Questioned \ "$ vopros \" $ summa responded ?? & # x043B; ovek (a). <br /> 
Among them: <br /> 
$ otv1 - $ ot1 person (s); <br /> 
$ otv2 - $ ot2 person (s); <br /> 
$ otv3 - $ ot3 person (s); <br /> 
$ otv4 - $ ot4 person (s); <br /> 
$ otv5 - $ ot5 person (s); <br /> 
</ p> </ card> </ wml> "; 
) 
if ($ vote == "2") ( 
$ file = fopen ( "vote.dat", "r +"); 
$ data = file ( "vote.dat"); 
list ($ ot1, $ ot2, $ ot3, $ ot4, $ ot5) = explode ("|", $ data [0]); 
$ ot2 + +; 
$ zapis = "$ ot1 | $ ot2 | $ ot3 | $ ot4 | $ ot5"; 
$ summa = $ ot1 + $ ot2 + $ ot3 + $ ot4 + $ ot5; 
if ($ file) ( 
fputs ($ file, $ zapis); 
) 
print "<wml> <card title = \" Golosovani f \ "> <p align = \" center \ "> Questioned \ "$ vopros \" $ summa responded ?? & # x043B; ovek (a). <br /> 
Among them: <br /> 
$ otv1 - $ ot1 person (s); <br /> 
$ otv2 - $ ot2 person (s); <br /> 
$ otv3 - $ ot3 person (s); <br /> 
$ otv4 - $ ot4 person (s); <br /> 
$ otv5 - $ ot5 person (s); <br /> 
</ p> </ card> </ wml> "; 
) 
if ($ vote == "3") ( 
$ file = fopen ( "vote.dat", "r +"); 
$ data = file ( "vote.dat"); 
list ($ ot1, $ ot2, $ ot3, $ ot4, $ ot5) = explode ("|", $ data [0]); 
$ ot3 + +; 
$ zapis = "$ ot1 | $ ot2 | $ ot3 | $ ot4 | $ ot5"; 
$ summa = $ ot1 + $ ot2 + $ ot3 + $ ot4 + $ ot5; 
if ($ file) ( 
fputs ($ file, $ zapis); 
) 
print "<wml> <card title = \" Golosovani f \ "> <p align = \" center \ "> Questioned \ "$ vopros \" $ summa responded ?? & # x043B; ovek (a). <br /> 
Among them: <br /> 
$ otv1 - $ ot1 person (s); <br /> 
$ otv2 - $ ot2 person (s); <br /> 
$ otv3 - $ ot3 person (s); <br /> 
$ otv4 - $ ot4 person (s); <br /> 
$ otv5 - $ ot5 person (s); <br /> 
</ p> </ card> </ wml> "; 
) 
if ($ vote == "4") ( 
$ file = fopen ( "vote.dat", "r +"); 
$ data = file ( "vote.dat"); 
list ($ ot1, $ ot2, $ ot3, $ ot4, $ ot5) = explode ("|", $ data [0]); 
$ ot4 + +; 
$ zapis = "$ ot1 | $ ot2 | $ ot3 | $ ot4 | $ ot5"; 
$ summa = $ ot1 + $ ot2 + $ ot3 + $ ot4 + $ ot5; 
if ($ file) ( 
fputs ($ file, $ zapis); 
) 
print "<wml> <card title = \" Golosovani f \ "> <p align = \" center \ "> Questioned \ "$ vopros \" $ summa responded ?? & # x043B; ovek (a). <br /> 
Among them: <br /> 
$ otv1 - $ ot1 person (s); <br /> 
$ otv2 - $ ot2 person (s); <br /> 
$ otv3 - $ ot3 person (s); <br /> 
$ otv4 - $ ot4 person (s); <br /> 
$ otv5 - $ ot5 person (s); <br /> 
</ p> </ card> </ wml> "; 
) 
if ($ vote == "5") ( 
$ file = fopen ( "vote.dat", "r +"); 
$ data = file ( "vote.dat"); 
list ($ ot1, $ ot2, $ ot3, $ ot4, $ ot5) = explode ("|", $ data [0]); 
$ ot5 + +; 
$ zapis = "$ ot1 | $ ot2 | $ ot3 | $ ot4 | $ ot5"; 
$ summa = $ ot1 + $ ot2 + $ ot3 + $ ot4 + $ ot5; 
if ($ file) ( 
fputs ($ file, $ zapis); 
) 
print "<wml> <card title = \" Golosovani f \ "> <p align = \" center \ "> Questioned \ "$ vopros \" $ summa responded ?? & # x043B; ovek (a). <br /> 
Among them: <br /> 
$ otv1 - $ ot1 person (s); <br /> 
$ otv2 - $ ot2 person (s); <br /> 
$ otv3 - $ ot3 person (s); <br /> 
$ otv4 - $ ot4 person (s); <br /> 
$ otv5 - $ ot5 person (s); <br /> 
</ p> </ card> </ wml> "; 
) 
) Else ( 
print "<wml> <card title=\" Oshibka\"> <p> <b> V & # x044B; already Vote Wali! </ b> </ p> </ card> </ wml> "; 
) 
) 
if (! empty ($ result)) ( 
$ file = fopen ( "vote.dat", "r"); 
$ data = file ( "vote.dat"); 
list ($ ot1, $ ot2, $ ot3, $ ot4, $ ot5) = explode ("|", $ data [0]); 
$ summa = $ ot1 + $ ot2 + $ ot3 + $ ot4 + $ ot5; 
print "<wml> <card title=\" Rezultaty\"> <p align=\"center\"> When asked \ "$ vopros \" & # x043E; tvetili $ summa human & # x0432; Miracles (a). <br /> 
Among them: <br /> 
$ otv1 - $ ot1 person (s); <br /> 
$ otv2 - $ ot2 person (s); <br /> 
$ otv3 - $ ot3 person (s); <br /> 
$ otv4 - $ ot4 person (s); <br /> 
$ otv5 - $ ot5 person (s); <br /> 
</ p> </ card> </ wml> "; 
)

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

robzky Developer · 205 posts #4

I think this is NEW PROBLEM.. 🙂

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

kei_ki7 Senior · 431 posts #5

..LoLz you make me laugh with the title of the thread, is this a beauty contest script ??

Did I help you? You can help me too Your donations will help me finance my studies.

capofret Developer · 225 posts #6

is this the line 5?? print "<? xml version = \" 1.0 \ "encoding = " utf-8 "?>

maybe you forgot to close with ";

sometimes you accidentally delete " , ; ' ) } <? ?> so check for those get a good html editor, it helps show whats the missing syntax

OT: cant you think of appropriate topic?? 🤨

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

morse Senior · 364 posts #7

The code that has been put in is highly unoptimised server killer. There is too much use of if statement and thats exactly why you have the T_string problem as you have used if again and again, You were supposed to used else if, or more properly you should have used switch statement. Also there is no proper closure of the php code on the first line you started with <? but where does it end ?? I dont see ?> anywhere at the end.

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

kei_ki7 Senior · 431 posts #8

capofret wrote: get a good html editor, it helps show whats the missing syntax

do you have one to recommend ??

Did I help you? You can help me too Your donations will help me finance my studies.

capofret Developer · 225 posts #9

kei_ki7 wrote: do you have one to recommend ??

i use macromedia dreamweaver. it can open and edit any script txt, php, html, wml, asp, java,etc.

actions, elements, tags, etc. are shown in different colors so it helps to see the errors.

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

modfiles Developer · 200 posts #10
 <?  
///// PHP open tag started

session_start ( "$ REMOTE_ADDR");  
header ( "Content-type: text / vnd.wap.wml; charset = utf-8");  
require ( "nadstr.php");  

print "<? ///// PHP open tag started (AGAIN) without closing the firs open tag 
xml version = \" 1.0 \ "encoding = " utf-8 "?>  
<! DOCTYPE wml PUBLIC \ "- / / WAPFORUM / / DTD WML 1.1 / / EN \" \ "http://www.wapforum.org/DTD/wml_1.1.xml \"> "; 

just look at the commented parts

kei_ki7 Senior · 431 posts #12

capofret wrote: i use macromedia dreamweaver. it can open and edit any script txt, php, html, wml, asp, java,etc.

actions, elements, tags, etc. are shown in different colors so it helps to see the errors.

btw tol thanks, my big brother told me too that dreamweaver is better than what im using 😀

cedwap sorry for out of topic but i think our conversations helped you too

Did I help you? You can help me too Your donations will help me finance my studies.

zamaritan Junior · 26 posts #13

sister not tol hehehe

kei_ki7 wrote: btw tol thanks, my big brother told me too that dreamweaver is better than what im using 😀

cedwap sorry for out of topic but i think our conversations helped you too

sister not tol.hehehehe

kei_ki7 Senior · 431 posts #14

zamaritan wrote: sister not tol.hehehehe

LoL, a girl can called toL 😀

Did I help you? You can help me too Your donations will help me finance my studies.

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close