Jump to content
php.lv forumi

file_get_contents ar domeinu


webi

Recommended Posts

Sveiki,

 

Kas varētu būt nepareizi servera konfigurācijā vai kur citur, ja PHP funkcija file_get_contents() strādā tikai ar IP adresi, bet ar domeinu nē?

 

piemēram -

file_get_contents('http://212.93.96.97') strādā, bet

file_get_contents('http://php.lv') Nē.

 

serveris -

Windows 7, Apache 2.2.11, PHP 5.2.11

 

p.s. Serverī interneta pārlūkā tā pati problēma.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...