TGWSE_GY Posted August 7, 2009 Share Posted August 7, 2009 :facewall: :facewall: :facewall: Here is the code for the news section on a website I am working, http://hmtotc.com/dev/projects/VRassoc/jamsmagazine.com/index.php. <html> <body> <p><img src="images/jams-magazine-news.gif" width="150" height="20"></p> <p><strong>Beyonce and Des'ree in legal battle</strong><br> <em>Rob Barnett</em> </p> <p>Beyonce is set to be sued by English 1990’s pop soul singer, Des’ree, for not seeking permission to use her song 'I’m Kissing You’. The American superstar did not complete the deal to secure the right to record the track, yet went ahead with its production and a subsequent promo video.</p> <p>Des’ree shot to UK fame for her catchy 1994 smash 'You Gotta Be’, is trying to block the distribution of the song, titled 'Still in Love (Kissing You) on video and Beyonce’s solo album, Bday, Deluxe Edition.</p> <p>But who is better? Beyonce or Des’ree? There’s only one way to find out. FIGHT!!!!!<br> </p> <p><strong>No more Gorillaz studio albums</strong><br> <em>Rob Barnett</em></p> <p>Gorillaz have decided not to record anymore studio albums. 2005’s Demon Days, the follow up to the self titled debut of 2001, is the second and final one, although there is one final project in the pipeline. Damon Albarn confirmed that the cartoon musicians will feature in a film, possibly involving Monty Python legend, Terry Gilliam.</p> <p>Albarn recently told BBC Radio 2 'We're trying to make a film next, starting in September hopefully. It will be a film score. There won't be another pop record."</p> <p>Noodle, Murdoc, 2D and Russel are likely to take starring roles in the film.<br> </p> <p><strong>Madonna Takes Adopted Son From Malawi</strong><br> <em>The Associated Press</em></p> <p>Madonna jetted out of the Malawi on Sunday after a six-day visit to the impoverished homeland of the toddler she wants to adopt, carrying the boy in her arms as she boarded her plane.</p> <p>Madonna and her husband, the film producer Guy Ritchie, took custody of David Banda last October after finding him in an orphanage. Critics said the 48-year-old star used her celebrity status to circumvent Malawian adoption laws — allegations she denies.</p> <p>The 20-month-old toddler waved to the bodyguards and driver who had escorted him during the visit. Madonna, wearing her now familiar straw hat, did not look back as she disappeared into the silver jet, with her daughter Lourdes following.<br> The star and her entourage spent their time visiting orphanages, projects for street children and agricultural development programs as well as opening a new day care center funded by her charity, Raising Malawi.</p> <p>Madonna, who lives in London, made one visit to the Home of Hope orphanage, where David lived after his death of his mother in childbirth. There was no sign that Madonna had met with Yohane Banda, the peasant farmer who placed his son in the orphanage saying he was too poor to care for him.</p> <p>It was also unclear whether Yohane Banda met alone with his son, as he had hoped.</p> <p>David's mother died of complications in childbirth and his two siblings died of malaria in infancy.</p> <p>Although a coalition of human rights groups challenged Madonna's adoption plans in the courts, many locals says they are happy that the celebrity has drawn attention to Malawi, which usually makes news because of drought, hunger and the occasional political scandal.</p> <p>Madonna's childcare center aims to provide education, food and health care for up to 4,000 children. It is based on Kabbalah, Judaism's mystical sect, which counts the singer among its devotees.</p> <p>Malawian child welfare officials are expected to file a report on the suitability of Madonna and Ritchie, as adoptive parents after two trips to their London residence in May and December. The singer has two other children, Lourdes, 9, and Rocco, 6.<br> </p> <p><strong>Brown's Trust Owes $70,000 for Funeral</strong><br> <br> The trust handling James Brown's estate owes more than $70,000 for his elaborate funeral and care of his body for nearly three months before it was laid to rest in March, according to the funeral director who handled the soul singer's arrangements.</p> <p>"I'm just waiting on them to get some of this mess straightened out," said Charles Reid, manager of the C.A. Reid Funeral Home in Augusta, Ga., which handled Brown's funeral. "I really haven't pushed the issue, even though I'd like to have my money."</p> <p>Some of the funeral costs have already been paid and trustees have mailed a check to Reid this week covering the outstanding balance, Brown's longtime adviser and trustee Buddy Dallas said Wednesday.</p> <p>"It was the children that ran up a funeral bill of over $150,000, not the trustees," Dallas said. "We've done our very best to do what we could to accommodate the creditors. There's no great big pile of money or surplus of money just lying around."</p> <p>Louis Levenson, an attorney for Brown's six adult children, said Wednesday it is the trust's responsibility to pay for the funeral costs, which he considers a "reasonable" amount.</p> <p>Brown's children filed a motion this week asking a judge to provide accounting records of Brown's trust and estate before and after the singer's death, Levenson said.</p> <p>Brown's children also filed two other motions Tuesday. One claims Brown's trustees have been trying to sell off some of their father's assets against court orders and the second motion asks a judge to modify his previous order that appointed two special administrators to help Brown's trustees settle his estate, giving them more control.</p> <p>Dallas called the allegations in the motion "bogus and baseless."</p> <p>"The trustees and the personal representatives are certainly not going to do anything — as much scrutiny as this has been given — improper, inappropriate and certainly not illegal," Dallas said.</p> <p>A hearing is scheduled for later this month on the motions filed by Brown's children and a motion filed on behalf of the singer's partner, Tomi Rae Hynie.</p> <p>She is asking a judge to appoint a special guardian for her son, the first step toward determining the child's paternity.</p> <p>An e-mail and a message left for Robert Rosen, Hynie's attorney, was not immediately returned Wednesday.</p> <p>Brown died Dec. 25 in an Atlanta hospital and his body was placed in a crypt at the Beech Island home of one of his daughters March 10.</p> <p>The crypt might not be Brown's final resting place. Brown's family has said a public mausoleum will be built and its location will be announced once it is completed.</p> </body> </html> What I am wanting to do is store the entire thing in one variable and split it into 4 strings based off of the html tags and reduce each returned string down to 200 characters. I am wanting each string to start at <p><strong> thanks Any Ideas. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/ Share on other sites More sharing options...
mikesta707 Posted August 7, 2009 Share Posted August 7, 2009 look into the stristr() function: http://us2.php.net/manual/en/function.stristr.php Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/#findComment-893019 Share on other sites More sharing options...
JonnoTheDev Posted August 7, 2009 Share Posted August 7, 2009 split it into 4 strings based off of the html tags What HTML tags? What are your start and end points? Does this text not come from a database? Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/#findComment-893021 Share on other sites More sharing options...
TGWSE_GY Posted August 7, 2009 Author Share Posted August 7, 2009 I am wanting to start at <p><strong> and end at </p> then shorten the string which I already know how to do. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/#findComment-893023 Share on other sites More sharing options...
TGWSE_GY Posted August 7, 2009 Author Share Posted August 7, 2009 starting at <p><strong> and ending at </p> Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/#findComment-893026 Share on other sites More sharing options...
JonnoTheDev Posted August 7, 2009 Share Posted August 7, 2009 You have many </p> tags so this cannot be an end point. As I said does this information come from a database? If so does it already contain the HTML tags or is this simply static html on your page? Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/#findComment-893043 Share on other sites More sharing options...
TGWSE_GY Posted August 10, 2009 Author Share Posted August 10, 2009 its stored in a database, also the HTML is stored in the db too. As there is a back end for editing it is not static. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/169238-splitting-strings-by-html-tags/#findComment-894899 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.