Jump to content

cURL, using IP's Vs Domains. Fastest?


daydreamer

Recommended Posts

I am using cURL to visit/download pages on my server.

 

I was just thinking about the most effective and fastest way to write my code.

 

Wouldn't it be quicker to write:

 

curl_setopt($curl, CURLOPT_URL, 'http://66.102.9.99');

 

than:

curl_setopt($curl, CURLOPT_URL, 'http://www.google.co.uk');

 

because cURL wont have to go to a DNS and resolve google.co.uk to 66.102.9.99?

Link to comment
Share on other sites

true, but it would still be faster even if by only milliseconds wouldn't it?

 

Dont major websites have static IP's though because its better for search engine optimization?

 

I mean, most sites have static IPs, but you never know.  What does the millisecond difference matter?  I don't even think you'd be able to measure the speed change accurately. >_>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.