# dynamic shared object (dso) support # # to be able to use the functionality of a module which was built as a dso you # have to place corresponding `loadmodule' lines at this location so the # directives contained in it are actually available _before_ they are used. # statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # example: # loadmodule foo_module modules/mod_foo.so
<?php $browser = getenv("http_user_agent"); ?> <p>you are using the <?php echo($browser);?> web browser.</p> <?php $title = "browser details"; ?> <title><?php echo $title; ?></title>
把它保存为 browser.phps,并另存为 browser.php 。在测试了这两个例子后,你会发现结果是不同的。browser.php将显示你的浏览器版本,如: you are using the mozilla/4.0 (compatible; msie 6.0; windows 98) web browser. 而 browser.phps 则显示了你的源代码。