Page 1 of 1

Need Help About Linker Page-> Directory[db]

Posted: Sun Apr 09, 2006 11:14 am
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.

Posted: Sun Apr 09, 2006 11:20 am
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

Posted: Sun Apr 09, 2006 11:44 am
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.)

Posted: Sun Apr 09, 2006 6:10 pm
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.

Posted: Sun Apr 09, 2006 6:54 pm
by feyd
There are examples of their usage on those pages and across many many threads on this forum.