PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > OT: Is PHP the way to do this?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
OT: Is PHP the way to do this?

Réponse
 
LinkBack Outils de la discussion
Vieux 10/08/2007, 09h38   #1
Jim
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut OT: Is PHP the way to do this?

I use apache and .htpassw files to create secure folders for my customers
to access/view.

The problem with this is i have to keep giving out new url's for each
customer

example:

mydomainname .com/customer1/
mydomainname .com/customer2/
mydomainname .com/customer3/
mydomainname .com/customer4/
etc

Can anyone suggest what woud be the best way to create a central screen
login where they enter
the username and password on the home page.

mydomainname .com

and then depending on their username and pass it takes them to the correct
folders.

I only have a general knowledge about such things therefore I would very
much appreciate some advice if anyone understands what I am trying to do.
Is php the way to do this?

Thanks in advance for anyone that can reply

Jim



  Réponse avec citation
Vieux 10/08/2007, 14h08   #2
Rik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT: Is PHP the way to do this?

On Fri, 10 Aug 2007 10:38:53 +0200, Jim <me@privacy.net> wrote:

> I use apache and .htpassw files to create secure folders for my
> customers
> to access/view.
>
> The problem with this is i have to keep giving out new url's for each
> customer
>
> example:
>
> mydomainname .com/customer1/
> mydomainname .com/customer2/
> mydomainname .com/customer3/
> mydomainname .com/customer4/
> etc
>
> Can anyone suggest what woud be the best way to create a central screen
> login where they enter
> the username and password on the home page.
>
> mydomainname .com
>
> and then depending on their username and pass it takes them to the
> correct
> folders.
>
> I only have a general knowledge about such things therefore I would very
> much appreciate some advice if anyone understands what I am trying to do.
> Is php the way to do this?


Does this ?
<http://www.php.net/manual/en/features.http-auth.php>

Possibly also use sessions and/or take advantage of Apache's mod_rewrite.
--
Rik Wasmus
  Réponse avec citation
Vieux 10/08/2007, 19h15   #3
Jim
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT: Is PHP the way to do this?


"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
newsp.twuhgoykqnv3q9@metallium...
> On Fri, 10 Aug 2007 10:38:53 +0200, Jim <me@privacy.net> wrote:
>
>> I use apache and .htpassw files to create secure folders for my
>> customers
>> to access/view.
>>
>> The problem with this is i have to keep giving out new url's for each
>> customer
>>
>> example:
>>
>> mydomainname .com/customer1/
>> mydomainname .com/customer2/
>> mydomainname .com/customer3/
>> mydomainname .com/customer4/
>> etc
>>
>> Can anyone suggest what woud be the best way to create a central screen
>> login where they enter
>> the username and password on the home page.
>>
>> mydomainname .com
>>
>> and then depending on their username and pass it takes them to the
>> correct
>> folders.
>>
>> I only have a general knowledge about such things therefore I would very
>> much appreciate some advice if anyone understands what I am trying to do.
>> Is php the way to do this?

>
> Does this ?
> <http://www.php.net/manual/en/features.http-auth.php>
>
> Possibly also use sessions and/or take advantage of Apache's mod_rewrite.
> --
> Rik Wasmus


HI
This appears to work into the same way to my current method with a popup
window username and pass box.
I am trying to create a username/passord box within the webpage like you see
on so many sites, i.e.not a popup


  Réponse avec citation
Vieux 12/08/2007, 15h12   #4
Julien Plée
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT: Is PHP the way to do this?

Le Fri, 10 Aug 2007 09:38:53 +0100, Jim a écritÂ:

> I use apache and .htpassw files to create secure folders for my
> customers to access/view.
>
> The problem with this is i have to keep giving out new url's for each
> customer
>
> example:
>
> mydomainname .com/customer1/
> mydomainname .com/customer2/
> mydomainname .com/customer3/
> mydomainname .com/customer4/
> etc
>
> Can anyone suggest what woud be the best way to create a central screen
> login where they enter
> the username and password on the home page.
>
> mydomainname .com
>
> and then depending on their username and pass it takes them to the
> correct folders.
>
> I only have a general knowledge about such things therefore I would very
> much appreciate some advice if anyone understands what I am trying to
> do. Is php the way to do this?
>
> Thanks in advance for anyone that can reply
>
> Jim


Helo Jim,

If you don't want to use HTTP-Authentication, then you MUST manage
everything your users can do with a server side script (in PHP/PERL/
Python/C... what ever you want and made available by your hosting
provider)
If users folders are just directory containing listed files, then you MAY
keep your current loggin system. Meanwhile, you can create a server side
script to manage new accounts actions (creating users directory skeleton,
adding username/password to .htpasswd, informing users about their
personnal URL on your server...).

The advice we'll be able to provide mainly depends on what you have and
what you want. I guess I'm out of ideas with the current details.


Julien
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h11.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11595 seconds with 12 queries