PDA

View Full Version : Local testing login and registration pages


sunsabbath76401977
02-22-2011, 12:51 PM
Hi,
I there anyone who can help with my local testing server as it will not open stream.

Warning: require_once(Connections/db345740447.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\pizzapal.co.uk\users_LogIn.php on line 2

Fatal error: require_once() [function.require]: Failed opening required 'Connections/db345740447.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\pizzapal.co.uk\users_LogIn.php on line 2

I do not know what a stream is?
Same thing happens on the registration page.

Warning: require_once(Connections/db345740447.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\pizzapal.co.uk\users_Registration. php on line 1

Fatal error: require_once() [function.require]: Failed opening required 'Connections/db345740447.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\pizzapal.co.uk\users_Registration. php on line 1

Is this problem connected to the connections folder, file in Dreamweaver?
Got to go out now, so any reply will be in an hour.
Thanks for reading
Sabby76

Jason Byrnes
02-22-2011, 01:26 PM
the error is saying that it cannot opren the Connections/db345740447.php file

send a copy of the users_LogIn.php file so i can look at the code.


it looks like it is trying to locate the connections file at:
C:\xampp\htdocs\pizzapal.co.uk\Connections\db34574 0447.php

Does that file exist at that location?

sunsabbath76401977
02-22-2011, 01:51 PM
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_local = "localhost";
$database_local = "db345740447";
$username_local = "root";
$password_local = "9fk58fjk49de";
$local = mysql_pconnect($hostname_local, $username_local, $password_local) or trigger_error(mysql_error(),E_USER_ERROR);
?>

Jason Byrnes
02-22-2011, 02:02 PM
i dont need the connections file.

can you send a copy of the login page in a zip archive.


also:
it looks like it is trying to locate the connections file at:
C:\xampp\htdocs\pizzapal.co.uk\Connections\db34574 0447.php

Does that file exist at that location?

sunsabbath76401977
02-22-2011, 02:02 PM
Please see attached zip file, thank you.

Jason Byrnes
02-22-2011, 02:06 PM
you are not answering this question:
also:
it looks like it is trying to locate the connections file at:
C:\xampp\htdocs\pizzapal.co.uk\Connections\db34574 0447.php

Does that file exist at that location?
Edit/Delete Message

sunsabbath76401977
02-22-2011, 02:17 PM
Had to install winzip...
The file is called local.php in the connections folder.
I will change it over now...
Sabby76

sunsabbath76401977
02-22-2011, 02:21 PM
Thank you Jason
What ever part of XAMMP runs the file, please which part is it?
Sabby76

Jason Byrnes
02-23-2011, 08:38 AM
Create a new database connection and name it "db345740447" set it to connect to the database on your local xampp server. This is the connection name that the login page is looking for, it is giving the error because there is no connection with that name in the connections folder.