php.ini files not installing all key/value pairs - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bilby001
Posts: 8
Joined: Mon Apr 11, 2011 12:12 am

php.ini files not installing all key/value pairs

I have a number of ini files which I am importing as key/value ini files and setting the values with AI properties. With php.ini, I'm finding that I can set the key/values to properties in AI which works, but a lot of the key/values are missing from the resultant file after installation. The problems are with the key/value pairs which are not set via properties, ie. hard coded (extensions especially). What would I be doing wrong here, or is this a problem with php.ini in particular?

Also, after importing, I'm stripping out the original content of some ini files in the original folder and having an empty file so that ini entries are not repeating with original content, which seems to happen to some of them. The entries then end up all over the shop, mixed up but still under their section headers. Is there some way to structure these so they are in the original order? Would I need to start from scratch and create an ini file without an original file?

Thanks
Russell
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: php.ini files not installing all key/value pairs

Hi Russell,

Can you please send us the .AIP (project), .INI file with any other dependencies to support at advancedinstaller dot com so we can reproduce the issue and investigate?

It would also help if you would describe anything else relevant so we can get the same behavior on our test machines.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bilby001
Posts: 8
Joined: Mon Apr 11, 2011 12:12 am

Re: php.ini files not installing all key/value pairs

Mihai, I've just emailed the aip file and data structure I'm having trouble with. Most of the "extensions = " key/value pairs don't appear, only one of them is written to the resultant ini file. I have no troubles with other ini files I'm formatting.

Thanks
Russell
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: php.ini files not installing all key/value pairs

Hi Russell,

This is the default behavior of an .INI file in Windows. For more information, please see the "Duplicate names" feature of an .INI from this article. Please also note that "php.ini" is not a Windows standard .INI file.

A solution would be to import "php.ini" as a regular file and use our new Text File Update feature to make the changes. For more information please follow this article.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bilby001
Posts: 8
Joined: Mon Apr 11, 2011 12:12 am

Re: php.ini files not installing all key/value pairs

Mihai, that does the job perfectly. Thank you very much for your prompt response.

Cheers
Russell
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: php.ini files not installing all key/value pairs

You are welcome Russell, glad to assist.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”