Hi.
I have filenames that are similar and I'd like to include them all in on php file like so:
<?php include('meta/index_html2body.php'); ?>
<?php include('content/_index.php'); ?>
This does not work:
<?php $file = 'index'; ?>
<?php include('meta/"$file"_html2body.php'); ?>
<?php include('content/_"$file".php'); ?>
Any pointers? I've look at the concatenation docs, I don't think that's needed here though?
Thanks!
-jouell
I have filenames that are similar and I'd like to include them all in on php file like so:
<?php include('meta/index_html2body.php'); ?>
<?php include('content/_index.php'); ?>
This does not work:
<?php $file = 'index'; ?>
<?php include('meta/"$file"_html2body.php'); ?>
<?php include('content/_"$file".php'); ?>
Any pointers? I've look at the concatenation docs, I don't think that's needed here though?
Thanks!
-jouell