/    Sign up×
Community /Pin to ProfileBookmark

getting headlines

as u discuss pervoius thread but no answer me that i want headlines of newspaper
[url]http://www.express.com.pk/epaper/?Issue=NP_LHE&Page=FRONT_PAGE&Date=20100117&Pageno=1&View=1[/url]

i am succesedin getting the page html
by using

<?php
$homepage = file_get_contents(‘http://www.express.com.pk‘);
$abc=str_replace(“../”,”http://www.express.com.pk/”,$homepage);
$abd=str_replace(“PoPupwindow”,”http://www.express.com.pk/epaper/PoPupwindow”,$abc);

echo $abd;

?>

but there is still problem i faced that i want only headlines not whole page
i think it can be get by open popwindow or else any one can tell me how to handle mapping if i want to show only one cuz this news paper works on mapping

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@JerailJan 18.2010 — I can't read Arabic, so I'll show you an example of what you'd have to do with an English paper.

Take the New York Times for example. They offer an [url=http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml]RSS feed for people to subscribe to in .xml format[/url]. If you just look at their XML tags a bit, you can learn how to grab certain info off their .xml sites, re-arrange it, and place it on your own site.

What you're doing--actually getting the entire homepage--isn't the same thing. You'd have to do a lot more work to single out the individual headlines.
Copy linkTweet thisAlerts:
@experts585authorJan 18.2010 — jerail

i have a newspaper xml but i need same image heading. just like on news paper. as u see in this site have a main image and other work in mapping. soo when u click on a link than popopwindow open and tha tile and description. if is possible that we get that image or descption
Copy linkTweet thisAlerts:
@experts585authorJan 19.2010 — heloo evey one, i slove my problem with the help of my Project Manager,

you can see this top headlines

http://hkcsy.com/news/new/index.php

Yupeeeeeeee
×

Success!

Help @experts585 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...