Ok, y si quiero que el scrip cambie desde por ejemplo un include("tecto.txt");
algo asi:
Código PHP:
<?php
$dbhost = "localhost";
$dbuname = "aulabd";
$dbpass = "xalma";
$dbname = "txt";
// Base de datos
$link = mysql_connect("$dbhost","$dbuname","$dbpass");
mysql_select_db("$dbname", $link);
$result = mysql_query("SELECT * FROM campo", $link);
while ($row = mysql_fetch_array($result))
// Content-type
header("Content-type: image/jpeg");
$im = imagecreate(400,300);
$blanco = ImageColorAllocate($im, 255,255,255);
$negro = ImageColorAllocate($im, 0,0,0);
ImageTTFText($im, 25, 90, 375, 225, $negro, "impact_0.ttf",
"".$row[txtt]."");
ImageTTFText($im, 25, 270, 50, 75, $negro, "impact_0.ttf",
"Esto es Impact");
imagejpeg($im);
imagedestroy($im);
?>