Welcome Guest, Not a member yet? Register   Sign In
PHP in INC files
#1

[eluser]Dirigible[/eluser]
Hi all,
EDITED.

Here's my problem. I'm including an inc file <?include("css/headerlinks.inc"), in which there are links /about/whatwedo. However, the baseurl does not get pre-pended here, as I cannot use php in the inc file. Therefore, I am getting directed to the wrong place:

localhost/controller/view instead of localhost/app/controller/view.

What's the workaround for this? Simply renaming the inc file to php?

Thanks
Michael
#2

[eluser]danmontgomery[/eluser]
Yes... Or configure your webserver to interpret .inc files as PHP.




Theme © iAndrew 2016 - Forum software by © MyBB