Good afternoon.
I have a site in php5.
All queries are performed using sqlsrv;
When I make a request, I get an error:
[Microsoft][SQL Server Native Client 11.0]Shared Memory Provider: Timeout error [258]
How to fix the error?
Try increasing the timeout value in your connection string in PHP.
See previous answer
You need to change some settings in php.ini: upload_max_filesize = 2M or whatever size you wantmax_execution_time = 60; also above if you shouldIf your PHP.ini depends on your environment
You need to change some settings in php.ini: upload_max_filesize = 2M or whatever size you want
max_execution_time = 60; also above if you should
If your PHP.ini depends on your environment
Setting max_execution_time to 0 (without restrictions) alone did not do this for me.
max_execution_time
0
However, the default memory limit has increased from 128MB to 2GB :
128MB
2GB
max_execution_time = 0 memory_limit = 2048M
PHP 5.3.19 to Sql Server 2008 all requests, including "select getdate ()", Changing the two parameters max_execution_time to 0 and memory_limit = 1024M did this for me.