Jump to content

Recommended Posts

I got this warning message from a script I was working on to read XML feeds.

 

Warning: file_get_contents(http://feeds2.feedburner.com/tmi/news/malaysia?format=xml) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

 

but when i run this "http://feeds2.feedburner.com/tmi/news/malaysia?format=xml".

 

can anyone tell me what is the problem? i already set allow_url_fopen = On

 

currently using PHP5 and Apache2.2

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/151686-file_get_contents-error/
Share on other sites

this is my code

 

<?

$xml = file_get_contents('http://www.dpreview.com/feeds/news.xml');

 

 

// Use cURL to get the RSS feed into a PHP string variable.

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,'http://www.dpreview.com/feeds/news.xml');

curl_setopt($ch, CURLOPT_HEADER, false);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$xml = curl_exec($ch);

curl_close($ch);

 

 

// Include the handy XML data extraction functions.

include 'xml_regex.php';

// An RSS 2.0 feed must have a channel title, and it will

// come before the news items. So it's safe to grab the

// first title element and assume that it's the channel

// title.

$channel_title = value_in('title', $xml);

// An RSS 2.0 feed must also have a link element that

// points to the site that the feed came from.

$channel_link = value_in('link', $xml);

 

 

// Create an array of item elements from the XML feed.

$news_items = element_set('item', $xml);

 

 

foreach($news_items as $item) {

    $title = value_in('title', $item);

    $url = value_in('link', $item);

    $description = value_in('description', $item);

    $timestamp = strtotime(value_in('pubDate', $item));

    $item_array[] = array(

            'title' => $title,

            'url' => $url,

            'description' => $description,

            'timestamp' => $timestamp

    );

}

 

if (sizeof($item_array) > 0) {

    // First create a div element as a container for the whole

    // thing. This makes CSS styling easier.

    $html = '<div class="rss_feed_headlines">';

    // Markup the title of the channel as a hyperlink.

    $html .= '<h2 class="channel_title">'.

            '<a href="'.make_safe($channel_link).'">'.

            make_safe($channel_title).'</a></h2><dl>';

    // Now iterate through the data array, building HTML for

    // each news item.

    $count = 0;

    foreach ($item_array as $item) {

        $html .= '<dt><a href="'.make_safe($item['url']).'">'.

                make_safe($item['title']).'</a></dt>';

        //$html .= '<dd>'.make_safe($item['description']);

        if ($item['timestamp'] != false) {

    $html .= '<br />';

                    //'<span class="news_date">['.

                    //gmdate('H:i, jS F T', $item['timestamp']).

                    //']</span>';

        }

        //echo '</dd>';

        // Limit the output to five news items.

        if (++$count == 10) {

            break;

        }

    }

    $html .= '</dl></div>';

    echo $html;

}

 

 

function make_safe($string) {

    $string = preg_replace('#<!\[CDATA\[.*?\]\]>#s', '', $string);

    $string = strip_tags($string);

    // The next line requires PHP 5, unfortunately.

    //$string = htmlentities($string, ENT_NOQUOTES, 'UTF-8', false);

    // Instead, use this set of replacements in PHP 4.

    $string = str_replace('<', '<', $string);

    $string = str_replace('>', '>', $string);

    $string = str_replace('(', '&#40;', $string);

    $string = str_replace(')', '&#41;', $string);

    return $string;

}

 

 

$string =  preg_replace('#<!\[CDATA\[.*?\]\]>#s', '', $string);

?>

$xml = curl_exec($ch);

Change that line to someting else I think is the point he was making

 

i.e.

 

$xMarkUp = curl_exec($ch);

 

Nope infact as 'element_set' isn't a php function i googled 'xml_regex.php' and found the site

http://www.bobulous.org.uk/coding/php-xml-feeds.html

this stats

However, this requires that PHP is setup with allow_url_fopen set to true. Not all web hosts enable this setting, for security reasons. So another way to fetch the XML file into a string is by using the cURL functions (if they are installed on your PHP setup)

 

this means use one or the other!

 

if i take out

$xml = file_get_contents('http://www.dpreview.com/feeds/news.xml');

 

i will have this error

Warning: Invalid argument supplied for foreach()

 

the reason for that use due to this line

// Create an array of item elements from the XML feed.
$news_items = element_set('item', $xml);

its not creating an array

 

try changing

$xml = curl_exec($ch);
curl_close($ch);

to

$xml = curl_exec($ch);
curl_close($ch);
die($xml);//added  for debugging

 

and see if your getting the sites RSS details!

MadTechie,

 

yes, i got it from that site.

 

i already set

allow_url_fopen = On

uncomment extension=php_curl.dll

 

and add in

$xml = curl_exec($ch);
curl_close($ch);
die($xml);//added  for debugging

 

but still have the same error

Warning: file_get_contents(http://www.dpreview.com/feeds/news.xml) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Okay well $xml is empty..

 

try these inorder (test after each one)

 

#1 reboot apache and retest

#2 increase the timeout

Add

curl_setopt($ch, CURLOPT_TIMEOUT, 15);

after

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

#3 Add error reporting

Add

error_reporting(E_ALL);

, to the start of the page (after the <?php)

 

ok.this is the code i had modify

 

<?
error_reporting(E_ALL);
//$xml = file_get_contents('http://www.dpreview.com/feeds/news.xml');


// Use cURL to get the RSS feed into a PHP string variable.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://www.dpreview.com/feeds/news.xml');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
$xml = curl_exec($ch);
curl_close($ch);
die($xml);//added  for debugging
//$xml = curl_exec($ch);
//curl_close($ch);


// Include the handy XML data extraction functions.
include 'xml_regex.php';
// An RSS 2.0 feed must have a channel title, and it will
// come before the news items. So it's safe to grab the
// first title element and assume that it's the channel
// title.
$channel_title = value_in('title', $xml);
// An RSS 2.0 feed must also have a link element that
// points to the site that the feed came from.
$channel_link = value_in('link', $xml);


// Create an array of item elements from the XML feed.
$news_items = element_set('item', $xml);


foreach($news_items as $item) {
    $title = value_in('title', $item);
    $url = value_in('link', $item);
    $description = value_in('description', $item);
    $timestamp = strtotime(value_in('pubDate', $item));
    $item_array[] = array(
            'title' => $title,
            'url' => $url,
            'description' => $description,
            'timestamp' => $timestamp
    );
}

if (sizeof($item_array) > 0) {
    // First create a div element as a container for the whole
    // thing. This makes CSS styling easier.
    $html = '<div class="rss_feed_headlines">';
    // Markup the title of the channel as a hyperlink.
    $html .= '<h2 class="channel_title">'.
            '<a href="'.make_safe($channel_link).'">'.
            make_safe($channel_title).'</a></h2><dl>';
    // Now iterate through the data array, building HTML for
    // each news item.
    $count = 0;
    foreach ($item_array as $item) {
        $html .= '<dt><a href="'.make_safe($item['url']).'">'.
                make_safe($item['title']).'</a></dt>';
        //$html .= '<dd>'.make_safe($item['description']);
        if ($item['timestamp'] != false) {
          $html .= '<br />';
                    //'<span class="news_date">['.
                    //gmdate('H:i, jS F T', $item['timestamp']).
                    //']</span>';
        }
        //echo '</dd>';
        // Limit the output to five news items.
        if (++$count == 10) {
            break;
        }
    }
    $html .= '</dl></div>';
    echo $html;
}


function make_safe($string) {
    $string = preg_replace('#<!\[CDATA\[.*?\]\]>#s', '', $string);
    $string = strip_tags($string);
    // The next line requires PHP 5, unfortunately.
    //$string = htmlentities($string, ENT_NOQUOTES, 'UTF-8', false);
    // Instead, use this set of replacements in PHP 4.
    $string = str_replace('<', '<', $string);
    $string = str_replace('>', '>', $string);
    $string = str_replace('(', '&#40;', $string);
    $string = str_replace(')', '&#41;', $string);
    return $string;
}


$string =  preg_replace('#<!\[CDATA\[.*?\]\]>#s', '', $string);
?>

 

but it still display an empty page ???

Code is fine the problem is with your Server and/or Configuration i tested it on my local PC,

 

I assume you rebooted..and i assume the code your testing is the same as you posted! (except moving the last preg_replace into the make_safe function)

i tried to safe_mode = On, it still display a blank page.

 

if open_basedir = On, i got the error below

 

Warning: Unknown: open_basedir restriction in effect. File(C:/Apache2.2/htdocs/testing.php) is not within the allowed path(s): (1) in Unknown on line 0

 

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

 

Fatal error: Unknown: Failed opening required 'C:/Apache2.2/htdocs/testing.php' (include_path='.;C:\php5\pear') in Unknown on line 0.

 

by the way, is it safe to on safe mode and open_basedir?

 

sorry for misunderstanding...i already turn them off. but still display as a blank page  :-\

 

so i refer to the PHP Installation & Configuration section, this guy http://www.phpfreaks.com/forums/index.php/topic,242449.0.html having the same problem as mine, but nobody have solve it  :-[

No its not the same problem he has "Connection refused" this means the script found the server but was denied access (port blocked or something along those lines)

you problem is your php took too long to connect this is why i got you to increase timeout to 15..

 

Lets create a smaller script and try to get it to connect.. at let try to find out why theirs a problem!

 

First turn off any firewall you may have a test,

(remember to turn the firewall on after the tests)

 

if you old script still fails then try this.

(this script is only for getting exta info)

 

<?php
error_reporting(E_ALL);

// Use cURL to get the RSS feed into a PHP string variable.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://www.dpreview.com/feeds/news.xml');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);

$xml = curl_exec($ch);

$info = curl_getinfo($ch);

curl_close($ch);

echo "<br>------------------------------<br>";
echo "<pre>";var_dump($info);echo "</pre>";
echo "<br>------------------------------<br>";
die($xml);

 

try that script in a new file and pass back the output!

ok. i off the firewall and tested the code u given.

 

this is the output


------------------------------

array(19) {
  ["url"]=>
  string(38) "http://www.dpreview.com/feeds/news.xml"
  ["http_code"]=>
  int(0)
  ["header_size"]=>
  int(0)
  ["request_size"]=>
  int(0)
  ["filetime"]=>
  int(-1)
  ["ssl_verify_result"]=>
  int(0)
  ["redirect_count"]=>
  int(0)
  ["total_time"]=>
  float(0)
  ["namelookup_time"]=>
  float(0)
  ["connect_time"]=>
  float(0)
  ["pretransfer_time"]=>
  float(0)
  ["size_upload"]=>
  float(0)
  ["size_download"]=>
  float(0)
  ["speed_download"]=>
  float(0)
  ["speed_upload"]=>
  float(0)
  ["download_content_length"]=>
  float(0)
  ["upload_content_length"]=>
  float(0)
  ["starttransfer_time"]=>
  float(0)
  ["redirect_time"]=>
  float(0)
}


------------------------------

i tested the code and got all this back sorry thort ill have ago

 

my results what it all mean please.

 



<br>------------------------------<br><pre>array(20) {
  ["url"]=>
  string(38) "http://www.dpreview.com/feeds/news.xml"
  ["content_type"]=>
  string(19) "application/rss+xml"
  ["http_code"]=>
  int(200)
  ["header_size"]=>
  int(281)
  ["request_size"]=>
  int(69)
  ["filetime"]=>
  int(-1)
  ["ssl_verify_result"]=>
  int(0)
  ["redirect_count"]=>
  int(0)
  ["total_time"]=>
  float(0.563)
  ["namelookup_time"]=>
  float(0.344)
  ["connect_time"]=>
  float(0.391)
  ["pretransfer_time"]=>
  float(0.391)
  ["size_upload"]=>
  float(0)
  ["size_download"]=>
  float(29623)
  ["speed_download"]=>
  float(52616)
  ["speed_upload"]=>
  float(0)
  ["download_content_length"]=>
  float(29623)
  ["upload_content_length"]=>
  float(0)
  ["starttransfer_time"]=>
  float(0.453)
  ["redirect_time"]=>
  float(0)
}
</pre><br>------------------------------<br>HTTP/1.1 200 OK
Content-Length: 29623
Content-Type: application/rss+xml
Last-Modified: Fri, 03 Apr 2009 01:33:00 GMT
Accept-Ranges: bytes
ETag: "e6dfcc1ffcb3c91:f7e"
Server: Microsoft-IIS/6.0
X-Powered-By: www1
X-Powered-By: ASP.NET
Date: Fri, 03 Apr 2009 01:35:35 GMT

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<copyright>Copyright (c) 1998-2007 Digital Photograph Review</copyright>
<language>en-us</language>
<title>News: Digital Photography Review (dpreview.com)</title>
<description>Digital Photography Review, Latest digital camera news, camera reviews, galleries, technology and comparisons.</description>
<link>http://www.dpreview.com/</link>
<lastBuildDate>Fri, 03 Apr 2009 01:33:00 GMT</lastBuildDate>
<image>
<title>Digital Photography Review (dpreview.com)</title>
<description>http://www.dpreview.com/</description>
<url>http://a.img-dpreview.com/images/dprlogo_white_free.gif</url>
<link>http://www.dpreview.com/</link>
</image>
<item>
<title>Olympus posts firmware update for E-30 DSLR</title>
<pubDate>Thu, 02 Apr 2009 13:51:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0904/09040201olye30firmwareupdate.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/images/oly_e30.gif" width="120" height="114" hspace="8" align="right"">]]>Olympus has released a firmware update for the E-30 digital SLR. Version 1.1 rectifies minor issues with image playback and quietens operation of the Image Stabilizer when used with Imager AF and Hybrid AF modes of the camera. The latest firmware can be installed via Olympus Master or Studio software.</description>
<guid>http://www.dpreview.com/news/0904/09040201olye30firmwareupdate.asp</guid>
</item>
<item>
<title>Play a part: community-generated challenges are here</title>
<pubDate>Wed, 01 Apr 2009 10:33:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0904/09040101community_challenges.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0904/challenges.gif" width="79" height="120" hspace="8" align="right"">]]>The latest phase of our Challenges system is underway - community-generated challenges. Following a successful roll-out, bug-fixing and lesson-learning phase, we're starting to open the Challenges system up so that you can create new series of challenges to test your peers' visions and creativity. The first community-generated challenges begin accepting entries from tomorrow and there's a page for you to volunteer as a series host.</description>
<guid>http://www.dpreview.com/news/0904/09040101community_challenges.asp</guid>
</item>
<item>
<title>Olympus launches E-450 compact DSLR</title>
<pubDate>Tue, 31 Mar 2009 08:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09033101olympuse450.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/images/oly_e450.gif" width="120" height="86" hspace="8" align="right"">]]>Olympus has announced the E-450, an upgraded version of the E-420 compact DSLR. The new E-450 is essentially identical to the E-420 apart from the addition of 3 Art Filters, a new processor and an improved LCD display. Priced at &pound;450 for the standard lens kit, it will start shipping from May 2009.</description>
<guid>http://www.dpreview.com/news/0903/09033101olympuse450.asp</guid>
</item>
<item>
<title>Zeiss to make 18mm F3.5 for Canon </title>
<pubDate>Fri, 27 Mar 2009 17:03:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032702zeiss_3p5_18_canon.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/zeiss_3p5_18mm.gif" width="120" height="101" hspace="8" align="right"">]]>Carl Zeiss has said it will produce a Canon-mount version of its 18mm F3.5 lens. The Distagon T* 3.5/18 super-wide angle lens has previously only been available in the ZF and ZK mounts for Nikon and Pentax cameras, respectively. A Canon-mount version of the lens is being shown at the Photo Imaging Expo 2009 show in Tokyo and will be available 'towards the end of the year,' the company said.</description>
<guid>http://www.dpreview.com/news/0903/09032702zeiss_3p5_18_canon.asp</guid>
</item>
<item>
<title>Just Posted: Canon PowerShot SX1 IS  Review</title>
<pubDate>Fri, 27 Mar 2009 12:27:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032701CanonSX1ISreview.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/CanonSX1IS/Images/canon_sx1is.gif" width="120" height="100" hspace="8" align="right"">]]>Just Posted: Our review of the Canon PowerShot SX1 IS. The SX1 IS is an update to the popular S5 IS, and is the first in a new wave of compact cameras that sport CMOS sensors with fast shooting times and HD video recording. Like its CCD-based sibling (the SX10), the SX1 offers a 28-560mm equiv. stabilized lens. But does the introduction of CMOS to compacts add enough to justify such a price premium over the CCD version? Follow the link to find out...</description>
<guid>http://www.dpreview.com/news/0903/09032701CanonSX1ISreview.asp</guid>
</item>
<item>
<title>Just posted: Preview of the Canon EOS 500D / T1i</title>
<pubDate>Wed, 25 Mar 2009 08:59:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032505Canon_500D_preview.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Preview.gif" width="120" height="90" hspace="8" align="right"">]]>Just posted: our hands-on preview of the Canon 500D / T1i. We've managed to get our hands on Canon's latest consumer-grade DSLR and have been delving through the menus and scrutinizing its new features. We've also gone out and shot a handful of real-world sample images to show what it's capable of. So come in and meet the new Rebel.</description>
<guid>http://www.dpreview.com/news/0903/09032505Canon_500D_preview.asp</guid>
</item>
<item>
<title>Canon unveils EOS 500D / Rebel T1i DSLR</title>
<pubDate>Wed, 25 Mar 2009 04:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032504canoneos500d.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/images/canon_eos500d.gif" width="120" height="101" hspace="8" align="right"">]]>Canon has unveiled the EOS 500D (Digital Rebel T1i), the latest addition to its compact DSLR series. The upper-entry-level camera features a 15.1 MP APS-C CMOS sensor with 1080p HD video recording at 20fps. It also offers a 3.0 inch LCD with 920,000 dot resolution and an ISO sensitivity range expandable up to 12800 equivalent. It includes a faster Digic 4 processor offering better noise reduction at higher ISO's and continuous shooting speeds of up to 3.4 fps delivering 170 large JPEG images in a single burst.</description>
<guid>http://www.dpreview.com/news/0903/09032504canoneos500d.asp</guid>
</item>
<item>
<title>Canon introduces Speedlite 270EX compact flashgun</title>
<pubDate>Wed, 25 Mar 2009 04:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032503canonspeedlite270ex.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Canon/Speedlite270EX_front_eur.gif" width="100" height="104" hspace="8" align="right"">]]>Canon has also introduced the Speedlite 270EX entry-level flashgun, replacing the Speedlite 220EX with a smaller but more powerful unit. Unlike the 220EX, the new model features a 90 degrees tilting zoom head. It also offers a near-silent recycling in a time of just 3.9 seconds and a guide number of 27 meters. Powered by two AA batteries, this flashgun is compatible with all recent Canon cameras.</description>
<guid>http://www.dpreview.com/news/0903/09032503canonspeedlite270ex.asp</guid>
</item>
<item>
<title>Canon releases PIXMA Pro9500 Mark II printer</title>
<pubDate>Wed, 25 Mar 2009 04:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032502canonpixmapro9500.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Canon/Printers/Pro9500MkII_e_06.gif" width="120" height="43" hspace="8" align="right"">]]>Canon has released the PIXMA Pro9500 Mark II 14 inch A3+ professional inkjet printer. With a resolution of 4800 x 2400 dpi, the printer uses a 10-colour pigment ink system, including both matte and photo blacks. This allows photographers to print on both gloss and matte media without changing ink tanks. It offers 16 bits per channel printing and dedicated monochrome printing. It also offers the Ambient Light Correction option that adjusts the final print according to type of lighting under which the print will be displayed. The Pro9500 Mark II is priced at $849 USD (&pound;729).</description>
<guid>http://www.dpreview.com/news/0903/09032502canonpixmapro9500.asp</guid>
</item>
<item>
<title>Canon announces PIXMA Pro9000 Mark II  printer</title>
<pubDate>Wed, 25 Mar 2009 04:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032501canonpixmapro9000.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Canon/Printers/Pro9000MarkII_e_06.gif" width="120" height="43" hspace="8" align="right"">]]>Canon has also announced the PIXMA Pro9000 Mark II 14 inch professional inkjet printer. Compared to the previous model, the Mark II offers three times faster black and white printing, supports third-party media and includes a new Ambient Light Correction feature. The addition of 16 bits per channel printing offers a wider color gamut (with 276 trillion colors). In addition, a plug-in for Adobe Photoshop is provided that enables Canon EOS users to directly print RAW files without converting to a compressed format. The Pro9000 Mark II is priced at $499 USD (&pound;499).</description>
<guid>http://www.dpreview.com/news/0903/09032501canonpixmapro9000.asp</guid>
</item>
<item>
<title>Just Posted: Olympus E-30 Review</title>
<pubDate>Tue, 24 Mar 2009 12:48:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032404olympuse30review.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/images/oly_e30.gif" width="120" height="114" hspace="8" align="right"">]]>Just Posted: Our full review of the Olympus E-30. The E-30 is the long-awaited 'tweener' model that fills the gap in the E-system range between the entry-level models and the flagship E-3. With a new 12 megapixel sensor, a selection of unique in-camera creative options and a wealth of features, the E-30 looks very promising on paper, but does it deliver in use? Find out in our in-depth review after the link.</description>
<guid>http://www.dpreview.com/news/0903/09032404olympuse30review.asp</guid>
</item>
<item>
<title>Hartblei Tilt-Shift lenses receive Carl Zeiss certification</title>
<pubDate>Tue, 24 Mar 2009 12:48:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032403hartbleizeiss.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Hartblei.gif" width="80" height="110" hspace="8" align="right"">]]>Germano-Ukranian specialist lens maker Hartblei has announced that its range of Superrotator tilt-shift lenses have now been approved to carry the Carl Zeiss name. The 'Hartblei-Optics by Carl Zeiss' range of Tilt-Shift lenses includes a 40mm F4, 80mm F2.8 and 120mm F4 Macro. All three lenses are available in a variety of mounts, including Canon EF, Nikon F, Sony A and Pentax K.</description>
<guid>http://www.dpreview.com/news/0903/09032403hartbleizeiss.asp</guid>
</item>
<item>
<title>Leica updates firmware for D-Lux 4 digital camera</title>
<pubDate>Tue, 24 Mar 2009 11:09:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032402leicadlux4firmware.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/images/leica_dlux4.gif" width="120" height="95" hspace="8" align="right"">]]>Leica has released a firmware update for the the D-Lux 4 digital compact camera. Version 1.20 improves performance of the auto white balance and auto focus functions of the camera. The latest firmware is available for immediate download from Leica's website.</description>
<guid>http://www.dpreview.com/news/0903/09032402leicadlux4firmware.asp</guid>
</item>
<item>
<title>Tamron announces 60mm F2 Macro</title>
<pubDate>Tue, 24 Mar 2009 09:18:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032401tamron60macro.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Tamron_60mm_macro.gif" width="100" height="136" hspace="8" align="right"">]]>Tamron has announced the development of a 60mm F2 macro lens that provides 1:1 magnification for APS-C sensors. The lens, called the SP AF60mm F/2.0 Di II Macro 1:1, will be available in Canon, Sony and Nikon mounts (with a built-in autofocus motor to allow AF to operate on the D40, D40X and D60). Its design, which incorporates two low dispersion elements to to compensate for various aberrations, lets you achieve 1:1 magnification at a working distance of 100mm. The F2 maximum aperture makes it a whole stop faster than other lenses in the same class. Price and availability will be announced later.</description>
<guid>http://www.dpreview.com/news/0903/09032401tamron60macro.asp</guid>
</item>
<item>
<title>Tokina 16.5-135mm F3.5-5.6 DX coming soon?</title>
<pubDate>Mon, 23 Mar 2009 16:45:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032301tokina16p5to135.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/tokina_16p5-135.gif" width="120" height="104" hspace="8" align="right"">]]>Tokina's US distributor, THK, has announced the long-awaited AT-X 16.5-135mm DX F3.5-5.6 will be available in the summer for Canon and Nikon mounts. The lens, which gives an unusually wide angle of view for its class, has regularly appeared at trade shows as far back as the P.I.E 2007 show in Japan. It gives a field of view roughly equivalent to 25-200mm in 35mm terms (dependant on system), and will be available in Nikon mount from June this year, with the Canon variant following a month later, according to THK.</description>
<guid>http://www.dpreview.com/news/0903/09032301tokina16p5to135.asp</guid>
</item>
<item>
<title>PMA Interview: Olympus</title>
<pubDate>Fri, 20 Mar 2009 16:57:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032002olympusinterview.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/pma09interviews/olybug.gif" width="120" height="103" hspace="8" align="right"">]]>Back at PMA we sat down with a handful of senior Olympus executives from Europe, the USA and Japan for our usual show briefing and, as promised, we dedicated a section of the meeting to an 'on the record' interview for publication here. Unfortunately, much of what we discussed can't be talked about just yet, and perhaps inevitably we failed to get through the huge list of questions generated by our active Olympus users community. Check out the interview after the link...</description>
<guid>http://www.dpreview.com/news/0903/09032002olympusinterview.asp</guid>
</item>
<item>
<title>Just Posted: Nikon AF-S DX 35mm F1.8 review</title>
<pubDate>Fri, 20 Mar 2009 12:57:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09032001nikon35review.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0902/Nikon/nikon351p8.gif" width="120" height="120" hspace="8" align="right"">]]>Just Posted: our review of the AF-S DX Nikkor 35mm F1.8 G. Nikon caught everyone a little off-guard with the introduction of exactly the sort of cheap, fast standard prime lens for APS-C that most people had given up asking for. We've subjected it to our extensive tests to see whether it deserves a place in every Nikon-owning enthusiast's bag or if the attraction ends at the price tag.</description>
<guid>http://www.dpreview.com/news/0903/09032001nikon35review.asp</guid>
</item>
<item>
<title>PMA Interview: Panasonic</title>
<pubDate>Thu, 19 Mar 2009 11:51:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031901panasonicinterview.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/pma09interviews/gh1bug.gif" width="120" height="103" hspace="8" align="right"">]]>We caught up with a team of executives from Panasonic Japan at PMA for a chat about the new GH1 and their plans for the DSC market. As part of our meeting Mr Ichiro Kitao, General Manager of the DSC Product Planning Group agreed to answer some of our questions - and some of those posed by our forum members - in an 'on the record' interview. Check it out after the link...</description>
<guid>http://www.dpreview.com/news/0903/09031901panasonicinterview.asp</guid>
</item>
<item>
<title>Pentax may halve Japan camera workforce</title>
<pubDate>Wed, 18 Mar 2009 16:51:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031802hoyarestructure.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/logos/pentax.gif" width="89" align="right" height="22" hspace="8"">]]>Pentax's parent company, Hoya, is to reduce its digital camera staffing levels in Japan to around half their current levels, according to the respected Japanese business paper, Nikkei. The report says jobs will be lost in sales, production management and development. Up to 300 sales-related jobs outside Japan may also go. The company has not discussed precise details but says the Nikkei story restates the company's restructuring plans announced with its third-quarter financial results in February.</description>
<guid>http://www.dpreview.com/news/0903/09031802hoyarestructure.asp</guid>
</item>
<item>
<title>Feature: Apical dynamic range interview</title>
<pubDate>Wed, 18 Mar 2009 10:51:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031801apical.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Apical.gif" width="71" height="98" hspace="8" align="right"">]]>Dynamic range and the various ways of trying to capture and represent it are the topic of many a heated discussion on the forums. We spoke to Apical, a company working on this challenge whose technologies are incorporated in cameras from the biggest brands, to find out what it is doing to address the matter. We think this interview with managing director Michael Tusch will help shine a little light on this shadowy corner of image processing.</description>
<guid>http://www.dpreview.com/news/0903/09031801apical.asp</guid>
</item>
<item>
<title>Canon TS-E 24mm F3.5 L II hands-on preview</title>
<pubDate>Fri, 13 Mar 2009 17:27:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031302canon24tsepreview.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/lensreviews/canon_24_3p5_tse_c10/Images/24tse_sm.gif" width="100" height="142" hspace="10" align="right"">]]>Just posted! Our hands-on preview of Canon's new perspective control lens, the TS-E 24mm F3.5 L II. As one of the more interesting announcements of a somewhat uninspiring PMA 2009, Canon's new TS-E design allows independent rotation of the tilt and shift axes relative to each other and the camera, answering the prayers of many an architecture and landscape photographer. We've had a pre-production model in the dpreview offices for just enough time to bring you a description of how the new mechanism works; click through to find out.</description>
<guid>http://www.dpreview.com/news/0903/09031302canon24tsepreview.asp</guid>
</item>
<item>
<title>PMA Interview: Samsung</title>
<pubDate>Fri, 13 Mar 2009 14:18:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031301_samsunginterview.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/pma09interviews/interviewsamsung.gif" width="120" height="103" hspace="8" align="right"">]]>Soon after the announcement of Samsung's 'NX' hybrid interchangeable lens system at PMA 2009 we met up with Mr Seung Soo Park, Vice President of the Strategic Marketing Team and Mr Choong-Hyun Hwang, Vice President of the Strategic Marketing Team's Product Planning Group from Samsung Digital Imaging Company to see if we could find out any more about their plans for the system. Check out the interview after the link...</description>
<guid>http://www.dpreview.com/news/0903/09031301_samsunginterview.asp</guid>
</item>
<item>
<title>Olympus E-620 preview samples gallery</title>
<pubDate>Thu, 12 Mar 2009 11:03:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031201olympuse620samples.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/E620samples.gif" width="120" height="90" hspace="8" align="right"">]]>Just Posted: Our preview sample gallery from the Olympus E-620. London can be quite gray at this time of year, so we thought we'd capitalize on our time in the US by putting together a sample gallery with a final production version of the new upper entry-level DSLR from Olympus. We've included a mixture of ISO settings and a couple of shots using the camera's Pin Hole art filter.</description>
<guid>http://www.dpreview.com/news/0903/09031201olympuse620samples.asp</guid>
</item>
<item>
<title>Just posted! Sigma 10-20mm lens review</title>
<pubDate>Wed, 11 Mar 2009 17:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031102sigma10-20review.htm.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/lensreviews/sigma_10-20_4-5p6_n15/Images/sigma10-20sm.gif" width="100" height="128" hspace="10" align="right"">]]>Just posted! Our latest lens review focusing on Sigma's 10-20mm F4-5.6 EX DC HSM ultra-wideangle zoom. A firm favourite with the more budget-conscious APS-C user since its introduction four years ago, this lens is now challenged by some new young pretenders intent on stealing its market share. So can this old warrior still fight off its challengers, or is age beginning to take its toll?</description>
<guid>http://www.dpreview.com/news/0903/09031102sigma10-20review.htm.asp</guid>
</item>
<item>
<title>Olympus updates firmware for ED 9-18mm lens</title>
<pubDate>Wed, 11 Mar 2009 15:15:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031101oly9to18mmfirmware.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/oly_9-18mm.gif" width="100" height="87" hspace="8" align="right"">]]>Olympus has announced a firmware update for the Zuiko Digital ED 9-18mm F4.0-5.6 super wide-angle lens. Version 1.1 improves the auto-focusing ability of this E-system lens in certain conditions. Olympus DSLR owners can update the firmware using the software supplied with their cameras, whereas Panasonic users can download a firmware update program from Olympus&rsquo;s website.</description>
<guid>http://www.dpreview.com/news/0903/09031101oly9to18mmfirmware.asp</guid>
</item>
<item>
<title>PMA 2009 Wrap up</title>
<pubDate>Tue, 10 Mar 2009 11:21:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09031001pma09wrapup.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0902/pma2009logo.gif" width="130" height="112" hspace="8" vspace="1" align="right"">]]>PMA 2009 is over, and as we return to some semblance of normality it's time to reflect on what this year's show tells us about the state of the industry and to look at some of the emerging trends in digital cameras and digital imaging in general. We've updated our show report to include not only our thoughts on the exhibition itself but also our usual pick of the products on show. We'll be adding a few interviews over the next week or so.</description>
<guid>http://www.dpreview.com/news/0903/09031001pma09wrapup.asp</guid>
</item>
<item>
<title>Pretec unveils 666x Compact Flash Cards</title>
<pubDate>Fri, 06 Mar 2009 11:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09030602preteccfcard666x.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Pretec/pretec64gbcf.gif" width="110" height="92" hspace="8" align="right"">]]>Pretec has unveiled the world's first 666x Compact Flash cards with a read/write speed of 100MB/s. According to the company, this is approaching the format's maximum theoretical speed of 133MB/s, and the end of ever-increasing CF card speeds is now in sight. Sporting a rugged body and resistant to shock and impact, they promise to be ten times more durable that other CF cards. The 666x CF cards will start shipping from April, with capacities ranging from 4GB to 64GB.</description>
<guid>http://www.dpreview.com/news/0903/09030602preteccfcard666x.asp</guid>
</item>
<item>
<title>Pretec introduces world's first SDXC card</title>
<pubDate>Fri, 06 Mar 2009 11:00:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09030601pretecsdxc.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Pretec/pretecsdxc.gif" width="85" height="111" hspace="8" align="right"">]]>Two months after the SD Association announced the new SDXC (extended capacity) format, Pretec has unveiled the world's first SDXC card with&nbsp; a capacity of 32 GB and read/write speed of 50MB/s. Future generations of these cards promise up to 2 Terabytes (2048 GB) of storage capacity and speeds of up to 300MB/s. Currently there are no products compatible with these memory cards.</description>
<guid>http://www.dpreview.com/news/0903/09030601pretecsdxc.asp</guid>
</item>
<item>
<title>Leica ceases R-series production</title>
<pubDate>Thu, 05 Mar 2009 16:24:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09030501leciarsystemdiscont.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/news/0903/Leica-R.gif" width="120" height="108" hspace="8" align="right"">]]>Leica has announced it is discontinuing its R-Series manual focus SLR. In a letter sent to dealers, the company said the R9 and R-series lenses would no longer be produced. The camera, which was compatible with Leica's DMR digital back, still featured on the company's stand at PMA in Las Vegas, despite the move. The company said that insights gained during the development of the S2 (its first autofocus camera), will feed into the development of a future generation of the R-system.</description>
<guid>http://www.dpreview.com/news/0903/09030501leciarsystemdiscont.asp</guid>
</item>
<item>
<title>General Imaging launches nine compact cameras</title>
<pubDate>Wed, 04 Mar 2009 17:39:00 GMT</pubDate>
<link>http://www.dpreview.com/news/0903/09030402gecameras.asp</link>
<comments>http://forums.dpreview.com/forums/forum.asp?forum=1000</comments>
<description><![CDATA[<img src="http://a.img-dpreview.com/reviews/images/ge_x3.gif" width="120" height="78" hspace="8" align="right"">]]>PMA 2009: General Imaging has introduced nine new cameras at PMA. Top of the line is the 12.2 megapixels X3 with 12x optical zoom (33-396mm equiv), 2.7&quot; LCD and Image stabilization. Next we have the waterproof G3WP with a 12.2Mp sensor and 2.7&rdquo; LCD. Then come the E1255W, E1250TW and image stabilized E1276W; all with 28mm lenses, 12.2 Mp sensors and 3 inch LCDs (touch screen in the E1250TW). Lastly, we have the A950, A1050, A1035 and A1250 budget cameras with 9.1, 10.1, 10.1 and 12.2Mp sensors respectively and 2.5&quot; LCDs. The cameras include new features including Blink, Smile and Face detection, Scene Recognition and In-camera red-eye removal.</description>
<guid>http://www.dpreview.com/news/0903/09030402gecameras.asp</guid>
</item>
</channel>
</rss>

MadTechie, how come my result is different with redarrow ?? :o

 

As i said before

Code is fine the problem is with your Server and/or Configuration i tested it on my local PC,

 

I'm pretty sure its something blocking the connection all connections seam to be affected..

 

Can you try your code one another computer?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.