Re: include file
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 29 Nov 2008 21:34:46 -0500
student4lifer@xxxxxxxxx wrote:
Hello,
I have a.php that includes functions.php and b.php that also uses
some function in functions.php as follows.
<? php
include("functions.php");
include ("b.php");
?>
For some reason, I got error message "somefunction() not found"
originated from b.php when I ran a.php. When I tried to ALSO include
functions.php in b.php, I got error message
Fatal error: Cannot redeclare somefunction() (previously declared in
functions.php. What am I missing? Thanks.
Nothing - it should work. Ensure your spelling is correct, and that you are including the files you think you are.
If that doesn't work, you'll need to post some code so e can see what you're doing.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- include file
- From: student4lifer
- include file
- Prev by Date: include file
- Next by Date: Re: header()
- Previous by thread: include file
- Next by thread: Re: include file
- Index(es):
Relevant Pages
|