Thanks for all of the input!  I have tried a new tactic, using CURL.  I've
had some success with grabbing a web page, but when I try to pass
credentials, I get an error.  I tried following examples from various sites
(which all had different implementations), but I was unsuccessful.

Here is the file I came up with:

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.example.com";);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, 'user:password')
curl_exec($ch);
curl_close($ch);
?>

I get the following error:

Parse error: parse error in /var/www/html/sess6.php on line 8

If anyone has a suggestion, I would greatly appreciate it.

Thanks!

-----Original Message-----
From: David Tulloh [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 6:59 PM
To: News1
Cc: php-general@lists.php.net
Subject: Re: [PHP] Passing Credentials

You want to use sessions, they allow you to store information such as
login details between requests.

Have a look at a simple tutorial, like this Zend one.
http://www.zend.com/php/beginners/php101-10.php


News1 wrote:
> Rory,
> 
> Thanks for the feedback -- I will try to be clearer.
> 
> Yes, I want to login into a web page and from there get to another
webpage.
> 
> The webcams are on my network.  I can access them directly; however, I
would
> like to create a page where several are visible at once.  So, I would like
> to be able to log into a "master" page, if you will, and from there be
able
> to access multiple webcam web pages from this "master" page.  Right now I
> can do it, but I have to authenticate for each webcam I access.  Since I
am
> using authentication to access the "master" page, I would like to skip
this
> step for the webcams and be able to access them directly and automatically
> pass the username/password credentials.
> 
> Thanks again!  I hope this is clearer.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to