Ver Mensaje Individual
  #7 (permalink)  
Antiguo 10/07/2002, 09:49
Avatar de Webstudio
Webstudio
Colaborador
 
Fecha de Ingreso: noviembre-2001
Ubicación: 127.0.0.1
Mensajes: 3.499
Antigüedad: 22 años, 5 meses
Puntos: 69
Re: Conseguir el <title> de un fichero html

(Cuidado que estoy tirando código al boleo!!!)

Creo que podria ser algo asi :

&lt;?php
$html = &lt;&lt;&lt;HTML
&lt;html&gt;
&lt;head&gt;&lt;title&gt;
Holas Samigos!! Soy Quintín
&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;&lt;/body&gt;
&lt;/html&gt;
HTML;

eregi(&quot;&lt;title&gt;(.*)&lt;/title&gt;&quot;, $html, $titulo);
echo $titulo[1];
?&gt;

Faltaría que alguien lo pruebe.

<hr><font size=2 face="verdana">- Pablo Daniel Rigazzi (Webstudio)
<font size=1 color="#333333">COORDINADOR PROYECTO REGIONALIZACION ARGENTINA
Visita <a href="http://www.web-studio.com.ar" target="_blank">Web Studio</a> - Tutoriales Photoshop</fo