PHP Tutorial 2: Making A Self Updating Link Me Page
Ok this tutorial will show you how to make a linkme page.
It is very simple but if you really need help just email me or leave a message on the tagboard. Please note this is a small code i put together with alot of other small codes so yeah its kinda cool.
All you need to change is the $path to the folder your linkback images are in and then upload all your linkback images into it
Here is the code for it
Code:<? $path = "images/linkback"; $dir = @opendir($path); echo '<table border="0" width="98%" cellpadding="0" cellspacing="0">'; while (false !== ($files = readdir($dir))) { if ($files != "." && $files != "..") { echo '<tr> <td width="80%" height="70"><a href="'.$path.''.$files.'"><img src="'.$path.''.$files.'" border=0></a></td> <td><textarea cols="15" rows="3"> <a href="http://'.$_SERVER[HTTP_HOST].'/" target="_blank" alt=""><img src="http://'.$_SERVER[HTTP_HOST].'/"'.$path.''.$files.'" border="0"></a> </textarea></td> </tr>'; } } echo '</table>'; closedir($dir); ?>





Reply With Quote