Assistance with PHP Script
$10-30 USD
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;
}
?>
Projektazonosító: #9308390
A projektről
14 szabadúszó tett átlagosan 33$ összegű árajánlatot erre a munkára
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
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
Hello I can do this. .......................................................................... Regards Bill
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
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
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
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.
Dear sir, please contact me, we will discuss about your requirements, when I understand your requirements I'll do it for you.
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.