I uhhh… kind of lost my php.ini file. Lol. Apparently this is used to fix several problems so I’m hoping that by actually having one I can fix some of the problems I’m having.
Could anyone please explain how to make or provide a sample code for a php.ini file and/or an explanation of what exactly a php.ini file does?
I’m relatively new to php so I’m not too sure what everything really does.
Basically I’m having a few problems at the moment. One error keeps coming up regarding a lack of memory (always using up all 32mb of memory though) when either trying to show a product or trying to check out.
A php.ini file changes the default (or server assigned) directives that are given to PHP, like the memory limit. To create one, just open up Notepad or something similar and save it as php.ini. Upload that to the folder where your website’s files are.
I don’t know what you had in your INI file, but I can give you what Magento sets up in the .htaccess file (if your host has PHP running as a CGI binary, you’ll use an INI file, if you host has PHP running as an Apache module you can flag PHP directives in your .htaccess file).