I know that I can use fopen for a webpage just as I can with a regular file, but what if the webpage requires a username and password? I have the username and password, but just how do I code it in?
There are more than one solutions to this problem. On is using the http authentification found within php itself. Second is configuring ure server with the .htaccess .htpass file. Then there are two posibilities, use a textfile or a db for authentification.
Can you explain more on the http authentification? Give me specific examples. The .htaccess .htpass wouldn't work because it's not my server.
If u dont have access to the server there are two possibilities, one move ;-)
and the second is using the http authentification as described in: http://www.php.net//manual/en/features.http-auth.php
Thats the simplest solution