View Single Post
Old 01-11-2007, 04:06 PM  
emjay
Confirmed User
 
emjay's Avatar
 
Join Date: Dec 2004
Location: Back in Blighty
Posts: 4,277
Tech talk : how to implement Phone Billing in 10 simple steps

Implementing Phone Billing solution for your websites is very easy, simply follow the next 10 steps and you will be charging customers all over the world almost instantaneously.

The following instructions apply for any website using any other billing system auth .htaccess and .htpasswd as authentication methods on a php enabled environment. If you are managing users through mysql database or mssql under asp environment, or perl or using any other programming language you will need to resource to different instructions set.

1) Login through FTP (or SCP) to your website.

2) Find your content folder and look for a file named .htaccess (some programs require you to enter a command to view hidden files, please resource to your software help archive for this).

3) Open .htaccess file in a text editor and look for a line similar to:

AuthUserFile /home/user/somefolder/.htpasswd

The above directive points to the file which will store all usernames and passwords encrypted. You'll need to copy that file location as you'll need it for the setuser.php script for phone billing.

4) Create a new directory wherever you want that is accessible through the web, like: http://www.yourdomain.com/pbp/. Inside of it, please upload this
script:

http://www.password-by-phone.com/scripts/setuser.php

The line
$Hosts_allowed=array('213.189.25.132','213.189.25. 133','213.189.25.134','213
.189.25.135','213.189.25.136','213.189.25.140'); holds all the allowed IP addresses. To test the script manually, you'll need to add your internet IP address to this line. To find out your internet IP address you may simply go to www.whatismyip.org

5) Now in the encryption method you can just comment or uncomment as needed.
Our best advice if you are not sure what this is, is to use md5 as a encryption method as that one is most standard among different setups.

6) Now find line:

$passwdFile="/tmp/.htpasswd";

And change /tmp/.htpasswd to your file location above at AuthUserFile directive.

$passwdFile="/home/user/somefolder/.htpasswd";

7) Now simply load the url:
http://www.domain.com/pbp/setuser.ph...er&password=so
mepassword

This should give you an OK message and add the user to your allowed member area. If you get an error, you might have some permission settings wrong on your server, for this, contact your webhost or tech support.

8) Use the same username and password as above and try to login to your member area, if all went well with the user addition, you will be able to login there.

9) Now execute this url:
http://www.domain.com/pbp/setuser.ph...euser&password
=somepassword

This should remove the new user from your allowed access users.

10) Clean your IP from the setuser.php file and send an email to [email protected] with your:

1) script location
2) member area URL
3) and your pbp-id

and we will setup and configure a package for you and send you all the information you need to finalize the setup of our billing system on your paysites.

We suggest that you use our geo-ip payment buttons on your joinpages, and send traffic from non-cc countries straight to your own international page using http://www.webpinaccess.com/?layout=blank, thus taking your brand global with new revenue stream as well.
__________________
I Run 500+ WhatsApp Groups. The Zuck Owns Me
www.emjayconsultancy.com
emjay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote