Having problem with running Y! Clone..

Discussion in 'Programming' started by U R Gr8, May 24, 2010.

  1. #1
    Here is the config i am using with my server:
    <?php
    
    global $configuration;
    
    $configuration['db']	= "facebook"; 		//	database name
    $configuration['host']	= "localhost";	//	database host
    $configuration['user']	= "root";		//	database user
    $configuration['pass']	= "back";		//	database password
    $configuration['port'] 	= '3306';		//	database port
    
    $configuration['gid'] 	= 'pub-12345678912345612';		// Google Adsense ID
    $configuration['url'] 	= 'localhost/Yahoo_Answers_Clone';		// URL without www or http://
    $configuration['title'] = 'Welcome to YourSite.com';		// Page Title
    $configuration['description'] = 'Ask questions on any topic, get real answers from real people. Have a question? Ask it. Know an answer? Share it. Find and share information on Answerbag.com.'; // Meta Description
    $configuration['keywords'] = 'answer, question, faq, information, knowledge, primer'; // Meta Keywords
    $configuration['style'] = 'default.css';		// Stylesheet
    
    //print_r($configuration);
    if($HTTP_POST_VARS['language'] != 'PHP') {
    	$_SESSION['languageid'] = $HTTP_POST_VARS['language'];
    	$language_id = $_SESSION['languageid'];
    }
    
    ?>
    Code (markup):
    and here are the errors i get..
    i know it is error because of HTTP_POST_VARS but i d k what should i write in there..?

    Notice: Undefined variable: HTTP_POST_VARS in E:\wamp\www\Yahoo_Answers_Clone\includes\configuration.php on line 19
    
    Notice: Undefined variable: HTTP_POST_VARS in E:\wamp\www\Yahoo_Answers_Clone\includes\configuration.php on line 20
    
    Notice: Undefined variable: HTTP_POST_VARS in E:\wamp\www\Yahoo_Answers_Clone\index.php on line 29
       
    
    Notice: Undefined index: Password in E:\wamp\www\Yahoo_Answers_Clone\includes\left.php on line 
    Notice: Undefined index: catid in E:\wamp\www\Yahoo_Answers_Clone\includes\left.php on line 101
    
    Code (markup):
    Note that above db config is all correct but the problem is in HTTP_POST_VARS what should i write in there!@@??
     
    U R Gr8, May 24, 2010 IP
  2. U R Gr8

    U R Gr8 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    dump..
    no one knows about HTTP_POST_VARS
    I thought you guys are good programmers :mad:
     
    U R Gr8, May 26, 2010 IP
  3. U R Gr8

    U R Gr8 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i got it sorted. just uploaded to the webhosting and it worked fine no need to edit those lines xD
     
    U R Gr8, May 27, 2010 IP