11.09.2018 Views

Aprender a desarrollar un sitio Web con PHP y MySQL

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24/4/2014 ENI Training - Libro online<br />

Cuando ejecuta <strong>un</strong>a URL desde <strong>un</strong> <strong>sitio</strong> <strong>Web</strong> dinámico (por ejemplo: http://google.es), se ejecutan dos<br />

procesos diferentes:<br />

1) El servidor <strong>Web</strong> (Apache es el más frecuente) lee su URL y ejecuta el código<br />

servidor (en nuestro ejemplo, <strong>PHP</strong>) que va a crear <strong>un</strong> código HTML. A <strong>con</strong>tinuación<br />

el servidor envía a su navegador el flujo HTML que se ha creado.<br />

2) Su navegador recibe el flujo HTML y lo interpreta de manera gráfica, mostrando la<br />

página HTML.<br />

De este modo, cuando quiera probar en su equipo <strong>un</strong> <strong>sitio</strong> <strong>Web</strong> estático, simplemente haga doble clic en<br />

la página HTML para abrirla en su navegador.<br />

La URL será del tipo: C:\HTML\li.html<br />

Pero si quiere probar <strong>un</strong> <strong>sitio</strong> <strong>Web</strong> dinámico <strong>con</strong> <strong>PHP</strong>, obligatoriamente debe instalar en su equipo <strong>un</strong><br />

servidor <strong>Web</strong> (por ejemplo, Apache) y ejecutar su página <strong>PHP</strong> <strong>con</strong> <strong>un</strong>a URL de tipo:<br />

http://127.0.0.1/test.php<br />

http://www.eni-training.com/client_net/mediabook.aspx?idR=87299 2/2<br />

www.FreeLibros.me

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!