/ Forside / Teknologi / Udvikling / PHP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
PHP
#NavnPoint
rfh 3959
natmaden 3372
poul_from 3310
funbreak 2700
stone47 2230
Jin2k 1960
Angband 1743
Bjerner 1249
refi 1185
10  Interkril.. 1146
pMachine - guide please
Fra : Bo Jørgensen


Dato : 02-08-04 15:12

Hejsa
Er der nogen her, der har tjeck på pMachine og som har prøvet den på et
www.tiscali.dk webhotel ?

Kender desværre ikke meget til PHP og MYSQL

Hvad skal jeg f.eks ændre i nedenstående config? Det er vist kun de 5 første
variabler der skal ændres (i første omgang)

Mvh. Bo


<?php

// Version 2.3 (Free2.3.019)

// DATABASE VARIABLES
// If you do not know what these values should be, please contact
// your hosting provider. Most problems occur as a result of
// an error in this file.


// MYSQL SERVER ADDRESS
// Usually this is the name of your domain (www.yoursite.com).
// In some cases the hostname will instead be "localhost".
$hostname = "localhost";


// MySQL USERNAME
// This is the username you use to access your MySQL database.
// Note: This is usually NOT the same as your FTP username.
$dbusername = "";


// MySQL PASSWORD
// The password used to access your MySQL database.
// Note: This is usually NOT the same as your FTP password.
$dbpassword = "";


// DATABASE NAME
// Some hosting providers assign you a specific database.
// If this is the case, change this variable to the name of
// the database they require, otherwise you can leave it alone.
// If you are not using an existing database you might have
// to create the database prior to installing pMachine.
$dbname = "pmachine";


// DEFAULT LANGUAGE OPTION
// This variable determines the default language used in the control panel.
// Language packs can be downloaded at pMachine.com. You can override the
// default language on a per-login basis if you have more than one language
// pack installed.
$language = "english";


// FOR ADVANCED USERS -----------------------------------------------------
// Do not mess with these variables unless you know what you are doing.

// DEBUG
// This variables turns PHP and MySQL error message on or off for
// debugging purposes. It is recommended that you leave debug on during
// development only - not with a "live" site, due to security issues.
// 1 = on
// 0 = off
$debug = 0;


// AUTO XHTML
// Normally, any line breaks (carriage returns) contained in your weblog
// entires will automatically be turned into <br /> tags. The variable
// changes that feature into into an "Auto XHTML" feature. pMachine
// will then use <p></p> tags as well as other XHTML validated characters,
// like curly quotes, turning your weblog entries into typographically
sound,
// XHTML validated text.
// 1 = on
// 0 = off
$auto_xhtml = 0;



// URL REWRITING ------------------------------------------------------
// This variable turns on the search-engine friendly URL feature.
// This feature only works on Apache servers with the mod_mime module.
// In addition to setting this variable, several other steps must
// be taken. PLEASE CONSULT THE MANUAL BEFORE USING THIS FEATURE.
// 1 = on
// 0 = off
$url_rewriting = 0;




// PINGBACK/TRACKBACK SERVER
URL -----------------------------------------------------
// In order to use the Pingback feature you must indicate the full URL
// to the file called "pingserver.php"
(http://www.yoursite.com/pingserver.php)
$pingserver_path = "";



// DATABASE SETTINGS -----------------------------------------------------


// DATABASE
// mysql is the only supported database at this time.
$database = "mysql";


// DATABASE TABLE PREFIX
// Change this if you want the database tables to be installed
// with a different prefix.
$dbprefix = "pm";


// DATABASE CONNECTION TYPE
// 0 = non-persistent
// 1 = persistent (generally faster)
$conntype = 1;


// IMAGE UPLOAD METHOD -----------------------------------------------------
// This variable determines which method pMachine uses to upload images.
// 1 = Default method. Recommended for newer versions of PHP, especially
with
// register_globals = off
// 2 = Works with older versions of PHP (uses "copy" method).
// 3 = Works with older versions of PHP (uses "move_uploaded_file" method).
$upload_method = 1;



// HEADER REDIRECT -----------------------------------------------------
// Alternate header redirect. Some NT servers
// have difficulty setting cookies when the standard php header
// redirect (header("location:x.php");) is used. This variable allows
// you to use the slower "meta tag refresh" method which has proven to be
more
// reliable for those servers with problems setting cookies.
$redirect_method = 0;


// COOKIE DOMAIN -----------------------------------------------------
// In most cases you will not need to specify a default cookie domain.
// However, if you want the cookies recognized across your entire domain,
// or limited to a specific domain, you will need to specify the domain.
// Note: The most common way to set a cookie domain is to use:
..yourdomain.com
// Make sure and leave a period in front. For example, if your
// site is at www.yoursite.com, you will use: .yoursite.com
$cookie_domain = "";


// SESSION ID OPTION -----------------------------------------------------
// Cookies are used in the control panel by default. Query string
// session ID's can be used instead, by setting this variable to 1
// rather than 0.
$use_session_id = 0;


// OPEN_BASEDIR
RESTRICTION -----------------------------------------------------
// If your php configuration has an "open_basedir" restriction
// change this variable to "1".
$open_basedir = 0;


// If you set the previous variable to "1", this is the name of
// your "members" directory.
$obd_memdir = "./members/";


// BLOG ACCESS
ARRAY -------------------------------------------------------------
// For admin level's 1 and 2. Allows them the ability to post to more than
one weblog.
// On the left side you will enter the username of each person you want to
// hacve access to more than one weblog. On the right side "array" you will
// put the name of each weblog that you want the user to be able to access.
// Please pay close attention to the formatting before proceeding.
// Each item in the array must be in quotes and a commma must separate each
item.
// In addition, each set must have a comma after it, except the last one.

// EXAMPLE
// (Note: you must remove the comments to us this. Be careful!)

/*

$blogaccess = array(

"joe" => array('weblog', 'news', 'politics'),
"Nancy" => array('news', 'politics'),
"Fred" => array('sports', 'weblog'),
"John" => array('weblog')

);
*/

?>






 
 
Christian Joergensen (03-08-2004)
Kommentar
Fra : Christian Joergensen


Dato : 03-08-04 09:39

On Mon, 02 Aug 2004 16:11:39 +0200, Bo Jørgensen wrote:

[...]

> Hvad skal jeg f.eks ændre i nedenstående config? Det er vist kun de 5 første
> variabler der skal ændres (i første omgang)

Saa maa du jo goere det?

Hvad er problemet?

--
Christian Jørgensen | Never make any mistaeks.
http://www.razor.dk |


Bo Jørgensen (03-08-2004)
Kommentar
Fra : Bo Jørgensen


Dato : 03-08-04 15:36

> Saa maa du jo goere det?

Nååå ja - klart nok

> Hvad er problemet?

at jeg ikke ved hvordan man sætter det op

/Bo



Ulrik Nielsen (03-08-2004)
Kommentar
Fra : Ulrik Nielsen


Dato : 03-08-04 16:28

Bo Jørgensen wrote:
> at jeg ikke ved hvordan man sætter det op

http://www.pmachine.com/expressionengine/docs/


--
ulrik nielsen
----------------------------------------------------------------------
excuse of the day : That function is not currently supported, but Bill
: Gates assures us it will be featured in the next
from bofh : http://www.cs.wisc.edu/~ballard/bofh/

Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408527
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste