PHP Classes
elePHPant
Icontem

Instructions

Recommend this page to a friend!

      PHP SMS Authentication  >  All threads  >  Instructions  >  (Un) Subscribe thread alerts  
Subject:Instructions
Summary:Install and instructions
Messages:2
Author:david taylor
Date:2015-02-28 17:33:54
 

 


  1. Instructions   Reply   Report abuse  
david taylor - 2015-02-28 17:33:54
Hi Andy,

Are there instructions on how to install and use this?

Thanks!

  2. Re: Instructions   Reply   Report abuse  
Andy Dixon - 2015-03-14 21:26:29 - In reply to message 1 from david taylor
Hi David,

Its been a while since I looked at the code, but this should help you:

In the index.php edit these lines:

$username = "dbuser";
$password = "dbpass";
$database = "mydatabase";
$server = 'localhost';

//textlocal login details
$tl_username = "email@address.com";
$tl_password = "79dg474557";

(You'll need to signup at Textlocal - if you use http://www.textlocal.com/?tlrx=andy you should get some extra test credits)

upload everything to a web host, and upload the sql file to your MySQL database.

In the example file, change the line:

$provider = new smsAuth('1327804','parsnip123');

to be:

$provider = new smsAuth('1327804','parsnip123','http://path/to/index.php');

The first two variables are used if you want to have multiple streams of authentication - long story, but the sql has these set up to be on the safe side.

Hopefully, picking the example apart will help you understand how it all works. Any problems, give me a shout directly.. :)