Home>

Tell me how it will be easier to implement such a search:

There is a MYSQL database in it 10,000 entries in the form of a domain, you need to find domains by the IP address. Reformation of the database will not roll. Thought to choose all the domains, get drunk through GetHostByaddr () But does PHP burst from 10,000? Maybe there are examples of easier?

I have now just now the price is drunk and updated by 73,000 positions, and did not burst)). If you are afraid, then run and depart))) In general, it is possible to make a portion, 100 records at a time, for example. If you do not touch the database, then gethostByaddr get the host and the database search is a Milisekund case, another thing is that if there is a search for 10,000 domains, then with a large load, it would be more correct to make IP compliance in the database and time from time update.

aldem672021-05-30 04:43:22

That's the point in this, I thought about the portions. But maybe there is something else. I think I will try 100 entries if there are no other options. : ((((

wwwplaton2021-05-30 04:43:22

Try the Sphinx solution -it is very convenient to work

IOleg2021-05-30 04:43:22

@Ioleg Sphinx It is necessary to get an IP for domains in B.D. and not to look for them

Naumov2021-05-30 04:43:22
  • Answer # 1

    In general, the question is quite simple. Create a field with compliance and shell on PHP. Add an output in the form of echo and run it through the shell php -f yourscript.php. . At the beginning of the script, remove the limits of memory and time. Well, further drink tea and look progress)

  • Answer # 2

    In general, the question is quite simple. Create a field with compliance and shell on PHP. Add an output in the form of echo and run it through the shell php -f yourscript.php. . At the beginning of the script, remove the limits of memory and time. Well, further drink tea and look progress)