Menu

Error message comes up

Help
John
2007-06-13
2013-05-07
  • John

    John - 2007-06-13

    I get this message, "Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /local/home/xxxxxxxxxxxxxxx/myftphp/myft.php on line 234".  Nothing else on the page.

    I'm not knowledgeable enough to understand what it's telling me. 

     
    • knittl

      knittl - 2007-06-14

      you are using php4, but my script uses some php5-specific class functions.
      i'm currently not at home, but i will submit a php4 version in the afternoon/evening. or eventually start a php4-fork.

      it will work the same, but in future versions it will only in php5 due to the new OOP-model.

      regards

       
    • John

      John - 2007-06-14

      Thanks for the new file.  I installed it, this is the error I get now:

      Fatal error: Call to undefined function: stripos() in /local/home/xxxxxxxxxxxxxxx/myftphp4/myft.php on line 406

      I'm sure it worked for you.  What do you recommend I do? 

       
    • knittl

      knittl - 2007-06-14

      oh s***. just checked with the php manual, and as it seems, stripos (get string position independent of capitalization) is only existing in php5. didn't know that.

      u could replace every stripos($haystack, $needle) call through strpos(strtolower($haystack), strtolower($needle)).

      but best would be to update your php server to php5, that would be less effort.

      regards

       
    • John

      John - 2007-06-14

      I installed your updated PHP4 file.  Thanks for all the extra work you did.  I logged into fine, but the next page had over 10 errors in it.  I emailed my webhost(www.ixwebhosting.com) and asked them to upgrade to PHP5, their answer was that will be done sometime in the future, time frame unknown.  I will give it a try again later after they get around to upgrading.   

       
      • knittl

        knittl - 2007-06-15

        ok. if time allows i will install php4 on my machine too and test it as far as possible.

         
      • knittl

        knittl - 2007-06-15

        ok, i installed php4 on my system. what i found was a really stupid php5>php4 error.
        the startpage looks fine, if all functions work correctly i cannot tell by now, help with this is appreciated.

        thanks for your good will ;)

         
    • John

      John - 2007-06-16

      Latest version of myftphp046php4.rar works great, no problems at all.  It is a very nice program, you have every right to be proud of it.  I shall enjoy using it.  Thanks so much for your effort with me.    

       

Log in to post a comment.

MongoDB Logo MongoDB