Ich habe ein Problem.Wie überprüft man diese URL ist Bild URL?
Ich muss überprüfen, die URL ist Bild URL oder nicht? Wie kann ich das machen?
Beispiel: wenn ich setzen http://www.google.com/ ist nicht Bild URL.
aber wenn ich setzen http://www.google.com/profiles/c/photos/private/AIbEiAIAAABECK386sLjh92M4AEiC3ZjYXJkX3Bob3RvKigyOTEzMmFmMDI5ODQ3MzQxNWQxY2VlYjYwYmE2ZTA4YzFhNDhlMjBmMAEFQ7chSa4PMFM0qw02kilNVE1Hpw oder http://www.hoax-slayer.com/images/worlds-strongest-dog.jpg ist ist Bild URL.
möglich Duplikat [Überprüfen Sie, ob Bild auf Remote-URL existiert] (http://stackoverflow.com/questions/1363925/check-whether-image-exists-on-remote-url) und auf einer allgemeineren level [Wie kann man überprüfen, ob eine Remote-Datei mit PHP existiert?] (http://stackoverflow.com/questions/981954/how-can-one-check-to-see-if-a-remote-file- exists-using-php) – Gordon
mögliches Duplikat von [beste Methode zur Bestimmung, ob eine URL ein Bild in PHP ist] (http://stackoverflow.com/questions/676949/best-way-to-determine-if-a-url -is-an-image-in-php) – Wipqozn