ShoeLace1291 Posted April 23, 2007 Share Posted April 23, 2007 How would I use a string in a file path? I want to use a string in an include but it doesn't work when I do this: $usertemplate = "default"; include('templates/$usertemplate/index_body.tpl'); Quote Link to comment Share on other sites More sharing options...
trq Posted April 23, 2007 Share Posted April 23, 2007 include("templates/$usertemplate/index_body.tpl"); Note the double quotes. 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.