0) $fileContents = fread($fh, filesize($myFile)); fclose($fh); $split = explode("

",$fileContents); for($n=0;$n<=sizeof($split)-1;$n++) { $thisNews = strip_tags($split[$n]); $thisNews = stripslashes($thisNews); if((strlen($thisNews) > 2) && ($thisNews != "News and Events")) {$newsArray[] = $thisNews; } if(sizeof($newsArray) >= 4) break; } //print_r($newsArray); $news1 = "".substr($newsArray[0],0,strlen($newsArray[0])*.75)." ...

"; $news2 = "".substr($newsArray[1],0,strlen($newsArray[1])*.75)." ...

"; $news3 = "".substr($newsArray[2],0,strlen($newsArray[2])*.75)." ...

"; $news4 = "".substr($newsArray[3],0,strlen($newsArray[3])*.75)." ...

"; /* $news1 = substr(stripslashes(strip_tags($split[1])),0,30)." ...
"; $news2 = substr(stripslashes(strip_tags($split[3])),0,30)." ...
"; $news3 = substr(stripslashes(strip_tags($split[5])),0,30)." ...
"; $news4 = substr(stripslashes(strip_tags($split[7])),0,30)." ...
"; */ $newsList = "

News & Events



".$news1.$news2.$news3.$news4."


More News Articles"; ?>

Get our informative brochure








Get Your News Widget
The iPUB System is a business software system built specifically to meet the business needs of publishers. It is a compilation of over 35 years serving the book industry with a vision for the future. In addition, iPUB has grown to serve many other industries such as gifts, toys, distribution, music and photography.


iPUB Banner

iPUB Logo

Click a link below to learn more about
these iPUB features:


 

Giallo Banner

Giallo

Click a link below to learn more about these Giallo features:



 

Request a Live Demo

 

 

Telephone: 1-440-229-1273E-mail: jeanne@ipubsoftware.com

Proud members:
Pub West Pub West


Follow iPUBtech on Twitter Watch our iPUB videos on YouTube