Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Alle Links auf Seite anzeigen lassen

Empfohlene Antworten

Veröffentlicht

Hey Community,

ich möchte mir alle Links einer Homepage anzeigen lassen.


// URL einlesen
$content = file_get_contents($url);

// echo $content;
preg_match_all("!<a.*?href=\"([^\"]*)\"[^>]*>(.*?)</a>!",$content,$ergebnisse);
// Alle Links ausgeben

foreach ($ergebnisse[0] as $link)
{
//echo "<br/>".$link;

echo $link."</br>";

}[/php]

Das klappt auch alles soweit ganz gut, aber es gibt auch Links dir nur mit einem " ' " gekennzeichnet sind, wenn ich das zusammen in eine Patternabfrage mache kommt aber nichts mehr.

Kurioser weise kommt die mit " oder mit ' doppelt, wenn ich die einzeln abfrage lasse...

Habt ihr eine Idee, wie ich dieses Problem lösen kann?!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.