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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.