Re: Running snippets from within PHP
| From: | Richard Lynch | Date: | Thu, 02 Feb 2006 21:28:11 +0000 |
| Subject: | Re: Running snippets from within PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229769@lists.php.net to get a copy of this message | ||
On Tue, January 31, 2006 9:41 pm, Eli wrote:
> How can I run non-PHP code snippets from within PHP?
> For example: Is it possible to include a C++ code snippet within PHP
> and
> run it as it was a regular include?
> I know there's a solution using exec() and such, but I want to run the
> snippets like inline code.
I think I also saw something for an Inline Perl module somewhere
sometime.
Another potential option would be to compile your own PHP extension
(just like MySQL, GD, libpdf, etc) and link it in.
There are some good beginner examples at http://talks.php.net for
this.
--
Like Music?
http://l-i-e.com/artists.htm