I have very strange situation...
Platform: Win7, apache24, mysqld 5.6.x, php5.5.10
query1 = "SELECT abc FROM table1 WHERE id=123 " (result give me about 200 rows)
query2 = "SELECT abc FROM table2 WHERE id=555 " (result give me about 200 rows)
In short, PHP code looks like this:
step1. I'm using my own DB Wrapper and I make query1 to table1. In result I receive multiple rows from table1. I save it to php array using while loop.
step2. next I make curl requests to 3rd party API using foreach loop. Request are very simple and working fine at 150 other places in my script.
What is wrong?
Scripts are working fine.. but only one time after apache start/restart.
What going next?
When I try reload page for test it again - curl response is empty. http_code for curl request is 200, but request is empty.
After apache restart script working again - one time.
Without step1 curl working fine all time.
And one more... when I try query2 (similar to query1) but for different table (query2 to table2) script works fine everytime (after refreshing too).
What i tried:
- testing different headers in curl,
- curl options like curlopt_fresh_connect and all f... possible configurations.
- dumping printing all possible variables...
- googling, binging, yandexing....
- after step1 I tired connect to different websites than API, google, websites without ssl etc - result is the same. Crash after 1 run.
Browser cache is not a problem, API limits are fine.
I wasted for it 9 hours and I dont know what is wrong:) If you have any ideas - please share with me.