follow us on google+ follow us feedburner


Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Relative path problem

Posted by: Tonewheel
November 08, 2013 02:29PM
Can someone help with this problem please:
I created an alias to my local site. When I view the site I have php errors such as this:

Warning: include(C:/Program Files/EasyPHP-DevServer-13.1VC9/data/localweb/../SomeFolder/SomeFile.php): failed to open stream:...

"C:/Program Files/EasyPHP-DevServer-13.1VC9/data/localweb/" is being appended to my relative paths. What is the solution to this please?

Thanks for any help.
Options: ReplyQuote
Posted by: josué
November 27, 2013 07:06PM
Cannot connect to the database server with the supplied data.

If you are not sure about what to type in, please contact your host.
Options: ReplyQuote
December 02, 2013 03:11AM
Having trouble connecting to mysql database: here is code and error:

<?php # Script 8.2 - mysqli_connect.php
// This file contains the database access information.
// This file also establishes a connection to MySQL
// and selects the database.
// Set the database access information as constants:
DEFINE ('DB_USER', 'root');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'sitevisitors');

// Make the connection:

$dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)
OR die ('Could not connect to MySQL: ' . mysqli_connect_error() );
Could not connect to MySQL: Access denied for user 'root'@'localhost' (using password: YES)
Options: ReplyQuote
Posted by: Tonewheel
December 04, 2013 01:06PM
I'm sorry, I don't understand those replies with regards to my question.

If anyone can help, let me expand on the problem a bit. I'm using relative paths that go "above" the "www" directory that the world sees. I can get this to work in easyphp by altering the configuration files, but this "hard codes" my website with easyphp. This has been fine but now I want to add a second site. I therefore need to use aliases so I can choose which site I wish to work on. Make any sence?

Many thanks,
Options: ReplyQuote

Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.