PHP 4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Herb
    Senior Member
    • Apr 2000
    • 106

    PHP 4

    Hey gang.. Well I been trying all morning to run the control panel..

    I am getting the error message:
    Fatal error: Cannot redeclare class db_sql in db_mysql.php on line 6

    I am running PHP4RC2 with the Zend Optimizer B2 on WINNT 4 SRVPK 6 IIS 4..

    Any ideas..? have you tried php4 at all? I understand this may not be supported yet but thought I would try.. If I can be of any assistance in trying to make it work under php4 I would be glad to help..

    Herb
    Attached Files
    The Cannabis Edge
  • John
    Senior Member
    • Apr 2000
    • 4042

    #2
    I did test it on PHP 4 Beta 2 under Windows, and there was no problem then. Do you think that you could explain a bit more what you were doing when the error occured. Also, could you provide some information about your PHP/MySQL setup and configuration. Email them to me if you are not happy posting them here.

    Cheers,
    John
    John Percival

    Artificial intelligence usually beats real stupidity ;)

    Comment

    • Herb
      Senior Member
      • Apr 2000
      • 106

      #3
      Yup

      Thanks for the quick reply.. It was after entering the admin info to enter the control panel for the first time.. Now all of a sudden (after a reboot) I get the the left and top frame no problem but the main frame I get "PHP Access violation at" and it gives a random number..

      I am actually running NT Workstation with PWS.. PHP is setup as an isapi not cgi and mysql is using the defaults.. I can email you my php.ini file if you would like.. It was left to the defaults pretty much.

      I have simliar problems with PHPMYAdmin as it was written for php 3.. I chucked it up to the app but I am thinking now I have something goofy.. All my own written scripts work fine..

      My live server is configured the same except it is NT Server and true IIS.. It it doing the same thing so I pulled it down.. Maybe I should try it as a cgi and not ISAPI?

      When you tested was it setup cgi or isapi? also did you install the Zend Optimizer.. I am gonna try cgi first, if that dont work then remove Zends optimizer and see what happens..

      Herb
      Attached Files
      The Cannabis Edge

      Comment

      • Herb
        Senior Member
        • Apr 2000
        • 106

        #4
        Got it!!

        Alrighty.. Seems running PHP 4 as a cgi works.. All of my problems(including other apps) went away once I set it up to NOT use isapi but as cgi..

        This is one mighty cool app!!!!

        My configuration for the record..

        NT Workstation 4.0 SRVPK 6
        PWS 4.0
        PHP 4.0 Release Canidate 2 (3-27-2000)
        Zend Optimizer Beta 2

        PHP configured as a cgi NOT ISAPI..

        Herb
        Attached Files
        The Cannabis Edge

        Comment

        • John
          Senior Member
          • Apr 2000
          • 4042

          #5
          I'm glad you managed to get it going in the end. Perhaps this is something that should be reported to the PHP development team if the problem is reproduceable.

          Thanks,
          John
          Attached Files
          John Percival

          Artificial intelligence usually beats real stupidity ;)

          Comment

          • Michael
            Member
            • Apr 2000
            • 65

            #6
            PHP4

            Works on PHP4 running as a module with Zend Optimiser installed on Apache 1.3.12 on a FreeBSD System :P

            Just so you know if you are running it on a system like that it should still work.
            Attached Files
            Michael Bray

            Comment

            • kibbles
              New Member
              • May 2000
              • 7

              #7
              Having the same problem...

              Running Redhat 6.1 with PHP4 RC1. When I go through the install script I'm getting:

              Fatal error: Cannot redeclare class db_sql in db_mysql.php on line 6

              *sigh*

              -Greg

              Comment

              • kibbles
                New Member
                • May 2000
                • 7

                #8
                SOLVED!

                After going back I solved the problem. One of the more widely-used PHP packages is a session management package. It's added to my auto_prepend_file parameter in my php configuration.

                It also declares that class which is why the error pops up. I removed it from my prepend and install worked fine.

                -G
                Attached Files

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                😀
                😂
                🥰
                😘
                🤢
                😎
                😞
                😡
                👍
                👎