Jump to content

[SOLVED] Can someone just clarify this?


adamjones

Recommended Posts

Ok.

 

So I've made a CMS, and i have an install page, with a serial number. The user is on the installer, and has to enter a valid license key to complete the installation, which are stored in my database.

 

How would I get the PHP installer file to connect to my database? Change the host from localhost to http://www.mywebsite.com ?

 

Any help would be great.

Link to comment
https://forums.phpfreaks.com/topic/128095-solved-can-someone-just-clarify-this/
Share on other sites

You wouldn't want to do it that way because it would be giving out your username/password, but you could create a script on your website that checks your database and then tells the person querying whether it is a valid license key. Of course there are drawbacks and insecurities in this method, but it's much safer than giving out your username and password to your database.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.