PHP oop in C
| From: | matt dot wong at tumbleweed dot com | Date: | Mon, 29 Jan 2001 18:25:22 +0000 |
| Subject: | PHP oop in C | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37121@lists.php.net to get a copy of this message | ||
Hello,
Does anyone know how to take a PHP class and move it directly into PHP's C code, OR (even better) to move it into C code that compiles in a separate binary object (e.g. myobj.o), and is then linked to the php executable (or httpd executable)?
For example, how can I move this code into C?
<?
class myObject {
function myObject {
$this->data = "hello!";
}
function hello () {
echo $this->data;
}
}
?>
Thanks!
-Matt