English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I was wondering if you can change an .inc file into a .php file so css properties can be added to the page it's attached to?

2006-08-30 10:25:17 · 5 answers · asked by J23 3 in Computers & Internet Internet

5 answers

yes you can - it is even recommended to use .php extension for includes: if the .inc is called on its own the file content will be visible - which won't be the case if it has a php extension.

re the css you could even have the stylsheet as a php file so you can use $vars to give them commoly used values (colors for example)

2006-08-30 10:33:52 · answer #1 · answered by le_gber 3 · 0 0

Depends on how you write the app, but generally you would place the statement in question in the config.inc.php file, this is by default the common config file.

2006-08-30 17:31:19 · answer #2 · answered by Anonymous · 0 0

or you can~
Make a php and use :

require_once('*filename*.inc');
ORR
include('*filename*.inc');

2006-08-30 17:27:45 · answer #3 · answered by some2else1 2 · 0 0

yes, just include it inline

e.g. include ("yourfile.php")

2006-08-30 17:30:53 · answer #4 · answered by dapixelator 6 · 0 0

include('file.inc');

2006-08-30 17:32:05 · answer #5 · answered by strong_and_cool 2 · 0 0

fedest.com, questions and answers