RSS Atyafonline Group Twitter Facebook YouTube Follow Us On Email Subscription Call Me by Skype
+ الرد على الموضوع
النتائج 1 إلى 1 من 1
  1. #1
    تاريخ التسجيل
    Jun 2007
    المشاركات
    8,516
    Thanks
    5
    Thanked 0 Times in 0 Posts
    معدل تقييم المستوى
    10

    Post How to Pass user authentication information from htaccess/htpasswd to PHP

    Passing user authentication information to PHP




    The best way to protect your directory is with htaccess/htpasswd protection. But you may also want to pass the user information to your php scripts so you can do custom processing based on who logged in. You can retrieve the current authenticated user with one php line. Put this in the target script in the protected directory (used in the script after authentication).

    You can download this script as a .txt file. Remember to rename the file as a .php file.



    كود PHP:

      - - Start Script Here - -
     <?php 
    $user 
    $_SERVER['REMOTE_USER']; 
    ?>  
    - - End Script Here - -
    الملفات المرفقة
    التعديل الأخير تم بواسطة bahattab ; 05-12-2009 الساعة 08:06 PM
    --------------------------------------


    نشكركم لمشاركتكم في المنتدى


    تحياتي



    Andalusia Spectrum's.

    Jeddah - Saudi Arabia




  2. Adds Circuit advertisement
    تاريخ التسجيل
    Always
    المشاركات
    Many


الكلمات الدلالية لهذا الموضوع

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك

احصائيات الاسرار السبعة

Page Ranking Tool