把过程说的具体些!phpinfo函数通过了吗?

解决方案 »

  1.   

    原来系统已经配置好apache2.4.2+PHP Version 4.2.3了  并且运行php做的论坛和邮件系统完全正常,现在我安装新的用php做的系统 一个论坛和phpMyAdmin都不成功,根据文档配置好config之后运行任何.php的文件都是空白页面!!运行phpinfo显示一切正常
      

  2.   

    配置好config之后运行任何.php的文件都是空白页面!!运行phpinfo显示一切正常这话前后矛盾吧,phpinfo不也是php文件。你的问题到底是怎么了最好说清楚点,这样容易发现问题。甚至于,你在仔细描述你的情况的时候你自己就发现了问题所在
      

  3.   

    如果phpinfo正常的话,那肯定是你的配置文件有问题或者是你的程序有问题了。看看程序的说明。仔细检查一下估计差不多。
      

  4.   

    1、你在那个新装的PHP系统的第一行加一个输出,如果没有问题,就不是配置的原因!
    2、phpmyadmin的配置有问题!IP是自己地址的吗?
      

  5.   

    我运行系统内的.php文件结果都是空白页   我自己写一个phpinfo 或 echo语句放到它的目录底下能正确显示
     to:blessbird(小狼)  证明不是配置的问题,ip地址是自己的
      

  6.   

    查看PHP.INI是否配置正确
    找到下与下面相关的行,并修改之:
    short_open_tag = On
    error_reporting  =2047 //显示全部错误信息,可知道错在那里
    register_globals = On
      

  7.   

    phpinfo 和 echo 都能正常显示!这就没问题了呀!phpmyadmin 显示为空,换一个试试,如果不行,建议重装!
      

  8.   

    to evfa:照这做了还是不行[PHP]engine = On
    short_open_tag = On
    asp_tags = Off
    precision    =  12
    y2k_compliance = Off
    output_buffering = Off
    output_handler =
    unserialize_callback_func=
    zlib.output_compression = Off
    implicit_flush = Off
    allow_call_time_pass_reference = On
    safe_mode = Off
    safe_mode_gid = Off
    safe_mode_include_dir =
    safe_mode_exec_dir =
    safe_mode_allowed_env_vars = PHP_
    safe_mode_protected_env_vars = LD_LIBRARY_PATH
    disable_functions =
    highlight.string  = #CC0000
    highlight.comment = #FF9900
    highlight.keyword = #006600
    highlight.bg      = #FFFFFF
    highlight.default = #0000CC
    highlight.html    = #000000
    expose_php = On
    max_execution_time = 30     ; Maximum execution time of each script, in seconds
    memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
    error_reporting  =  E_ALL & ~E_NOTICE
    display_errors = On
    display_startup_errors = Off
    log_errors = Off
    track_errors = Off
    variables_order = "EGPCS"
    register_globals = Off
    register_argc_argv = On
    post_max_size = 8M
    gpc_order = "GPC"
    magic_quotes_gpc = On
    magic_quotes_runtime = Off    
    magic_quotes_sybase = Off
    auto_prepend_file =
    auto_append_file =
    default_mimetype = "text/html"
    doc_root =user_dir =
    extension_dir = ./enable_dl = Onfile_uploads = On
    upload_max_filesize = 2Mallow_url_fopen = On
    define_syslog_variables  = Off[mail function]
    SMTP = localhostsendmail_from = [email protected][Java][SQL]
    sql.safe_mode = Off[ODBC]
    odbc.allow_persistent = On; Check that a connection is still valid before reuse.
    odbc.check_persistent = On; Maximum number of persistent links.  -1 means no limit.
    odbc.max_persistent = -1; Maximum number of links (persistent + non-persistent).  -1 means no limit.
    odbc.max_links = -1  ; Handling of LONG fields.  Returns number of bytes to variables.  0 means
    ; passthru.
    odbc.defaultlrl = 4096  ; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
    ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
    ; of uodbc.defaultlrl and uodbc.defaultbinmode
    odbc.defaultbinmode = 1  [MySQL]
    ; Allow or prevent persistent links.
    mysql.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    mysql.max_persistent = -1; Maximum number of links (persistent + non-persistent).  -1 means no limit.
    mysql.max_links = -1; Default port number for mysql_connect().  If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
    ; at MYSQL_PORT.
    mysql.default_port =; Default socket name for local MySQL connects.  If empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket =; Default host for mysql_connect() (doesn't apply in safe mode).
    mysql.default_host =; Default user for mysql_connect() (doesn't apply in safe mode).
    mysql.default_user =
    mysql.default_password =[mSQL]
    ; Allow or prevent persistent links.
    msql.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    msql.max_persistent = -1; Maximum number of links (persistent+non persistent).  -1 means no limit.
    msql.max_links = -1[PostgresSQL]
    ; Allow or prevent persistent links.
    pgsql.allow_persistent = On; Detect broken persistent links always with pg_pconnect(). Need a little overhead.
    pgsql.auto_reset_persistent = Off ; Maximum number of persistent links.  -1 means no limit.
    pgsql.max_persistent = -1; Maximum number of links (persistent+non persistent).  -1 means no limit.
    pgsql.max_links = -1[Sybase]
    ; Allow or prevent persistent links.
    sybase.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    sybase.max_persistent = -1; Maximum number of links (persistent + non-persistent).  -1 means no limit.
    sybase.max_links = -1;sybase.interface_file = "/usr/sybase/interfaces"; Minimum error severity to display.
    sybase.min_error_severity = 10; Minimum message severity to display.
    sybase.min_message_severity = 10; Compatability mode with old versions of PHP 3.0.
    ; If on, this will cause PHP to automatically assign types to results according
    ; to their Sybase type, instead of treating them all as strings.  This
    ; compatability mode will probably not stay around forever, so try applying
    ; whatever necessary changes to your code, and turn it off.
    sybase.compatability_mode = Off[Sybase-CT]
    ; Allow or prevent persistent links.
    sybct.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    sybct.max_persistent = -1; Maximum number of links (persistent + non-persistent).  -1 means no limit.
    sybct.max_links = -1; Minimum server message severity to display.
    sybct.min_server_severity = 10; Minimum client message severity to display.
    sybct.min_client_severity = 10[bcmath]
    ; Number of decimal digits for all bcmath functions.
    bcmath.scale = 0
      

  9.   

    [browscap]
    ;browscap = extra/browscap.ini[Informix]
    ; Default host for ifx_connect() (doesn't apply in safe mode).
    ifx.default_host =; Default user for ifx_connect() (doesn't apply in safe mode).
    ifx.default_user =; Default password for ifx_connect() (doesn't apply in safe mode).
    ifx.default_password =; Allow or prevent persistent links.
    ifx.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    ifx.max_persistent = -1; Maximum number of links (persistent + non-persistent).  -1 means no limit.
    ifx.max_links = -1; If on, select statements return the contents of a text blob instead of its id.
    ifx.textasvarchar = 0; If on, select statements return the contents of a byte blob instead of its id.
    ifx.byteasvarchar = 0; Trailing blanks are stripped from fixed-length char columns.  May help the
    ; life of Informix SE users.
    ifx.charasvarchar = 0; If on, the contents of text and byte blobs are dumped to a file instead of
    ; keeping them in memory.
    ifx.blobinfile = 0; NULL's are returned as empty strings, unless this is set to 1.  In that case,
    ; NULL's are returned as string 'NULL'.
    ifx.nullformat = 0[Session]
    ; Handler used to store/retrieve data.
    session.save_handler = files; Argument passed to save_handler.  In the case of files, this is the path
    ; where data files are stored. Note: Windows users have to change this 
    ; variable in order to use PHP's session functions.
    session.save_path = /tmp; Whether to use cookies.
    session.use_cookies = 1
    ; Name of the session (used as cookie name).
    session.name = PHPSESSID; Initialize session on request startup.
    session.auto_start = 0; Lifetime in seconds of cookie or, if 0, until browser is restarted.
    session.cookie_lifetime = 0; The path for which the cookie is valid.
    session.cookie_path = /; The domain for which the cookie is valid.
    session.cookie_domain =; Handler used to serialize data.  php is the standard serializer of PHP.
    session.serialize_handler = php; Percentual probability that the 'garbage collection' process is started
    ; on every session initialization.
    session.gc_probability = 1; After this number of seconds, stored data will be seen as 'garbage' and
    ; cleaned up by the garbage collection process.
    session.gc_maxlifetime = 1440; Check HTTP Referer to invalidate externally stored URLs containing ids.
    ; HTTP_REFERER has to contain this substring for the session to be
    ; considered as valid.
    session.referer_check =; How many bytes to read from the file.
    session.entropy_length = 0; Specified here to create the session id.
    session.entropy_file =;session.entropy_length = 16;session.entropy_file = /dev/urandom; Set to {nocache,private,public} to determine HTTP caching aspects.
    session.cache_limiter = nocache; Document expires after n minutes.
    session.cache_expire = 180; trans sid support is disabled by default.
    ; Use of trans sid may risk your users security. 
    ; Use this option with caution.
    ; - User may send URL contains active session ID
    ;   to other person via. email/irc/etc.
    ; - URL that contains active session ID may be stored
    ;   in publically accessible computer.
    ; - User may access your site with the same session ID
    ;   always using URL stored in browser's history or books.
    session.use_trans_sid = 0url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"[MSSQL]
    ; Allow or prevent persistent links.
    mssql.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    mssql.max_persistent = -1; Maximum number of links (persistent+non persistent).  -1 means no limit.
    mssql.max_links = -1; Minimum error severity to display.
    mssql.min_error_severity = 10; Minimum message severity to display.
    mssql.min_message_severity = 10; Compatability mode with old versions of PHP 3.0.
    mssql.compatability_mode = Off; Valid range 0 - 2147483647.  Default = 4096.
    ;mssql.textlimit = 4096; Valid range 0 - 2147483647.  Default = 4096.
    ;mssql.textsize = 4096; Limits the number of records in each batch.  0 = all records in one batch.
    ;mssql.batchsize = 0[Assertion]
    ; Assert(expr); active by default.
    ;assert.active = On; Issue a PHP warning for each failed assertion.
    ;assert.warning = On; Don't bail out by default.
    ;assert.bail = Off; User-function to be called if an assertion fails.
    ;assert.callback = 0; Eval the expression with current error_reporting().  Set to true if you want
    ; error_reporting(0) around the eval().
    ;assert.quiet_eval = 0[Ingres II]
    ; Allow or prevent persistent links.
    ingres.allow_persistent = On; Maximum number of persistent links.  -1 means no limit.
    ingres.max_persistent = -1; Maximum number of links, including persistents.  -1 means no limit.
    ingres.max_links = -1; Default database (format: [node_id::]dbname[/srv_class]).
    ingres.default_database =; Default user.
    ingres.default_user =; Default password.
    ingres.default_password =[Verisign Payflow Pro]
    ; Default Payflow Pro server.
    pfpro.defaulthost = "test-payflow.verisign.com"; Default port to connect to.
    pfpro.defaultport = 443; Default timeout in seconds.
    pfpro.defaulttimeout = 30
      

  10.   

    把register_globals改成on
    有可能是变量传递的问题。
      

  11.   

    改php.ini后,重启apache了吗?
    最好重起WINDOWS
      

  12.   

    其实很简单得,因为你没设置好,报错了,而空白页是因为你在PHP。INI里设置了不显示错误照着楼上得改一下,重启服务就行!