URL links!
Add
Remove
Links
$MAX=100; $free=0; $empty="empty\n"; $array = File("file.txt"); $total = count($array); for($i = 0 ; $i < count($array) ; $i++) { if($array[$i] == $empty) { $free=$i; } } if($free=="0"){ if($array[0]==$empty){ $free=0; } else { $free=$total; } } ?>
URL:
http://
Description:
Don't use a collem (
:
)
if($url){ $array = File("file.txt"); $array[$free] = $free+1 . ":" . $url . ":" . $desc . "\n"; $idnumber=$free+1; $fp = fopen("file.txt","w"); $i2=0; while($i2<=$MAX){ fputs($fp,$array[$i2]); $i2++; } fclose($fp); echo "
This address has been added:
http://$url
"; echo "The ID numer is: $idnumber
"; echo "
Click here
for all the links.
"; } ?>
Powered by: