Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-inside/install/step1.php
<?php
	//STEP 1
	if($Step === 'start')
	{
?>
		<h2> Step 1 </h2>
		<p> Go into <code>pr-config</code> direcotry (inside root directory of Prsaar Colour) and open <code>config-sample.php</code>. And fill following information.
		<ol>
			<li> Name of the database host (default is localhost) </li>
			<li> Username for connecting to database server </li>
			<li> .... and Password </li>
			<li> Database name (must already exist) </li>
			<li> Table prefix for Prsaar Colour Tables </li>
			<li> Prsaar Colour Address (Full URL) </li>
		</ol>
		</p>
		<p>
		<b>Save this File as <code>config.php</code> and click &raquo; Continue.</b>
		</p>
		<form action="index.php?check=config_file" method="post">
<?php
		if($Check === 'config_file')
		{
			if(!file_exists('./pr-config/config.php'))
			{
?>
				<div class="error"> <h2> File <code>config.php</code> doesnot exists </h2>
				File <code>config.php</code> does not exists. Please open <code>config-sample.php</code> and save it as <code>config.php</code> with above informations. </div>
<?php
			}
		}
		if(@$InstallError['connect'])
		{
?>
			<div class="error"> <h2> Can't connect to Database Server </h2>
			Prsaar Colour is unable to connect to the database server, please check if host, username, password provided for database in <code>config.php</code> are correct.
			</div>
<?php
		}
		if(@$InstallError['database'])
		{
?>
			<div class="error"> <h2> Can't select the database </h2>
			Prsaar Colour is able to connect to the database server but can't select the database. This means that Database host, username, password are correct, but the database doesn't exists. Please create a new database or provide a database name in config.php file, which already exists. <br />
			 Database name you provided &raquo; <b> <?php _P(PR_DATABASE_NAME); ?> </b>.
			 </div>
<?php
		}
		if(@$InstallError['url'])
		{
?>
			<div class="error"> <h2>Prsaar URL?</h2>
			Your Prsaar URL seems to be incorrect. <br />
			Please check your config.php file for the URL of Prsaar Colour. Alternatively you can copy the URL from below and paste it in config.php file. <br />
			URL seems to be &raquo; <b> <?php _P($PrsaarURL); ?> </b> <br />
			You provided &raquo; <b> <?php _P(PR_URL); ?> </b> <br />
			<input type="checkbox" name="url" value="ignore" /> <b> Ignore it. </b> I know what I'm doing. <br />
			</div>
<?php
		}
?>
		<input type="submit" value="Continue &raquo;" style="font-size:large;" />
		</form>
<?php
	}
?>
Return current item: Prsaar Social Networking Platform