new!!!
Collapse
X
-
btw tol thanks, my big brother told me too that dreamweaver is better than what im using :DOriginally posted by capofret View Posti 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.
cedwap sorry for out of topic but i think our conversations helped you too
Leave a comment:
-
Modfile, the 2nd "open tag" was between quotes print "<?php ?>"; wud be treated as a string.
Leave a comment:
-
just look at the commented partsPHP Code:<? ///// 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 \"> ";
Leave a comment:
-
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.Last edited by morse; 31.08.09, 08:07.
Leave a comment:
-
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??
Leave a comment:
-
..LoLz you make me laugh with the title of the thread, is this a beauty contest script ??
Leave a comment:
-
new error or new question!Originally posted by wapmetal View PostLol whats new there. . .
Leave a comment:
-
new!!!
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
PHP Code:<? 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> "; )Tags: None
Leave a comment: