Ejecutando php o asp con javascript
Es posible mostrar el resultado de php o asp en una pagina alojada en un servidor que soporta solamente html estatico, desde un servidor que interprete estos lenguajes.
Ejemplo ---- index.html servidor de html estatico ---- <html> <head> <title> Ejemplo de inclusion de php mediante javascript </title> </head> <body> Texto incluido en el html <br> <script language="javascript" src="https://servidor.apache-php.com.ar/script.php"> </script> </body> </html> ---- script.php en servidor apache/php ---- <? $variable = "<table border=1 align=center>" . "<tr><td>" . "Tu direccion ip es:" . $REMOTE_ADDR . "<td></tr>" . "</table>"; ?> document.write("<?=$variable;?>");
You must be logged in to post a comment.