PDA

View Full Version : ForceType application/x-httpd-php


AbstractHipHop
07-24-2004, 09:25 AM
currently my site URLs are in this format
http://www.hhdb.com/lyrics.php/244

i want to get rid of the .php in my filenames

so i added this in an .htaccess file

ForceType application/x-httpd-php

with that the page calls from this URL format
http://www.hhdb.com/lyrics/244

everything works fine except
each page calls a header from a text file
that file contains some php coding and selects data from my database
the same calls that work in the main body of the page
will not work if you put them in the header files

my header files are in this format

include("http://www.hhdb.com/head.txt");

any clue how i can include header files and have it execute the php calls?

this will help me soo much
thanx

AbstractHipHop
07-24-2004, 10:34 PM
fixed it
changed this
include("http://www.hhdb.com/head.txt");

to this
include("head.txt");