fopen() und .htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • fopen() und .htaccess

    Hi, ich brauche eine möglichkeit, mit einem PHP-Script einen Einstrag in ide .htpasswd Datei zu schreiben also

    $username.":".$password

    Nur wie geht dass?

    Micronax

  • #2
    ....
    PHP Code:
    $strFile "./.htpasswd";
    if ( 
    is_file($strFile) )
    {
      
    $fp fopen($strFile'a');
      if ( 
    $fp )
      {
          
    fputs($fp"user:\pass");
        
    fclose($fp);
      }

    Last edited by reallife; 18-03-2006, 16:33.

    Comment


    • #3
      Danke, es funktioniert

      Micronax
      Last edited by ; 18-03-2006, 17:06.

      Comment

      Working...
      X