Collecting weather icon

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
sandeep605085
New php-forum User
New php-forum User
Posts: 44
Joined: Tue Feb 26, 2013 6:00 am
Location: Mindfire Solutions
Contact:

Re: Collecting weather icon

Post by sandeep605085 » Tue May 07, 2013 10:08 pm

Hi,

Please check the site
http://www.yr.no/sted/Norge/Sogn_og_Fjo ... liten.html

It does not contains <td class="wind" for which you are trying to get the string position from below line.
$posout1 = strpos($newstring1, '<td class="wind"'); // Find the end tag of the specific element .

so because of this it is not fetching the record as posout1 is blank.
may be you wanted to do '<td class="temperature"'

Thanks,
Sandeep Agrawal
Mindfire Solution.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests