Hello, world 🙂
It's me again,
i have a file - images.txt:
<img src=sunset.jpg border=0>
<img src=sunset1.jpg border=0>
<img src=sunset8.jpg border=0>
and wanted to use it for a simple image rotation -
i got this script i tihink from hotscripts.
i think may be i'm wrong at the line
"<img src='$photo' width=100 height=50 border=0> "?
anyway, when i uploaded my file
travel.php and wanted to have a look at my rotating pics -
there's nothing!
do you thinki made again a stupid mistake somewhere?
thanks!
<?
require ("../page.inc");
require ("content_travel.inc");
require ("form.inc");
$file ="images.txt";
$x = file("$file");
$y = rand(0, sizeof($x)-1);
$photo=$x[$y];
$content = "<table width=100% border=0 cellspacing=0 cellpadding=20>
<tr width=70%>
<td>
<p class=\"header\">Personal Tours
</p>
<span class=\"header\"> Personal tours are
available in the following cities.<br><br>
Our tours include:<br>
<span class=\"header\">Invitation Visa Support Letter</span><br>
<br>
<td width=30% valign=\"top\">
<table width=\"100%\" border=0 cellspacing=0
cellpadding=5 valign=\"top\">
<tr>
<td>
<img src='$photo' width=100 height=50 border=0>
</td>
</tr>
</table>
</td></tr>
</table>";
$services = new ServicesPage();
$services ->SetContent($content);
$services ->Display();
?>