I’m installing a script called “Simple Member” on my subdomain on awardspace.com, I don’t know how to do the MYSQL things.
Here’s the config part:
#########################################################
# Simple Member #
#########################################################
# #
# Created by: Doni Ronquillo #
# #
# This script and all included functions, images, #
# and documentation are copyright 2003 #
# free-php.net (http://free-php.net) unless #
# otherwise stated in the module. #
# #
# Any copying, distribution, modification with #
# intent to distribute as new code will result #
# in immediate loss of your rights to use this #
# program as well as possible legal action. #
# #
#########################################################
define("SCRIPTNAME","Simple Member");
define("BASEHREF","http://www.free-php.net/demo/SimpleMember");
define("DOMAIN","localhost");
define("FROMEMAIL","drunkenmenace@gmail.com");
define("SITENAME","Free-Php.net");
define("INC_DIR","/home/www/codemunkyx/www/www.free-php.net/htdocs/demo/SimpleMember/inc/");
define("PAG_DIR",INC_DIR."pages/");
define("INC_DB",INC_DIR."db.php");
define("MYSQLUSER",""); // mysql username
define("MYSQLPASS",""); // mysql password
define("MYSQLDB",""); // mysql database name
require(INC_DB);
?>
My host is awardspace.com, my username is annryll6696, my MYSQL username and DB is annryll6696_4ev
Can you show me how the script is supposed to look with all my info in it?
Email me for more info or to tell me:
annryll@aol.com
[edit]
Yahoo messes up the code, plz email me! annryll@aol.com
[/edit]


1 Comment to 'How can I install php scripts on my site?'
July 30, 2010
Dear annryll,
The hard part about trying to explain this is that it depends on the amount of automation the script has. Some scripts are totally automatic. You just upload the files and run a file called “install.php” and you really don’t have to do anything. Other scripts make you create a database and user, then fill in a file like the one you have here, plus sometimes a couple of other files.
Most scripts come with a text file that explains how to do the installation. Look for a txt file that says something like “installation instructions” or just “instructions” and open it in notepad (or wordpad if it’s all jumbled).
It’s not terribly difficult, but you kind of need to know what you’re doing.
SCRIPTNAME- can be whatever you want, just put it between the quotation marks.
BASEHREF- is your web address
DOMAIN - you can probably leave as is
FROMEMAIL - just put your email between the quotes
SITENAME - put the name of your website between the quotes
INC_DIR - is the path to your space on the hosting account- in some cPanels it’s there for you, but on others you have to call the hosting company
PAGE_DIR - looks like you can leave alone
INC_DB - leave alone
MYSQLUSER - would be your mysql user name with some prefix (again it might be in the cPanel or you might have to call the hosting co.)
MYSQLPASS - will be whatever password you chose for the database
MYSQLDB - will be the name you chose for the database with some prefix that the host attaches
If none of this makes any sense to you then my best advice would be to pay someone to install for you and you can use the information in this file for future reference.
p.s. it sounds like you know how to create a database and that’s the hardest part generally.