Portal Home > Knowledgebase > Articles Database > Need help install a simple script - newbie
Need help install a simple script - newbie
Posted by jimmy2guns, 02-28-2008, 02:36 PM |
I have a simple script i would like to install but i never installed a script i uploaded all the file/folders on my server.
here is what my script came with:
Install
-------
- Open config.php and change parameters: base_url, title, subtitle, lang, default_tag, default, service, menu_tags
- Upload all files to your server
------------------
i did upload the files - but i dont know how to change the parameters correctly..
here is what the config.php file looks like..
////////// CONFIGURATION //////////
define('BASE_URL', 'http://localhost/'); //ex: http://www.yourdomain.com/ or http://www.yourdomain.com/folder/
define('TITLE', 'Free PHP Video Search');
define('SUBTITLE', 'Best videos');
define('LANG', 'en'); // support: en, es
define('DEFAULT_TAG', 'humor');
define('DEFAULT_SERVICE', 'youtube');
// Tags menu left
$MENU_TAGS = array('Music', 'Humor', 'Films', 'Videogames', 'Sports', 'Cars', 'Entertainment');
// Supported video services
$webs = array('youtube', 'metacafe', 'dailymotion', 'revver');
///////////////////////////////////
include('functions.php');
include('lang.php');
?>
-----------------------
Can someone explain this to me in a baby step language as this is my first time doing this... Thank you in advance..
maybe give me an example on how to do this would be better?? or example steps?
im a newbie thank you guys...
|
Posted by awatson, 02-28-2008, 03:31 PM |
Edit the file and change the parts in the single quotes to what you want them to be, i.e. change 'http://localhost/' to 'http://www.yoursite.com' (whatever your site's URL is) - same for all the lines that start with "define". Then upload it to the server and see if the script works how you want...
|
Posted by jimmy2guns, 02-28-2008, 04:21 PM |
Dont understand still ,,,
|
Posted by orbitz, 02-28-2008, 05:56 PM |
maybe one step at a time:
change this: define('BASE_URL', 'http://localhost/');
to: define('BASE_URL', 'http://www.YourWebsiteName.com/');
// change YourWebsiteName to whatever the name of your website is.
|
Add to Favourites Print this Article
Also Read