Date: 10/29/99
- Next message: Teodor Cimpoesu: "Re: [PHPLIB] trouble upgrading"
- Previous message: Jay Pfaffman: "[PHPLIB] trouble upgrading"
- In reply to: Jack Lauman: "Re: [PHPLIB] index.php3 test page error..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Jack:
I've seen this, and dealt with it.
What's going on is that if you have a site rooted in a
directory, let's say: /users/www/MySite/public_html
And you have your PHPLIB installed in an include
directory like: /users/www/MySite/include/phplib7/php
If your script files in your site directory include files
from the include directory, they must, of course have
the full path (or rely in your INCLUDE path environment
variables -- more on that below). Now -- if these
(presumably *.php3 or *.inc) include files also include
other php files in that same include directory, then
these include statements also need that same include
path. The path seems to be resolved relative to the
original website directory, where the files are actually
getting served from.
In other words, if you are NOT relying on an implicit
environment include path being set, (so you are using
explicit include paths) they all get resolved relative to
the actual served file location.
Now -- the natural question: why aren't you using
the enviroment include path? There are many different
reasons, the most important of which is that if you are
just prototyping on another site, and you haven't yet
tweaked all the system vars (or you can't because it's
not really your system like when you are working on
a client suite hosted on someone else's system) it
makes sense to go ahead and just install the PHPLIB
source in a know local include directory and proceed
to prototype your application.
Hope this helps...
-- Daniel.
-- Daniel Cunningham
At 11:57 AM 10/29/1999 -0700, you wrote:
>
>
>Jack Lauman wrote:
>>
>> If I put the statement:
>>
>> 'auto_prepend_file = "/home/httpd/php/prepend.php3"
>>
>> in the php.ini file ALL currently working PHP pages cause the browser
>> to report "The document contained no data. etc."
>>
>> I have tried editing the PHPLIB index.php3 file to include the "prepend.
>> php3" file manually and it produces the same error. It appears that no
>> include or require statements will work at all.
>>
>> I would appreciate any help in resolving this problem. At this point I
>> haven't got a clue as to whats wrong.
>>
>> Regards,
>>
>> Jack Lauman
>>
>> Kristian Koehntopp wrote:
>> >
>> > On Thu, Oct 28, 1999 at 04:42:34PM -0700, Jack Lauman wrote:
>> > > Fatal error: Call to undefined function: page_open() in
>> > > /home/httpd/www/index.php3 on line 16
>> >
>> > The page_open() function is defined in page.inc, which in turn
>> > is included from prepend.php3. prepend.php3 is not found,
>> > resulting in an error.
>> >
>> > > include_path = ".:/home/httpd/php:/home/httpd/php/phorum"
>> > > doc_root = "/home/httpd/www"
>> > >
>> > > 1. Is this the correct installation location, the doc's said to
>> > > install it parallel to the Apache document root?
>> >
>> > Yes, this is recommended.
>> >
>> > > 2. Is the syntax correct, including quotes?
>> >
>> > Yes.
>> >
>> > > 3. The php.ini variable 'auto_prepend_file =' set to prepend.php3
>> > > causes the following error when accessing a page:
>> >
>> > Use a full pathname, as in 'auto_prepend_file =
>> > "/home/httpd/php/prepend.php3"'. So do I.
>> >
>> > Kristian
>> >
>> > -
>> > PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
>> > To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
>> > the body, not the subject, of your message.
>-
>PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
>To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
>the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Teodor Cimpoesu: "Re: [PHPLIB] trouble upgrading"
- Previous message: Jay Pfaffman: "[PHPLIB] trouble upgrading"
- In reply to: Jack Lauman: "Re: [PHPLIB] index.php3 test page error..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

