Hi
I am relatively new to php so please kndly bear with me. I would appreciate if someone gives me a solution.\
I have two websites with me.
Website 1 & Website 2.
Website 1 has an html file that contains <a href> links.
Now these links i want to display on Website 2.
How can i do this.
Can it be done using php.
<a href="http://indiaprojectsonline.blogspot.com">http://indiaprojectsonline.blogspot.com</a>
Thanks
Can i use php in this scenario
Moderator: General Moderators
-
naveednaik
- Forum Newbie
- Posts: 2
- Joined: Thu Oct 23, 2008 8:56 am
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Can i use php in this scenario
Code: Select all
file()Re: Can i use php in this scenario
Or file_get_contents(), if you have PHP 5.
-
naveednaik
- Forum Newbie
- Posts: 2
- Joined: Thu Oct 23, 2008 8:56 am
Re: Can i use php in this scenario
I think u didnt understand.
I have http://website1/one.html
and
I have http://website2/links.html
Now i want to display the links.html of website2 in one.html in website1.
How can this be achieved.
Thanks in advance.
I have http://website1/one.html
and
I have http://website2/links.html
Now i want to display the links.html of website2 in one.html in website1.
How can this be achieved.
Thanks in advance.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Can i use php in this scenario
By using the file() function to get the content (file_get_content()) of the site - extracting the links.