Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 16th January 2012, 08:23
dme1409 dme1409 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to dme1409
Default Php include files

Hi

if i use include ("include/db_connect.php");

and my include/db_connect.php file looks like this .

<?
$connection = mysql_connect("localhost", "mysqluser", "mysqlpassword") or die ("Couldn't connect to the server");
$db = mysql_select_db("mysqldb", $connection) or die ("Couldn't select database");
?>
<?

My page return the following

Access denied for user 'mysqluser'@'localhost' (using password: NO)

However if I add the contentent to the php file itself it does work.

any ideas

c
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
inclue files, mysql, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
issues in /var/log/apache2/error.log denpark Installation/Configuration 1 22nd November 2011 09:12
Ubuntu 10.04 VS ISPConfig 2.2.37 Bicet Installation/Configuration 7 9th March 2011 15:58
Multiserver setup: repquota command not found. CSsab Installation/Configuration 2 27th January 2011 15:11
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 13:22
PHP code for PHPMyAdmin is not parsed parkerj Installation/Configuration 3 26th May 2009 13:40


All times are GMT +2. The time now is 03:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.