hi i want to shorten some urls that i take from my database i got this script but it doesn't work:
this outputs only the ...PHP Code:<?
$text = "http://www.uni-regensburg.de/Fakultaeten/philFakII/Psychologie/PsyII/beautycheck/english/index.htm";
$chars = 25;
$niew = $text." ";
$niew = substr($niew,0,$chars);
$niew = substr($niew,0,strrpos($niew,' '));
$niew = $niew."...";
echo $niew;
?>
how to solve this??
thanks in advance!
Greetz Joost


Reply With Quote
Bookmarks