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'); Link to comment https://forums.phpfreaks.com/topic/48210-strings-in-file-path/ 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. Link to comment https://forums.phpfreaks.com/topic/48210-strings-in-file-path/#findComment-235682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.