Bonjour,

j'aimerai extraire l'adresse d'accès à une page web.

Le lien vers cette page est :
http://services.biblos.e2.rio.adm.com/lesite/phpConnexion/index_con.php
Voilà comment j'ai procédé :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
<?php
 
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'];
 
echo $_SERVER['REQUEST_URI'];
 
?>
Voilà ce que j'ai en retour

/phpConnexion/index_con.php
Mais j'aimerai avoir en retour ceci :

/lesite/phpConnexion/index_con.php
Comment faire ?

Je vous remercie d'avance !