How do I check if a URL exists (not 404) in PHP?
you cannot use curl in certain servers u can use this code