Jump to content

A litle help with files


KinetiX

Recommended Posts

I beleive this is possible but only with text based files. Eg. you can read in a text based file and determine what the text was on a certain line and then assign that to a string variable and then print that variable on screen.

I would suggest checking the file handling functions in the php manual,

http://www.phpfreaks.com/phpref/41.php
What you are wanting to do is called screen scraping (i.e. pulling data off of a webpage. There's plenty of information out there. however, the difficult part will be in creating the rules to determine "where" the 4th line is - programatically speaking. If the structure of the page is changed you will need to rewrite your screen-scraping code to adjust.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.