ztealmax Posted December 17, 2006 Share Posted December 17, 2006 Hi its me bugging you all again ;)im trying to do a simple language file this is a test language file i have:[b]language.php[/b][code]<?phpdefine("test", "testing"); ?>[/code]in my index i put something like this iguess:[b]index.php[/b] (not complete index just an example)[code]<?PHP require_once("language.php");?>echo ".test."[/code]is this correct, or is there some other way to do this?//ThanksMartin*the best way to learn is to ask ;) * Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted December 17, 2006 Share Posted December 17, 2006 No it is not correct, since the echo statement is outside of PHP. I believe you want to do something like:[code]<?phprequire_once('language.php');echo test;?>[/code]Ken Quote Link to comment Share on other sites More sharing options...
ztealmax Posted December 17, 2006 Author Share Posted December 17, 2006 [quote author=kenrbnsn link=topic=118985.msg486694#msg486694 date=1166370838]No it is not correct, since the echo statement is outside of PHP. I believe you want to do something like:[code]<?phprequire_once('language.php');echo test;?>[/code]Ken[/quote]Thanx :DIll try it right away /Martin*** worked thanx [b]Ken[/b] *** Quote Link to comment Share on other sites More sharing options...
ztealmax Posted December 17, 2006 Author Share Posted December 17, 2006 All working as expected, gonna run some more test to be sure! Quote Link to comment Share on other sites More sharing options...
ztealmax Posted December 17, 2006 Author Share Posted December 17, 2006 Yepp works great! ;) 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.