ID:               23862
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jason at rpdesign dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Gentoo Linux PPC
 PHP Version:      4.3.1
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Since the file was already included, the include_once fails, this is
expected behaviour.


Previous Comments:
------------------------------------------------------------------------

[2003-05-28 14:00:05] jason at rpdesign dot com

include_once will not include the file that the browser has requested.
even if it has not been executed yet (from withith the
auto_prepend_file.)

I am using mod_php with apache 2.

In my .htaccess file I have:

  php_value auto_prepend_file prep.php

in prep.php I have:

  ...
  # Get the name of the file requested from the browser
  $mainfile = ereg_replace('.*/', '', $_SERVER['SCRIPT_FILENAME']);

  include_once($mainfile);

This now does nothing.

With php 4.2.1 on your x86 RedHat box this works fine.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23862&edit=1

Reply via email to