i need some help with php. i want to include a file and have that file based on some variable, like the following.
if i have
$id = 'my-test';
i want to include the following
include = 'http://www.mysite.com/~test1/my-test.inc';
how do i do this? is there some string append function in php i can use? because the include line is already in the php quotes i couldn't just put <?php echo $id ?> where i wanted it.
anyone have any ideas, thanks in advance.
if i have
$id = 'my-test';
i want to include the following
include = 'http://www.mysite.com/~test1/my-test.inc';
how do i do this? is there some string append function in php i can use? because the include line is already in the php quotes i couldn't just put <?php echo $id ?> where i wanted it.
anyone have any ideas, thanks in advance.
