[PHP-DEV] Re: Bug #11703 Updated: Failed opening prepend.php3 From: Garey Mills (gmills <email protected>)
Date: 06/27/01

Hi -

Here is prepend.php3:

<?php
/*
 * Session Management for PHP3
 *
 * Copyright (c) 1998,1999 SH Online Dienst GmbH
 * Boris Erdmann, Kristian Koehntopp
 *
 * $Id: prepend.php3,v 1.1.2.4 2000/09/08 20:55:27 bjn Exp $
 *
 */

if (empty($_PHPLIB) || !is_array($_PHPLIB)) {
# Aren't we nice? We are prepending this everywhere
# we require or include something so you can fake
# include_path when hosted at provider that sucks.
  $_PHPLIB["libdir"] = "";
}

require($_PHPLIB["libdir"] . "db_mysql.inc"); /* Change this to match
your database. */
require($_PHPLIB["libdir"] . "ct_sql.inc"); /* Change this to match
your data storage container */
require($_PHPLIB["libdir"] . "session.inc"); /* Required for everything
below. */

/* Additional require statements go below this line */
/* Additional require statements go before this line */

require($_PHPLIB["libdir"] . "local.inc"); /* Required, contains your
local configuration. */
require($_PHPLIB["libdir"] . "page.inc"); /* Required, contains the
page management functions. */

?>

================================================================================================

On 27 Jun 2001, Bug Database wrote:

> ID: 11703
> Updated by: sniper
> Reported By: gmills <email protected>
> Old-Status: Open
> Status: Feedback
> Bug Type: Scripting Engine problem
> Operating system:
> PHP Version: 4.0.6
> Assigned To:
> Comments:
>
> What is in the file prepend.php3 ??
>
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-06-26 14:54:23] gmills <email protected>
> The comment should read "I commented out the auto-prepend-file directive in php.ini and got a 'test.php' file to run phpinfo."
>
> ---------------------------------------------------------------------------
>
> [2001-06-26 14:52:25] gmills <email protected>
> I commented out the auto-prepend-file directive and a 'test.php' file to run phpinfo.
>
> ---------------------------------------------------------------------------
>
> [2001-06-26 13:06:13] gmills <email protected>
> PHP compiled with imap support. I get this:
>
> Warning: Failed opening ''/opt/apache/php/prepend.php3'' for inclusion (include_path=''.:/opt/apache/php'') in Unknown on line 0
>
> opening any '.php' file with the browser. prepend.php3 has correct permissions and so do the containing directories. It won't open anywhere I put it. I have also tried just putting the file name in php.ini. I have also tried permuting the include path.
>
> PHP is compiled into Apache 1.3.20 as a static module, and httpd.conf has an AddType directive for php.
>
> What am I doing wrong?
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=11703&edit=2
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>