new!!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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> "; 
    )

    #2
    Lol whats new there. . .
    com site: http://vampist.net
    download site: http://wapdloads.net
    fb: http://www.facebook.com/pmplx

    Comment


      #3
      Originally posted by wapmetal View Post
      Lol whats new there. . .
      new error or new question!
      My Blog: http://jhommark.blogspot.com
      My Facebook: http://www.facebook.com/jhommark
      My Official Site: http://www.undergroundweb.tk
      My Community Site: http://undergroundwap.xtreemhost.com

      Comment


        #4
        I think this is NEW PROBLEM..
        LESS TALK. LESS MISTAKE.

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

        Comment


          #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.

          Comment


            #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 sigpic
            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.


            Comment


              #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.
              Last edited by morse; 31.08.09, 08:07.
              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

              Comment


                #8
                Originally posted by capofret View Post
                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.

                Comment


                  #9
                  Originally posted by kei_ki7 View Post
                  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 sigpic
                  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.


                  Comment


                    #10
                    PHP 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 \"> ";
                    just look at the commented parts

                    Comment


                      #11
                      Modfile, the 2nd "open tag" was between quotes print "<?php ?>"; wud be treated as a string.

                      Comment


                        #12
                        Originally posted by capofret View Post
                        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 :D



                        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.

                        Comment


                          #13
                          sister not tol hehehe

                          Originally posted by kei_ki7 View Post
                          btw tol thanks, my big brother told me too that dreamweaver is better than what im using :D



                          cedwap sorry for out of topic but i think our conversations helped you too
                          sister not tol.hehehehe

                          Comment


                            #14
                            Originally posted by zamaritan View Post
                            sister not tol.hehehehe
                            LoL, a girl can called toL :D
                            Did I help you?
                            You can help me too
                            Your donations will help me finance my studies.

                            Comment


                              #15
                              thanks for the info=)

                              Comment

                              Working...
                              X