当前位置: 代码迷 >> 综合 >> 用linux c写了一个php扩展,在php cgi 模式下可以运行,通过apache的页面不能调用扩展?
  详细解决方案

用linux c写了一个php扩展,在php cgi 模式下可以运行,通过apache的页面不能调用扩展?

热度:65   发布时间:2024-01-16 09:06:18.0

不同的运行环境 php命令行,phpcgi,同一个扩展得到不同的结果。

 

[root@ShuoBa hanhh]# /usr/local/webserver/php/bin/php hello.php

<pre>ihandy1
[root@ShuoBa hanhh]# /usr/local/webserver/php/bin/php-cgi hello.php
X-Powered-By: PHP/5.2.10
Content-type: text/html


<pre>ihandy1

  相关解决方案