[RESOLU] Analyse de code html
Bonjour,
Avec PHP j'ouvre un fichier de l'un de mon répertoire.
Il contient entre autre :
Code:
1 2
| <title>Confirmation</title>
<br><img src='http://www.site.com/mailingstat.php?mail=gilsonl@hotmail.com' width='1' height='1' border='0'/> |
En faisant :
Code:
1 2
| $titre = ereg("<title>(.*)</title>",$page,$regs);
echo $regs[1]; |
Cela m'affiche bien "Confirmation".
Cependant, en faisant : (ce que je souhaite)
Code:
1 2
| $titre = ereg("http://www.site.com/mailingstat.php?mail=(.*)' width='1' height='1' border='0'",$page,$regs);
echo $regs[1]; |
Cela ne m'affiche rien !!! Alors que je souhaite récupérer l'adresse mail...
Pouvez vous m'aider ? :)
Merci !