Menu

PHP ERROR

Help
2003-02-25
2003-03-19
  • Wangsu Wang

    Wangsu Wang - 2003-02-25

    I keep getting the message Notice: Undefined variable: mode in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 9

    Notice: Undefined variable: mode in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 9

    Notice: Undefined variable: SCRIPT_FILENAME in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 22

    Notice: Undefined offset: 1 in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 24

    Notice: Undefined offset: 1 in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 25

    Notice: Undefined variable: SCRIPT_NAME in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 27

    Notice: Undefined variable: dispsize in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 30

    Notice: Undefined variable: start in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 31

    Notice: Undefined variable: pic in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 32

    Notice: Undefined variable: album in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 32

    Notice: Undefined variable: mode in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 35

    Notice: Undefined variable: mode in C:\Documents and Settings\default\My Documents\picture\index.phtml on line 35

    what should I do?

     
    • Robert

      Robert - 2003-03-19

      PHPix is not pre-declaring variables, and the current version uses globals from Get/Put.  The next version will use $_REQUEST[var] to be more safe.
      But to remove these notices, go to your php.ini and change the error reporting to print only errors, not everything like notices.
      Your setup is the equivalent of using strict mode in perl, and the PHPix code is not 100% polished yet :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.