darksniperx Posted November 13, 2007 Share Posted November 13, 2007 I have feed.php, the include works , without problems <?php function showFeed() { $language = 'en'; include_once getcwd() .'/lang/Feed_' .$language. '.php'; I have feed_js_script.php, that contains js script that is being echoed into feed.php, since the script changes the names of few tags, I need it to have multilanguage support too. <?php function showFeedJS() { include_once 'forms.php'; $language = 'en'; include_once getcwd() .'/lang/Feed_'.$language.'.php'; as soon as i include language file into feed_js_script.php , then php ignores the include that I did for feed.php Quote Link to comment https://forums.phpfreaks.com/topic/77209-wont-allow-me-to-use-include-again/ Share on other sites More sharing options...
revraz Posted November 13, 2007 Share Posted November 13, 2007 Well you are using include_once right? Quote Link to comment https://forums.phpfreaks.com/topic/77209-wont-allow-me-to-use-include-again/#findComment-390903 Share on other sites More sharing options...
darksniperx Posted November 14, 2007 Author Share Posted November 14, 2007 when I used "include" before it gave me a problem, so I started to use include_once Quote Link to comment https://forums.phpfreaks.com/topic/77209-wont-allow-me-to-use-include-again/#findComment-391539 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.