par
anouar1985 » 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
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]
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
[php]print_r($matches[0][380])[/php] donc ce qui m'affiche l'hypertext suivant :
[u]TRES BELLE AFFAIRE [/u]
mais moi j'ai besoin de son url par exemple:
[url]http://www.phppost.net/php-langage/transformer-url-absolue-t50543.html[/url]
est ce qu'il existe une fonction en PHP qui permet d'avoir ce url dans une variable?
Merci[/url]