I have one server that is acting up whenever I try to enable APC. PHP
scripts execute normally as long as there are no calls to include(),
include_once(), require(), or require_once().
Any file (no matter the size) that can be included while APC is disabled
will cause the script to silently fail a
If the includes are within the website, using
$_SERVER[DOCUMENT_ROOT]/pathtofile/file is a good way to go.
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 29, 2003 2:10 PM
To: 'Greg Macek'; [EMAIL PROTECTED]
Subject: RE: [PHP] require/incl
any folder.
- Original Message -
From: "Greg Macek" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 3:37 PM
Subject: Re: [PHP] require/include from a different directory
> It seems I have found my problem. It has to do wit
> > try using an absolute path.
>
> I've considered that route, but an issue I have with that is I do most
> of my development work on a machine that a different directory
structure
> than the production server (currently a Cobalt RaQ4), so the paths are
> different. Accommodating both would be a
n Sat, 2003-03-29 at 14:47, Jason Paschal wrote:
> try using an absolute path.
>
>
>
>
>
>
> >From: Greg Macek <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] require/include from a different directory
> >Date: 29 Mar 2003 14:19:4
It seems I have found my problem. It has to do with the files I'm trying
to include. They also include other files and the directories it's
trying to include files from aren't working. I've found a workaround for
my situation for the time being. It's not pretty, but functional.
On Sat, 2003-03-29
Hi,
I'm having a problem hopefully can be easily answered. I'm trying to
organize parts of my site into different directories so that they're all
not in the "main" folder so to speak; basically breaking out by what
part of the application it is. I also have an "include" folder for all
my main func
http://www.php.net/manual/en/function.require.php
require() pulls in the target file when the source file is
parsed/compiled, include() pulls in the target file when the source file
is executed. So an include() nested in an if statement will only be
included if the if statement evaluates to tr
Coverting from perl ...
What's the differencw between require and include? Where, when, why?
John?
Email post & reply always appreciated
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To c
9 matches
Mail list logo