Page 1 of 1

Grab the Web Site Contents like URL, FirstName, LastName

Posted: Mon Feb 11, 2008 10:10 am
by qamarabbasjaffery
hi Everyone

Anybody else there, who can solve this problem for Grabbing the Web Contents like URL, First NAme And Last Name From Any specified web site and after that it would be saved into the DataBase.

Best Regards

Ali

Re: Grab the Web Site Contents like URL, FirstName, LastName

Posted: Mon Feb 11, 2008 5:27 pm
by dayyanb
You would need the url to access the webpage in the first place. Could you please explain exactly what you are trying to do?

What do you mean "FirstName, LastName"? Is it the contents of a page?
You can either use regular expressions or xml processing for that.
http://us.php.net/manual/en/ref.dom.php
or
http://us.php.net/manual/en/ref.simplexml.php

For regular expressions:
http://us.php.net/manual/en/function.preg-match.php

Re: Grab the Web Site Contents like URL, FirstName, LastName

Posted: Tue Feb 19, 2008 4:40 am
by qamarabbasjaffery
I actually grab my desired data from any link through the internet. Like
As for i have doe at my side is

i have placed a Text box in which i give the URL of the Desired website site, then i give Expression1 like search from this expression and then give the expression 2 that ends upto here. So go throgh the page and fetch the required mention relevant data. and this grabbed data, i would like to store in a database table.

So how we can code it in PHP. Waiting for an urgent reply

Qamar

Re: Grab the Web Site Contents like URL, FirstName, LastName

Posted: Wed Feb 20, 2008 10:47 pm
by dayyanb
I am having trouble understanding what you are trying to say. Are you talking about a web form?

Could you post your code?