xeronix Posted August 17, 2010 Share Posted August 17, 2010 Hello All! Well, I'll get down to the base of my question. Right now, I'm designing a website to use a languages file and a config file. I'm approaching it in the following method, which is the languages file has <?PHP define("APPLICATIONTOP","Website Name"); define("ETC","Whatever the content is"); ?> and am trying to echo it. My method of inclusion is requiring the file in the top of my document, like <?PHP include('ex.'); ?> and I'm trying to simply echo it. However, it doesn't work. My echo method is <?PHP echo APPLICATIONTOP ?> which would be between my <title></title> tags for the HTML. Any ideas as to why it's not working? Thanks! Quote Link to comment Share on other sites More sharing options...
trq Posted August 17, 2010 Share Posted August 17, 2010 The ex. file needs a php file extension to be parsed as php. Quote Link to comment Share on other sites More sharing options...
xeronix Posted August 30, 2010 Author Share Posted August 30, 2010 Ahhh that helped me so much. I've also figured out how to keep the file as PHP without having to change it's extension, and that is to disable Apache's PHP module in the server. Though, it's probably easier to just mount an invisible staticserve server and pull the file directly from there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.