Need help from php developers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bahadur
Forum Newbie
Posts: 1
Joined: Fri Nov 26, 2004 5:11 am

Need help from php developers

Post by Bahadur »

Hello All PHP Developers.

Let me introduce my self. I am final year student of IT.
I am very much interested in programming languages, and accept chalanges.
Right now i m working on my final year project, and i need some help from professional PHP Developers.

I am creating a web application that when user fills the form on my web sign in page.
i-e: Field are
Wesite URL :
email :
When user submit after providing the infomation then first it searches either that domain is registered or not that user provides Website URL field.If the domain is not registered then it generates error "Your website is not registered". If the domain is registered then it searcg for the perticualar word on users website that i'll provide it.
And is this possible to find how many pages are there in website that user provides ?, and can we scan all of them ?

I will be thank full to you if you solve my problem.
Please response me at my email address
bahadur_oad@yahoo.com
[php_man][/php_man]
peni
Forum Commoner
Posts: 34
Joined: Thu Nov 18, 2004 1:15 pm

Post by peni »

terrifying...

you can send a request to any whois-service in order to find out if the domain is registered or not.
if you need a kind of "spider" which searches for some words on the pages of a website, it won't be that easy.

- you will have to get the source code of the page and parse it in order to find any links (<a> tags)
1. problem - what about js and forms?


- you will have to follow that links if they're still on the same domain name
2. problem - possible redirection (ok, just analyse the http-headers for that)
3. coventional problem with things like sessions, cookies and useragent-lies
4. subdomains may be a part of the site


- save the information about every page you've spidered in order to keep it spidered only once
5. there's a lot of different structures of sites - some use frames, some people have only one static index.php and use url-arguments to navigate, some expect the sid or sth random in the url...
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Need help from php developers

Post by Weirdan »

Bahadur wrote: I will be thank full to you if you solve my problem.
Please response me at my email address
We'd rather help you to solve your problem yourself. DevNetwork forums is mostly educational community.
peni wrote: 1. problem - what about js and forms?
Usually it's not advisable for search engine to fill any forms.

peni wrote: coventional problem with things like sessions, cookies and useragent-lies
CURLOPT_COOKIEFILE & CURLOPT_USERAGENT ?
peni
Forum Commoner
Posts: 34
Joined: Thu Nov 18, 2004 1:15 pm

Post by peni »

you're surely right, i've spoken about important aspects, not the unsolvable problems :)
Post Reply