[nycphp-talk] php include file question
jhise at nextsource.com
Mon Mar 31 14:39:58 EST 2003
Well...Deidra said "parsed" so my brain read it as PHP parsed...not HTML...
so, assuming that the included file is not yielding any output...
...I have no idea :)
From: Sexton, David [mailto:dsexton at ubspw.com]
Sent: Monday, March 31, 2003 2:33 PM
To: NYPHP Talk
Subject: RE: [nycphp-talk] php include file question
> "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/ ---
****CONFIDENTIALITY NOTICE**** The Information in this email and any
attachments are confidential and intended to be reviewed by only the
individual or organization named above. If you have received this email in
error, please immediately notify the sender by return email and delete this
email from your system. Thank You.
More information about the talk