Tema: funciones!!
Ver Mensaje Individual
  #13 (permalink)  
Antiguo 29/03/2005, 15:58
luchope
 
Fecha de Ingreso: julio-2003
Ubicación: Colombia
Mensajes: 591
Antigüedad: 20 años, 9 meses
Puntos: 7
claro una funcion en php la puedes invocar desde cualquier parte de un HTML, siempre y cuando se haga adecuadamente...
por ejemplo;

Código PHP:
<?php
function createim($urlim){
header("Content-type: image/jpeg");
$im imagecreatefromjpeg("images/".$urlim);
$px imagesx($im);
imagejpeg($im);
imagedestroy($im);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 339px; top: 86px;"><?php createim("welcome_head.jpg"); ?>
 </div>
<form name="form1" method="post" action="">
<input type="submit" name="Submit" value="Enviar">
</form>
</body>
</html>
Chaop!