Need Help About Linker Page-> Directory[db]

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
siegfredb
Forum Newbie
Posts: 2
Joined: Sun Apr 09, 2006 11:08 am

Need Help About Linker Page-> Directory[db]

Post by siegfredb »

I am a newbie php developer but i understand php code fast. I need to know how to make a page like this:
http://www.terrasip.com/voip_partner6/v ... submit.php

I am so intregued about how they check the url you provided, if their link exist and returns a value back to the page. and if their link exist they add you to their directory database. and if their link doesnt exist on the url u provided. then your site wont be added to the database.

please help me.. i want to implement stuff like this on my website. thank you in advance.
slpshtmike
Forum Newbie
Posts: 4
Joined: Sun Apr 09, 2006 11:09 am

Post by slpshtmike »

I'm also pretty new to php, but I think you can do that with the cURL function.

http://us2.php.net/manual/en/ref.curl.php
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

All you have to do is fetch the pages at the submitted URL and see there is a link present. (With http://www.php.net/curl and http://www.php.net/preg_match you should have good resources to get started.)
siegfredb
Forum Newbie
Posts: 2
Joined: Sun Apr 09, 2006 11:08 am

Post by siegfredb »

can you guys please give me a sample code on how to use:

Curl----http://www.php.net/curl

preg_match----http://www.php.net/preg_match

feel free to stick out comments to make a newbie understand. thank you.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There are examples of their usage on those pages and across many many threads on this forum.
Post Reply