If you have a website that uses IIS and there is a technical problem when you want to connect php to the sql server, then you need a sqlserver driver on the php version currently used.
Microsoft itself has provided several sqlserver drivers that have been collected into one. Then you can directly download here
You just have to adjust which version of php you use with your website needs. Then make sure your php module driver can be loaded all.