/    Sign up×
Community /Pin to ProfileBookmark

searching a website that nots my own

i want to create a search for another web page because they have a huge amount of info and i dont want to sort through it to find what i want. I cant search the database since i dont have access. Is there anyway to do this? A person i know made a search of the php manual. hge said you have to make an index file like his for the manual [url]http://shady.mytwinports.com/manual.search/manual.index.[/url] How would i go about doing this.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@ConorauthorMar 18.2004 — is this possible. would i use something like file_get _contents or would i have to write a script that crawls the site and gets everything?
Copy linkTweet thisAlerts:
@ConorauthorMar 18.2004 — so ive decided to use file_get_contents and then get rid of the html with this

$resultStripped = preg_replace("#<[^>]+>#is", "", $result);

now i need to tryt and right a script that goes through every page of the site and writes it to a file.

I figure it would use a loop to go through every page on the site until its done. How would i get it to click the links?
Copy linkTweet thisAlerts:
@SamMar 18.2004 — [i]Originally posted by RefreshF5 [/i]

[B]

$resultStripped = preg_replace("#<[^>]+>#is", "", $result);[/B]
[/QUOTE]

Note, this will also leave things such as style tags and script tags as page content...
Copy linkTweet thisAlerts:
@ConorauthorMar 18.2004 — i nkow ill do sometihng for that to. My problem is getting to go through everything on the site and logging it to the text file.
×

Success!

Help @Conor 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.19,
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,
)...