comment récuper l'url d'un hypertext en PHP
Posté : 30 nov. 2008, 22:06
Bonjour svp j'ai besoin de récuperé l'url d'un hypertext mais je ne sais pas comment.
j'utilise la fonction pour trouver cet hypertext
TRES BELLE AFFAIRE
mais moi j'ai besoin de son url par exemple:
http://www.phppost.net/php-langage/tran ... 50543.html
est ce qu'il existe une fonction en PHP qui permet d'avoir ce url dans une variable?
Merci[/url]
j'utilise la fonction pour trouver cet hypertext
print_r($matches[0][380]) donc ce qui m'affiche l'hypertext suivant :TRES BELLE AFFAIRE
mais moi j'ai besoin de son url par exemple:
http://www.phppost.net/php-langage/tran ... 50543.html
est ce qu'il existe une fonction en PHP qui permet d'avoir ce url dans une variable?
Merci[/url]