Authenticating a user without filling up a web form??? Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shortcut
Forum Newbie
Posts: 4
Joined: Tue Jun 28, 2005 8:03 am

Authenticating a user without filling up a web form??? Help

Post by shortcut »

Hi there!

I need to get access to a page in a site from my script to grab its content but the page is in a protected area, I mean, you have to log in first and then go there by using a menu. There is no copyright concern and I have a user account to do that.My problem is to use my username and pswrd to grab the content without logging in through the web form.Any idea?? Or is there any other way to do that?Please help me.Sorry I'm new in the php world.

Thanks in advance

Shortcut
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

What is it you are trying to "grab"? Who owns the website? Is there any reason you need PHP to "grab" this data?

cURL might be of some help but I hope you have permission for whever you are trying to do.
shortcut
Forum Newbie
Posts: 4
Joined: Tue Jun 28, 2005 8:03 am

Post by shortcut »

Hi!

Of course I have permission to do that.Actually I could do it without grabbing the data from external page but it is gonna take a lot of work.It is about a soccer league and I want the fixtures page just to get the matches of a given date to show them on other page.Just like that.Since I have this account and everything is already set, there is no point in setting it again.

thanks

shortcut
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Just because you have access to something doesn't mean you're allowed to copy/harvest from it.

You first need to ask them if it's OK to do this... since you need an account I'm not sure they'd appreciate account holders harvesting information using PHP scripts... I'm not kidding, it's dodgey ground.

Anyway, like I say... look into cURL... it's can handle logins etc...

http://www.php.net/curl
Post Reply