Jump to content

Strange entry shown using phpinfo()


Recommended Posts

I have php 4.4.3 runing on WinXP Pro SP2 under IIS 5.1 as an ISAPI installation. When I run phpinfo() in a test web page, I get the standard page generated that shows what parts of php are installed, etc. However, I noticed the strange entry for include_path that points to .;c:\php4\pear below. I have no c:\php4 directory, and never have. Neither have I attempted to install pear.

I exported a couple of sections from the phpinfo() web page so maybe someone can help me troubleshoot and fix this entry.

Directive Local Value Master Value
display_errors Off Off
display_startup_errors Off Off
doc_root c:\inetpub\wwwroot c:\inetpub\wwwroot
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log syslog syslog
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir c:\php\extensions c:\php\extensions
file_uploads On On
gpc_order GPC GPC
[color=red]include_path .;c:\php4\pear .;c:\php4\pear[/color]

In checking the php.ini file, the lines for include_path (both the Unix and the Windows versions) are commented out and not set. In neither of those examples did anything ever point to c:\php4\pear, either.

Thanks,

Steve
Link to comment
Share on other sites

This is normal. These are default values built into PHP itself if no value is set for include_path within the php.ini. I get the same result with PHP5 as an Apache Module. You can define a defualt include path by finding this within the php.ini:
[code]; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"[/code]
Now remove the semi-colon infront of include_path. Now change [b]c:\php\includes[/b] to the direcotry in which you want PHP to search in first when including/requireing files

More information can be found over at php.net on this setting
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.