Creating an HTML file by combining multiple PHP files via the command line?
- by FishOrDie
Is it possible to combine multiple PHP files via the command line and create an HTML file?
For example, this will save the rendered version of a single PHP file as HTML:
php /path/to/my/file/filename.php > /path/to/my/file/test.html
I need it to combine multiple files, but I can't seem to get it it to work. Ideally, it would be something like this:
php /path/to/my/file/filename.php + /path/to/my/file/filename2.php + /path/to/my/file/filename3.php > /path/to/my/file/test.html
Is this possible? If so, how?