SSamiK Posted February 15, 2010 Share Posted February 15, 2010 What I want to do is to show a part of a diagram shown on another site inside my site. I think I can do it with file_get_contents(), but I'm not sure how. I'm not a good php coder, so please be gentle if I seem stupid. From this page: http://ekstern.eidsivaenergi.no/default/Public/Vannstand/vannstand.html I want to show only the part named Glomma on my site. (those 7 instances in that box.) I cant figure out how to diplay only that part, when I try to set a startpoint and endpoint it just gives me a blank page. Can anyone help me out? Quote Link to comment Share on other sites More sharing options...
premiso Posted February 15, 2010 Share Posted February 15, 2010 You can use Regular Expressions to grab the data. As such I will move this request to the Regex forum. References: preg_match Quote Link to comment Share on other sites More sharing options...
SSamiK Posted February 15, 2010 Author Share Posted February 15, 2010 OK, thanks. The values after the names are updatet once a day, so they are not "regular" as such, but maby that don't matter... I'll try playing around with preg_match and se if I can figure it out. Quote Link to comment Share on other sites More sharing options...
SSamiK Posted February 15, 2010 Author Share Posted February 15, 2010 I cant figure this out, anyone willing to help me out? If more details are needed, I will gladly provide. As stated in my first post, im not very good with php...but I'm not afraid of trying. I've tried figuring this out non stop since my first post, reading manuals and trying trying trying, but I'm not very much wiser now than when I started. Quote Link to comment Share on other sites More sharing options...
SSamiK Posted February 20, 2010 Author Share Posted February 20, 2010 Still havent had any luck getting this to work... Keep gettting just code in my output, and not the finished values that I want. Getting quite close to giving it all up.. :-\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.