Config.inc doesn't work..
Moderator: General Moderators
-
seeker2921
- Forum Contributor
- Posts: 120
- Joined: Sat Mar 22, 2003 7:10 pm
- Location: Wiesbaden Germany
- Contact:
Config.inc doesn't work..
Okay so in all of my php pages I have this line:
include('/home/stephen/public_html/site/includes/config.inc');
It has defines, var's, strings, ect.. in it and each page needs something form this file.. But it isn't in cluded I get no error messegaes about the config file itself just the errors about the missing info contained in the config file.. Yet when I chnage the extention to .php and inculde it as a php file it works.. Why can't I call the file config.inc?
include('/home/stephen/public_html/site/includes/config.inc');
It has defines, var's, strings, ect.. in it and each page needs something form this file.. But it isn't in cluded I get no error messegaes about the config file itself just the errors about the missing info contained in the config file.. Yet when I chnage the extention to .php and inculde it as a php file it works.. Why can't I call the file config.inc?
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
-
seeker2921
- Forum Contributor
- Posts: 120
- Joined: Sat Mar 22, 2003 7:10 pm
- Location: Wiesbaden Germany
- Contact:
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
-
seeker2921
- Forum Contributor
- Posts: 120
- Joined: Sat Mar 22, 2003 7:10 pm
- Location: Wiesbaden Germany
- Contact:
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
Does apache make php parse .inc files?
But in all honesty its just a file extension whats wrong with just .php, or as pozor said just call it file.inc.php.
Just make sure php parses it, or somebody can just view it and see all the lovely info about your sql connection details or whatever else you have in the file.
But in all honesty its just a file extension whats wrong with just .php, or as pozor said just call it file.inc.php.
Just make sure php parses it, or somebody can just view it and see all the lovely info about your sql connection details or whatever else you have in the file.
-
seeker2921
- Forum Contributor
- Posts: 120
- Joined: Sat Mar 22, 2003 7:10 pm
- Location: Wiesbaden Germany
- Contact:
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
-
seeker2921
- Forum Contributor
- Posts: 120
- Joined: Sat Mar 22, 2003 7:10 pm
- Location: Wiesbaden Germany
- Contact: