I've been at this for hours so forgive me if I'm out of it. I'm installing PHPLIB on my home system running Apache and PHP4.

Problem is I get a "Can't find Server" when I try to load any php page. I've tweaked the httpd.conf files to accept .php and .php3, extensions. Also configured as instructed ScriptAlias...AddType etc.

I've configured the PHP.ini file like this:
include_path= ".;C:\Program Files\Apache Group\Apache\php;C:\Program Files\Apache Group\Apache\php";

I'm stumped.

Pete

    After more "tweaking" I'm now getting this:

    Fatal error: Failed opening required 'db_mysql.inc' (include_path='.;i:\Program Files\Apache Group\Apache\php\include;i:\Program Files\Apache Group\Apache\php') in C:\Program Files\Apache Group\Apache\php\prepend.php3 on line 19

    Hope this helps clarify my problem.

    Pete

      Check out line 16 of prepend.php3. I think you need to enter the path to the .inc files here.
      $_PHPLIB["libdir"] = "here/is/path/to/phplib/";

      What functionality do you want from phplib?

      Scott

        Thanks, that's a step in the right direction, I think, as now I'm getting a parse error****

        Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in C:\Program Files\Apache Group\Apache\php\prepend.php3 on line 19

        I need phplib for database abstraction. I've just joined a consulting company working on a a large corporate intranet and the firm I'm with develops with PHP, PHPLIB and FastTemplates.

        Thanks for you help, and any suggestions will be greatly appreciated.

        Pete

          What database are you working with. If it is for example mysql why not just use the db_mysql.inc file, rename it to db_mysql.php
          or take the code out and put in your global.php script or whatever script you use to initiate the database connection. You don't need any more than that. Otherwise your loading all parts of PHPlib which you actually do not need. i.e. sessions management. PHP 4 has it's own session management now so phplib sessions are not needed.

          Another question. Why do you use FastTemplates when PHPlib has it's own template class? And supposedly it's faster than FastTemplates. See the discussion under: http://www.phpbuilder.com/columns/david20000512.php3

          I'm also learning PHP and have started to program with PHPlib Templates and find it fantastic.

          Hope I could help.

          Scott

            I use MySQL. RE: FastTemplates, well that's what the company uses and for the moment they want to stick with that. They're gonna stay with session management via phplib for now too, though they have php4.

            Thanks for the help, now getting the generic "Page Unavailable"...hmmm

            Pete

              If you're not wedded to Apache, try BadBlue as a server, it's about a 160K download and takes a minute or so to setup.

              Email me if you have any problems.

              http://badblue.com/helpphp.htm

                7 months later

                How did you eventually get past the prase error. I am also getting the same error while installing PHPLIB with PHP4.

                The complete message is:

                Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in c:\Apache\php\prepend.php3 on line 15

                mehta_bhavesh@yahoo.com
                bhavesh@yahoo-inc.com

                  Write a Reply...