run php scripts from the commandline?
| From: | Mathias K�rber | Date: | Fri, 17 Nov 2000 01:57:25 +0000 |
| Subject: | run php scripts from the commandline? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25839@lists.php.net to get a copy of this message | ||
Hi all,
I want to pre-generate a number of files (which don't change,
so there is no need to have them auto-generated). However,
for generation I need to use some of the PHP functions defined
ifoe by the online pages.
Is it possible to use PHP (called from the commandline) to
generate these files, requiring the necessary library files?
Another option would be to use perl's Text::Template, which
allows inlining perl-code similar to PHP for webpages, but
why duplicate all the code in perl when the PHP versions are
already existent?
thanks in advance
Mathias