title: I can't access my database in localhost using xampp
body: <p>i use Xampp and its not work on port 80 so i've changed it to 8080 and now apache and mysql works fine. my problem is that when im try to access to a database that i already created on phpmyadmin it wont work!</p>
  
  <p>i use this code:</p>
  
  <pre><code>&lt;?php
  $requesturi = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  $pos = strpos($requesturi, "uni");
  
  $hostname_excal = "localhost:8080";
  $database_excal = "my_database";
  $username_excal = "root";
  $password_excal = "123456";
  
  $excal = mysql_pconnect($hostname_excal, $username_excal, $password_excal) or trigger_error(mysql_error(),E_USER_ERROR); 
  ?&gt;
  </code></pre>
  
  <p>i try localhost for hostname and it doesnt work either.</p>
  
  <p>i test this in my online host and <a href="http://blacks.ir/rest/pox/students.php" rel="nofollow">its works fine</a>. but i need this to work on localhost so i can present this in a meeting.</p>
  
  <p>help me please.</p>