April 2026
Intermediate
1009 pages
34h 15m
English
Depending on whether you have set CodeGen_PECL or ext_skel.php, there are now two test options.
The extension was created directly (php_Book.so or php_Book.dll), so it is time to make this public in php.ini as well:
extension=book
A call to phpinfo() now displays information about the class (see Figure 39.8).
Figure 39.8 Our Extension in the Output of "phpinfo()"
Of course, you want to test the extension now. As you have already included the class in php.ini, you can call the new write() function directly:
<?php echo write("PHP 8.3"); ?>
Listing 39.2 Book Writing Made Easy ("book.php")
Figure 39.9 shows the ...
Read now
Unlock full access