Assistance with PHP Script

Törölve Kiadva: Jan 13, 2016 Kiszállításkor fizetve
Törölve Kiszállításkor fizetve

Hello,

Im looking for assistance with a PHP script. The script takes information from an XML feed. Currently the script works once on a page, but i need to place the same script on a page multiple times. The fix should include the script code and not an iframe. The script is enclosed below for reference.

<?PHP

error_reporting(0);

//URL to your Feedburner

$xmlLink = \"[login to view URL]\";

$xml = file_get_contents($xmlLink);

if($xml == FALSE) {

echo (\'<span style=\"font-family:Helvetica;color:#cccccc;font-size:12px;\">Unable To Connect. Please Contact Web Site Administrator.</span>\');

return;

}

$xmlobj = new SimpleXMLElement($xml);

//for($i=0; $i< count($xmlobj->channel[0]->item); $i++)

for($i=0; $i< 6; $i++)

{

$image = \"\";

foreach($xmlobj->channel[0]->item[$i]->enclosure as $media){

if($media[\'type\'] == \"image/jpg\")

$image = $media[url];

}

if($image)

{

//all should have images

echo \'

<div class=\"main\">

<a href=\"\'.$xmlobj->channel[0]->item[$i]->link.\'\" target=\"_blank\"><img id=\"img2\" src=\"\'.$image.\'\" alt=\"image\"/></a>

<div class=\"textbox\">

<a href=\"\'.$xmlobj->channel[0]->item[$i]->link.\'\" class=\"title\" target=\"_blank\">

<h1>\'.sConvert($xmlobj->channel[0]->item[$i]->title).\'</a></h1>

<div class=\"text\">

\'.sConvert($xmlobj->channel[0]->item[$i]->description).\'

</div></div></div>\';

}

}

# Function to convert special characters to HTML

function sConvert($stringIn){

$result = mb_convert_encoding($stringIn, \"HTML-ENTITIES\", \"UTF-8\");

$result = substr($result, 0, 59);

return $result;

}

?>

HTML PHP

Projektazonosító: #9308390

A projektről

14 ajánlat Távolról teljesíthető projekt Utoljára aktív: Jan 13, 2016

14 szabadúszó tett átlagosan 33$ összegű árajánlatot erre a munkára

rajeshsonisl

Hello! With 98% to 99% completion rate, 850+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... y Továbbiak

$79 USD 1 napon belül
(971 vélemény)
8.7
rinsadsl

A proposal has not yet been provided

$24 USD 1 napon belül
(1072 vélemény)
8.9
toinnisfree

I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. Milestone is required to begin; to be released when the job has been satisfactor Továbbiak

$50 USD 1 napon belül
(777 vélemény)
8.3
wildlily980

Hello I can do this. .......................................................................... Regards Bill

$30 USD 1 napon belül
(59 vélemény)
6.7
TechnoVilla

Hello Sir/Madam, The name of our organization is TechnoVilla Solutions Limited (GMT+6). We are a software company. We have over 8 years of experience developing web based applications using PHP. We have highly e Továbbiak

$20 USD 1 napon belül
(57 vélemény)
5.9
vw1880582vw

I have 20 years experience writing tools in PHP/MySQL and other languages. From searchengines to complex analytics tools. Further details of your problem will enable me to provide a more accurate quote. I would b Továbbiak

$30 USD 2 napon belül
(35 vélemény)
5.5
ngay

I have never had performance issues with our existing clients. I have never made bid on projects which are not doable. I assure you that I'll stand up to your expectations and I look forward to have a long-term and hea Továbbiak

$25 USD 1 napon belül
(65 vélemény)
5.8
scriptmane

hello sir l'm a web and mobile developer , and i have good experience with php and xml , i will be happy if i can help you with your project , so can you contact me so we can discuss waiting for your reply than Továbbiak

$20 USD 0 napon belül
(33 vélemény)
5.1
mderevyanchuk

Hi! Can help with your script! WIll be glad to work with you! I am new on a website but I have already a good experience in programming.

$30 USD 1 napon belül
(27 vélemény)
4.9
kienngd

Dear sir, please contact me, we will discuss about your requirements, when I understand your requirements I'll do it for you.

$50 USD 1 napon belül
(21 vélemény)
4.6
Montyjr

It see an easy task but I need to know: How many are those several times? Where they will be displayed? What styles, css, tag, name or id they have to have? That could be done today.

$20 USD 1 napon belül
(0 vélemény)
0.0