PHP Warning: Module already loaded in Unknown on line 0

I think you have loaded Xdebug probably twice in php.ini. check the php.ini, that not have set xdebug.so for the values extension= and zend_extension=. Check also /etc/php5/apache2 and /etc/php5/cli/. You should not load in each php.ini in these directories the extension xdebug.so. Only one file, php.ini should load it. Note: Inside the path is the … Read more

How to locate the php.ini file (xampp)

For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder). Under Linux, most distributions put lampp under /opt/lampp, so the file can be found under /opt/lampp/etc/php.ini. It can be edited using a normal Text-Editor. Clarification: Xampp (X (for “some OS”), Apache, MySQL, Perl, PHP) Lampp (Linux, Apache, … Read more

Do standard windows .ini files allow comments?

Windows INI API support for: Line comments: yes, using semi-colon ; Trailing comments: No The authoritative source is the Windows API function that reads values out of INI files GetPrivateProfileString Retrieves a string from the specified section in an initialization file. The reason “full line comments” work is because the requested value does not exist. … Read more

Python: How would you save a simple settings/config file?

Configuration files in python There are several ways to do this depending on the file format required. ConfigParser [.ini format] I would use the standard configparser approach unless there were compelling reasons to use a different format. Write a file like so: # python 2.x # from ConfigParser import SafeConfigParser # config = SafeConfigParser() # … Read more

How to read and write INI file with Python3?

This can be something to start with: import configparser config = configparser.ConfigParser() config.read(‘FILE.INI’) print(config[‘DEFAULT’][‘path’]) # -> “/path/name/” config[‘DEFAULT’][‘path’] = ‘/var/shared/’ # update config[‘DEFAULT’][‘default_message’] = ‘Hey! help me!!’ # create with open(‘FILE.INI’, ‘w’) as configfile: # save config.write(configfile) You can find more at the official configparser documentation.

Reading/writing an INI file

Preface Firstly, read this MSDN blog post on the limitations of INI files. If it suits your needs, read on. This is a concise implementation I wrote, utilising the original Windows P/Invoke, so it is supported by all versions of Windows with .NET installed, (i.e. Windows 98 – Windows 11). I hereby release it into … Read more