Oh boy.
Well, I'm learning mysql and JavaScript too, possibly.
I am building a website and need help, I'm going to post onto this thread with what I need help with. I hope some people will contribute. I've many questions. Right now I'm mainly only using php. I'm going to try and build an avatar system so I think that may be javascript but I'm not too sure.
So no bashing me for stupidity...
First question IS if the avatar system (A picture with other items at certain coordinates) is infact JavaScript. Then I'll look into that.
It's all very very confusing for me since I didn't even know what 'ftp' was until just recently. I don't fully understand mysql, But I'm going to look through old posts in this subforum just to see if there's anything I can learn off others' questions.
Edit:
Okay, another thing is I've two scripts running on my website right now. One a subdomain and one in sitename.com/yummy/. I'm looking through the files and noticed config.php seeming extremely necessary for the subdomain to work at all. Some other pre-made scripts had installations that would just point the information I gave it to those. Atleast one script seems to have those files. I'm suspecting this stuff can be in any type of named file as long as it's in the right directory?
Here's the stuff:
Am I supposed to know this stuff already or is $CFG->word being used somewhere else and I should make a function that is something like that once I start making one from scratch?
By the way, I decided to make my website from scratch.
Edit:
Okay, I'm thinking that anything with a '$' before it as in "$CFG->dbpersist" is equal to whatever it is after it. Well, I know that's what it is. Just... I want to know, does that work for all scripts? Or do you have to have something that says something that connects to config.php to have that $CFG->dbpersist to be an actual function?
require_once($CFG->dirroot.'lib/cache/lib.php');
I'm learning by just talking to myself. Okay, and use that site JKey gave me to figure out require_once... includes and evaluates the specific file... Hm.
Okay, I'll read through this and post my questions more neatly.
1. Does an avatar system work under JavaScript?
2. I really need a better explanation on MySql, I don't understand it. I will look into how to use it more, maybe I can figure this out.
3. Do you need to use require() (or require_once() or include()) to be able to use the $ functions from that script?
Well, I'm learning mysql and JavaScript too, possibly.
I am building a website and need help, I'm going to post onto this thread with what I need help with. I hope some people will contribute. I've many questions. Right now I'm mainly only using php. I'm going to try and build an avatar system so I think that may be javascript but I'm not too sure.
So no bashing me for stupidity...
First question IS if the avatar system (A picture with other items at certain coordinates) is infact JavaScript. Then I'll look into that.
It's all very very confusing for me since I didn't even know what 'ftp' was until just recently. I don't fully understand mysql, But I'm going to look through old posts in this subforum just to see if there's anything I can learn off others' questions.
Edit:
Okay, another thing is I've two scripts running on my website right now. One a subdomain and one in sitename.com/yummy/. I'm looking through the files and noticed config.php seeming extremely necessary for the subdomain to work at all. Some other pre-made scripts had installations that would just point the information I gave it to those. Atleast one script seems to have those files. I'm suspecting this stuff can be in any type of named file as long as it's in the right directory?
Here's the stuff:
Code:
<?php
$CFG->sitename = 'Yukapoko';
$CFG->tagline = '';
$CFG->wwwroot = 'http://town.website.com/';
$CFG->dirroot=$_SERVER['DOCUMENT_ROOT'].'/';
$CFG->sysadminemail = '[email protected]';
$CFG->newsinitialpassword = 'EDITED';
$CFG->defaultlocale = 'en_GB';
$CFG->publicreg = true;
$CFG->publicinvite = true;
$CFG->maxusers = 0;
$CFG->walledgarden = 0;
$CFG->emailfilter = "";
$CFG->default_access = "LOGGED_IN";
$CFG->disable_publiccomments = true;
$CFG->dataroot='/home2/yukapok/public_html/data/';
//$CFG->directorypermissions = 0777;
//$CFG->filepermissions = 0666;
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbuser = 'EDITED';
$CFG->dbpass = 'EDITED';
$CFG->dbname = 'EDITED';
$CFG->dbpersist = false;
By the way, I decided to make my website from scratch.
Edit:
Okay, I'm thinking that anything with a '$' before it as in "$CFG->dbpersist" is equal to whatever it is after it. Well, I know that's what it is. Just... I want to know, does that work for all scripts? Or do you have to have something that says something that connects to config.php to have that $CFG->dbpersist to be an actual function?
require_once($CFG->dirroot.'lib/cache/lib.php');
I'm learning by just talking to myself. Okay, and use that site JKey gave me to figure out require_once... includes and evaluates the specific file... Hm.
Okay, I'll read through this and post my questions more neatly.
1. Does an avatar system work under JavaScript?
2. I really need a better explanation on MySql, I don't understand it. I will look into how to use it more, maybe I can figure this out.
3. Do you need to use require() (or require_once() or include()) to be able to use the $ functions from that script?


Comment