[nycphp-talk] php include file question
dsexton at ubspw.com
Mon Mar 31 14:33:06 EST 2003
> "nor does the included file need to have <?php ?> in them."
They are required if you plan on parsing PHP code in the included file. The
Zend engine switches out of PHP mode whenever include is called and it will
not parse by default. It then returns to PHP mode when it reachs EOF.
From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com]
Sent: Monday, March 31, 2003 2:18 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] php include file question
On Mon, Mar 31, 2003 at 12:52:58PM -0500, Deidra McIntyre wrote:
> <? include("copyright.html"); ?>
<?php include('./copyright.html'); ?>
What's your OS and web server? I found that under PHP 4.3.*, Apache,
NetBSD (and perhaps other combinations) there was a recent change in
behavior where the directories above the included files need to be world
readable and executable (meaning "chmod 705").
What error messages are you getting? You do have error messages turned
on, right? This kind of stuff comes in handy, helping you figure it out
for yourself, and if you cant, helps us help you.
The suggestions that you need to edit your include path statement in the
php.ini file are likely incorrect, since "." is in the default include
path value already.
Similarly, the file extension doesn't matter, nor does the included file
need to have <?php ?> in them.
PHP classes that make web design easier
SqlSolution.info | LayoutSolution.info | FormSolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
--- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk