php 5 on iis having problems with configuring .ini file
Results 1 to 2 of 2

Thread: php 5 on iis having problems with configuring .ini file

  1. #1
    Junior Member
    Join Date
    Dec 2016
    Posts
    1

    php 5 on iis having problems with configuring .ini file

    Problem 1:
    No matter what I do or set the extension_dir = to, it still stays c:/php/ext/ in the phpinfo();

    Problem 2:
    If I uncomment any of the following lines in the .ini file
    ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    ; Development Value: E_ALL
    ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
    it doesnt load the API Extensions mysql,mysqli
    it will just show API Extensions.

    Also and now my code is giving me a a notice:
    PHP Notice: Undefined offset: 1 in C:\inetpub\wwwroot\xml2\search_results.php on line 111

  2. #2
    Member
    Join Date
    Apr 2016
    Posts
    98
    If I uncomment any of the following lines in the .ini file
    ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    ; Development Value: E_ALL
    ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
    it doesnt load the API Extensions mysql,mysqli
    it will just show API Extensions.
    Those three lines ARE comments, just showing what the suggested values are for those cases. The actual setting is the line -

    Code:
    error_reporting=E_ALL
    If there's a syntax error in the php.ini, which would be the case of un-commenting one of the comments, all the lines after the point of the error won't be processed.

    No matter what I do or set the extension_dir = to, it still stays c:/php/ext/ in the phpinfo();
    An syntax error in a value for a setting would cause the default setting to be used. What is the actual syntax for the line where you are using to try and set the extension_dir to a value? Also, the extension_dir setting is after the error_reporting setting, so any syntax error php.ini near the error_reporting setting would cause the extension_dir setting to not be processed.
    Programming should not be a painful activity. If you are experiencing pain while programming, you are probably doing something wrong.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •