Menu

Parse error: parse error in databay on line 1

Help
2002-04-24
2003-09-08
  • Nobody/Anonymous

    Parse error: parse error in databay on line 1

     
    • Nobody/Anonymous

      Parse error: parse error in /usr/local/apache/htdocs/index.php(2) : databay-microcode-decrypt on line 1

      im getting the same error on .97 / php 4.1.2 on netbsd 1.6RC1

      any info would be greatly appriciated

       
    • Nobody/Anonymous

      I too get the same error. I using php 4.2.3 with microcode .97
      The microcode section appears normal in the phpinfo() page. The text output is below.

      microcode
      Databay AG Encryption Support enabled
      Copyright Notice (C) 2001-2002 by Databay AG
      Version V 0.97

      Directive Local Value Master Value
      enable_keyfile
      0 0
      keyfile
      /etc/microcode/default.key /etc/microcode/default.key

       
    • Nobody/Anonymous

      Problem solved: You must remove the <?php and ?> tags from the source file before you use encoder.

      TW

       
    • Nobody/Anonymous

      Problem solved: You must remove the <?php and ?> tags from the source file before you use encoder.

      TW

       
    • Fernando Hallberg

      I removed de <?php and ?> from source file and error message changed to:

      Warning: Unexpected character in input: '' (ASCII=31) state=1 in /home/fernando/public_html/microcode/teste2.php(3) : databay-microcode-decrypt on line 1

      Parse error: parse error in /home/fernando/public_html/microcode/teste2.php(3) : databay-microcode-decrypt on line 1

       
    • Nobody/Anonymous

      I am still getting these kinds of errors with php-4.3.3. I can sucessfully encode and decode the files on the development machine, and I can load the .so file on the web page and display the phpinfo stuff indicating that the microcode library has been loaded but
      I continue to get the parse errors.

      Anybody got anymore ideas?

      It would help me a great deal if somebody could post a working set of php files for testing, e.g. the setup I am trying to use is the following
      file test.php contains

      <?PHP
      dl("microcode.so");
      databay_microcode_include("info_enc.php");
      ?>

      where the file info_enc.php is the result of running
      encoder info.php info_enc.php 20
      on the file containing the single line

      phpinfo();

      Note that I have tried it with and without the <?PHP and ?> lines.

       

Log in to post a comment.

MongoDB Logo MongoDB