I have a variable ($source) which i would like to assign the source code of another page to. (have the file open an ebay page, and assign the source to the variable.) I would like to do this so i can parse through it all and pull out a few key bits of info (current bid, number of bids, time remaining) from the autions i have listed. Can anyone assist me with code for opening/assigning the source to this variable? Thank you.
assign source code to a variable
using [man]file_get_contents [/man] you can get the entire file and put it into a string like
$file = file_get_contents ('http://ebay.com');
then your going to want to parse the infomation.
you can use [man]explode[/man] to get the infomation you want.
sweet, thank you much =)