I want get 'title'、'description'and'keywords' in a web page I know 3 ways to implement this job:
a) use CURL
b) use fopen
c) use get_meta_data()
Strangely,each of the above does not work correctly every time.
for the same url:
Sometimes,I can get the content.
Sometimes,it return an error:'failed to open stream: HTTP request failed'
I'm confused.WHY? help me : )