Home Page

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

User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Check if using http://login:pass@url works. I doubt it, but...
Using headers()?
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

I tried with http://Nay:password@forums.devnetwork.net/portal.php - well It didn't work LOL. Anyhow, I don't really understand using headers, what do you mean?

-Nay
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

cURL is what you need here, as cURL groks URLs. =) Basically, it's the built in web browser for PHP, a web browser you can program. It can handle cookies and what not, and can be used to login for you. It's actually some pretty cool stuff.

However, if you are going to have cURL handle your stuff, you are goign to want to set it on a cronjob if you are running linux. Otherwise, you might was well just point your browser here.
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

jason can you give us a little help and make a script that says if we have new messages? like the page will be:

pmchecker.php?username&password=*****

and it will check in the database if there are new pms for this user

i can make the script and u change the database variables and stuff, what do u think?
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

or wait a minute, if i make the script, what else should i look for? i know phpbb(cuz i've used it before u know...)
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Well, The number of unread posts and number of private messages in the inbox, and the number of private messages that are unread.

You think you can manage?

btw, Is this the script of Jason to modify and upload or that cURL thing we're both confused about? lol

-Nay
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

i think cURL is to difficult for me right now, i'd rather study the cURL extension at glance first :D
Post Reply