[PHP] Re: Authentication with PHP and HTTP

2002-11-04 Thread silver
hi - I'm not quite sure if this will help you, but lets give it a try:

you could use this URL syntax:
 http://user:password@;www.site.com to automatically log your user in to the
htaccess protected area. the bad thing about it is that user / password show
up in the URL, but you could hide this information with using frames...
are PHP/MySQL usernames + passwords the same like in Apache/HTTP?

greets,
_andi






"Phillip Erskine" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:F13i7M4BAyxJMXehYSo4e46@;hotmail.com...
>
> I have a site that uses PHP/MySQL authentication for one section and
> Apache/HTTP authentication for another.  Eventually I would like to use
only
> PHP and MySQL for authenticating users, but in the meantime, I have to use
> both.
>
> First, users will log in to the main section of the site and I will use
PHP
> session variables to maintain state for that section.  What I would like
to
> be able to do is allow users to click a link that would redirect them to
the
> other section of the site and automatically log them in.
>
> The section of the site that users will be redirected to uses .htaccess
and
> .htpassword files to enforce HTTP authentication.
>
> Is this possible?  If so, how?
>
>
> =
> http://www.pverskine.com/
>
>
>
>
> _
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>



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




Re: [PHP] Re: Authentication with PHP and HTTP

2002-11-05 Thread Silver
very true :)
thx - I will keep that in mind...


"Chris Shiflett" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:3DC71CBE.2050703@;php.net...
> You can "hide" URLs by fetching them with one of your own PHP scripts:
>
> 
>  readfile("http://user:password@;www.site.com/");
> ?>
>
> I think it might be at least better than frames. :-)
>
> Chris
>
> silver wrote:
>
> >you could use this URL syntax:
> >http://user:password@;www.site.com to automatically log your user in to
the
> >htaccess protected area. the bad thing about it is that user / password
show
> >up in the URL, but you could hide this information with using frames...
> >are PHP/MySQL usernames + passwords the same like in Apache/HTTP?
> >
>



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




[PHP] Re: Variable Value 2 Session Name

2002-11-05 Thread Silver
well - as far as I understand - this line...
> $SessionUser = $row['.$IDFeild.'];

...should read:
$SessionUser = $row[$IDField];



so - in my eyes just a syntax error. I hope I'm right
in case you have session_autostart disabled in yout php.ini you first have
to start
the session with the session_start() command.


_andi



"Stephen Of Blank Canvas Group" <[EMAIL PROTECTED]> schrieb im
Newsbeitrag news:003401c284bc$c4a76ce0$0101a8c0@;abstractinternet.net...
> I'm trying to create what I believe should be a simple script to help
> with logging users into my site.  My problem is that at  the top of my
> script I set a variable with it's value and then at later script I
> cannot appear to access it.
>
> Extract of my code is as follows and fails:
>
> $IDField = "loginemail";
> $SessionUser = $row['.$IDFeild.'];
> session_register('SessionUser');
>
> However if I change the second line to
>
> $SessionUser = $row['loginemail'];
>
> It works great.
>
> Any help would be really appreciated as I think it's just me missing
> some basics.
>
> Thanks
>
> Stephen
>



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




[PHP] enable/disable per directory

2003-06-30 Thread Micha Silver
Using apache 1.3.20 and php 4.0.2
Can I enable / disable posting of php scripts per directory?
i.e. no php allowd from /home//public_html

TIA

Micha Silver
Arava Development Co.
tel:  (972) 8-6592270
cellular:  (972) 5-3665918


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



RE: [PHP] enable/disable per directory

2003-06-30 Thread Micha Silver
Hello Jason:
Thanks for the quick reply...

> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 30, 2003 5:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] enable/disable per directory
> 
> 
> On Tuesday 01 July 2003 00:12, Micha Silver wrote:
> > Using apache 1.3.20 and php 4.0.2
> > Can I enable / disable posting of php scripts per directory?
> 
> Not sure what you mean by 'posting'.
> 
> If you really meant execution of php scripts then yes.

Yes, I meant executing.

> 
> > i.e. no php allowd from /home//public_html
> 
> With a standard Apache setup you have something like:
> 
>  
>AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
>AddType application/x-httpd-php-source .phps
>  


So the AddType directive can be in each  section
separately??


Thanks again.


> 
> in your default server/host section. You just have to remove 
> it and add it 
> into the  or  containers wherever 
> they're needed.
> 
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications 
> Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> If God had not given us sticky tape, it would have been 
> necessary to invent 
> it.
> */
> 
> 
> -- 
> 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