[php] Automatically parse URLs in txt ?

Pagina: 1
Acties:

  • CdRwin
  • Registratie: Juni 2001
  • Laatst online: 27-09-2024
Ik heb een php script die de txt uit een bestand leest en dan print op het scerm. Maar nu wil ook ook dat ie automatisch de www (urls) omk zet naar links. Met welke command regels doe ik dat ??

www.Qbox.nl


  • Bartholomew
  • Registratie: Januari 2000
  • Laatst online: 12-04 12:56
Schrijf een script wat in de txt zoekt naar http://etc en dat vervangt voor <a href=http://etc>http://etc</a>

Hier vind je alle functies die je nodig hebt: http://www.php.net/manual/en/ref.strings.php

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Bartholomew:
Schrijf een script wat in de txt zoekt naar http://etc en dat vervangt voor <a href=http://etc>http://etc</a>

Hier vind je alle functies die je nodig hebt: http://www.php.net/manual/en/ref.strings.php
euh :?

Ik zou je aanraden even te zoeken op "regex" en "ubb"
dan kom je vanzelf wel een tegen.

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


  • CdRwin
  • Registratie: Juni 2001
  • Laatst online: 27-09-2024
ThX bedankt voor jullie hulp :)
ik heb het gevonden ;)

www.Qbox.nl