bluejie wrote:well I've copied and pasted an ini file of xampp, but I can't remember which one. I also found an ini file on Xampp/php/php.ini
So I might have copied that to bin, but im not sure. Is there any way of getting a new ini file?
Well now we have found the problem and there is not much you can do if you lost the original php.ini file and still you have not told me the XAMPP version.
Best to uninstall XAMPP as per the xampp\readme_en.txt
file and download and do a fresh install - make sure that all XAMPP components are stopped and uninstall any running as a service before deleting the xampp folder or you will have more issues after your fresh install.Don't try and install again into the existing xampp folder, it has to be deleted when all components are stopped.
Please follow the installation instructions for your fresh install and backup or copy your own files from the htdocs folder so you can replace them when the install is finished.
The lesson here is don't do anything in XAMPP unless you understand fully the consequences and always make backup copies before deleting or changing any conf or ini file so if you get issues like this then you can easily revert.