Creating an HTML file by combining multiple PHP files via the command line?
Posted
by
FishOrDie
on Stack Overflow
See other posts from Stack Overflow
or by FishOrDie
Published on 2011-02-16T23:16:30Z
Indexed on
2011/02/16
23:25 UTC
Read the original article
Hit count: 226
php
|command-line
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?
© Stack Overflow or respective owner