Loading a page with arguments
Posted: Sat Feb 16, 2008 8:00 am
Hi I'm sort of a newbie at php so the solution is probably pretty obvious, what i'm trying to do is get all of the data from a page using this -
$lines = file('http://www.somesite.com/somepage.html);
$l_count = count($lines);
for($x = 0; $x< $l_count; $x++)
{
}
of which $lines is all of the data in that page
which works fine, but i need to get the data after I've sent the arguments to it. What i can do is send the arguments using a form by submitting them but however, this causes the browser to load that page. How can i load the page with arguments through php? The page is jsp
Thanks
$lines = file('http://www.somesite.com/somepage.html);
$l_count = count($lines);
for($x = 0; $x< $l_count; $x++)
{
}
of which $lines is all of the data in that page
which works fine, but i need to get the data after I've sent the arguments to it. What i can do is send the arguments using a form by submitting them but however, this causes the browser to load that page. How can i load the page with arguments through php? The page is jsp
Thanks