Solved

read from external website and display info on my own

Posted on 2013-01-30
5
152 Views
Last Modified: 2013-06-09
Hi I would like to know a simple way to read the info from another website and show on my own.

I cant use iframe as I need to change the background, and It must be secure as we get so many attempts to hack our site daily.

the site I wish to read is, ultimateteam.co.uk and only the part where it says.   NEXT HAPPY HOUR:
To be confirmed  

This is located on the right at the top.
How can I show this info on my own site?
0
Comment
Question by:maxlucy
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 38836912
Here is an easy how to:

http://simplehtmldom.sourceforge.net/

I love this for it's simplicity, it will take a few minutes to grasp but you can simply invoke that as a part of your php in the section of your page and echo the result of your find.
0
 

Author Comment

by:maxlucy
ID: 38837081
how secure would this be?

btw thanks I will need to read and learn it
0
 

Author Comment

by:maxlucy
ID: 38837094
sorry I am not up to speed on this at all, what do I need to put on my server, and what do I paste to get my result?
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 38837109
Does your server have PHP installed on it  ?

Do you understand PHP?

If you answered yes to these question then it is easy.

There will be no need to paste this will load automatically each time someone loads your page:

i.e  your page page.php loads
this piece of script is invoked
webpage at http://website.com is read and parsed
The string you are searching for is found and it loads when your site is loaded.
0
 
LVL 29

Expert Comment

by:becraig
ID: 38911626
Did you get this to work or do you still need any help ?
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now