呵呵,楼主牛,自己写php的扩展。

解决方案 »

  1.   

    楼上朋友的见笑了,只是为了实现特殊的功能,才需要这样做,但是不知道是否可行?不知道这位朋友 zeroleonhart(Strong Point:Algorithm) 说的是什么意思?能说具体点吗?
      

  2.   

    dl
    (PHP 3, PHP 4 , PHP 5)dl -- Loads a PHP extension at runtime
    Description
    int dl ( string library)
    Loads the PHP extension given by the parameter library. The library parameter is only the filename of the extension to load which also depends on your platform. For example, the sockets extension (if compiled as a shared module, not the default!) would be called sockets.so on Unix platforms whereas it is called php_sockets.dll on the Windows platform. 如果成功则返回 TRUE,失败则返回 FALSE。 If the functionality of loading modules is not available (see Note) or has been disabled (either by turning it off enable_dl or by enabling 安全模式 in php.ini) an E_ERROR is emitted and execution is stopped. If dl() fails because the specified library couldn't be loaded, in addition to FALSE an E_WARNING message is emitted. Use extension_loaded() to test whether a given extension is already available or not. This works on both built-in extensions and dynamically loaded ones (either through php.ini or dl()). The dl() function is dperecated as of PHP 5. Use Extension Loading Directives method instead. 这是我从手册上抄来的,还有例子你自己查手册吧
      

  3.   

    找到一个详细的资料,有兴趣的朋友,都看看吧。
    用c写php扩展
    http://bbs.7880.com/read-htm-tid-9621-fpage-1-toread--page-1.html