I have a php file which include() 's a file with variables, and a file with
functions.
so:
<? include("../data/common.inc") ?>
<? include("../data/functions.inc") ?>
if in the php file i then call a function from the functions file, the
function doesn't see what values the variables in common.inc are, although
the php file does see the variable values.
Is there a way of getting round this or is something just going really
wrong?
Thanks.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003
functions.
so:
<? include("../data/common.inc") ?>
<? include("../data/functions.inc") ?>
if in the php file i then call a function from the functions file, the
function doesn't see what values the variables in common.inc are, although
the php file does see the variable values.
Is there a way of getting round this or is something just going really
wrong?
Thanks.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003
Comment