View Single Post
  #1 (permalink)  
Old Apr 17th, 2008, 21:39
Donny Bahama Donny Bahama is offline
Reputable Member
Join Date: Mar 2005
Location: Margaritaville (a state of mind somewhere between Inebriation and San Diego), CA
Posts: 233
Thanks: 4
Thanked 0 Times in 0 Posts
Trying something new... point me in the right direction?

Hi, everyone! I'm trying something I've never done in php before and I'd appreciate some initial guidance...

The goal is to take a web page as input, parse it to extract the (few pieces of) data I need, then output it as a .png image.

My goal in doing this is to create an image which is updated hourly (and always saved with the same name) so that I can then schedule a task on my (Pocket PC) phone that will download this image hourly (at a few minutes past the hour), saving it locally on my phone so that I can quickly/easily/instantly view an updated surf report (without connecting to the actual webpage and without the hassles of mobile browsers!)

I'm OK using strpos and substr to find and extract the data I need, but I'm not sure how to read in a file and parse it line by line. And outputting text to an image file (I hope to use another image as the background - partially for aesthetics and partly to insure known/consistent file dimensions) seems to be somewhat of a black art!

If someone would be so kind as to point me toward the right php commands I'll need to look into, I can take it from there. Thanks in advance!

Last edited by Donny Bahama; Apr 18th, 2008 at 06:14.
Reply With Quote