x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Closed Thread
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Mar 2008
Posts: 44
Credits: 681
stalkio is on a distinguished road
 
07-24-2008, 06:36 AM
database failure

I have created a search page and made the action to go to my results page, but on testing this in the browser the results page is unable to function reading:

Warning: require_once(Connections/dic3.php) [function.require-once]: failed to open stream: No such file or directory in /home/stalkio/public_html/results2.php on line 1

Fatal error: require_once() [function.require]: Failed opening required 'Connections/dic3.php' (include_path='.:/x10hosting/php2/pear/PEAR') in /home/stalkio/public_html/results2.php on line 1

I don't know how to solve this problem to test if it works, has someone experienced this?
stalkio is offlineReport Post
Lord Of The Keys

LHVWB's Avatar

Join Date: Jan 2008
Posts: 1,280
Credits: 9,230
LHVWB is a jewel in the rough
Location: Australia

Send a message via MSN to LHVWB
 
07-24-2008, 06:42 AM
Re: database failure

That is a classic file not found error with php, make sure that the correct location for that file has been given to the require_once() function.

Remember that you should probably give it a location starting with the server root, or a '/'. So something like 'require_once("/home/stalkio/public_html/Connections/dic3.php");', should work.
LHVWB is offlineReport Post
x10 Lieutenant

marshian's Avatar

Join Date: Jan 2008
Posts: 392
Credits: 4,983
marshian is a glorious beacon of light
Location: Belgium

Send a message via MSN to marshian
 
07-24-2008, 09:55 AM
Re: database failure

Remember if the url you provide starts with / it's considerred to be the server root, while any other charachter is the active directory
__________________
If this post was helpful, click on the or donate me credits ^^
marshian is offlineReport Post
x10Hosting Member

Join Date: Feb 2008
Posts: 35
Credits: 54
sybregunne is on a distinguished road
 
07-25-2008, 12:31 AM
Re: database failure

Even "../" will work fine.

eg.

Home
+----pictures
|
+----scripts

your file inside scripts folder can have a
PHP Code:
include "../pictures/random_nude_pix_album.php"
it will work.

another thing to note is x10hosting is files and directories are case sensitive.
sybregunne is offlineReport Post
x10 Spammer

Chris Z's Avatar

Join Date: Sep 2005
Posts: 2,760
Credits: 1,796
Chris Z is on a distinguished road
Location: Alabama, USA

 
07-25-2008, 12:40 AM
Re: database failure

Hopefully you wouldn't have a Random Nude Pix Album on x10's servers though, as that'd of course be against our Terms of Service.
__________________
-Chris Z
I'm no longer an Account Manager, so especially don't contact me with any issues.
Chris Z is offlineReport Post
x10Hosting Member

Join Date: Mar 2008
Posts: 44
Credits: 681
stalkio is on a distinguished road
 
07-25-2008, 12:59 PM
Re: database failure

just to say thanks for your replies - the problem was embarrassingly simple for anyone who gets the same problem = the database I was attempting to use wasn't uploaded to the remote server - I did so in a file named 'connections'.
stalkio is offlineReport Post
Senior Account Manager

TechAsh's Avatar

Join Date: Oct 2007
Posts: 5,235
Credits: 22,299
TechAsh has a reputation beyond repute
Location: UK

 
07-25-2008, 01:05 PM
Re: database failure

Since this has been solved I'm going to close it.

*Closed*
__________________
My Website - Earthtime Games is worth
TechAsh is offlineReport Post
Closed Thread

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create MySQL database and user Jesse Tutorials 11 06-04-2008 01:25 PM
install drupal abhi666 Scripts & 3rd Party Apps 4 02-18-2008 09:05 AM
trying to install phpBB3, stuck at database isntallation EAGarcia Free Hosting 1 02-11-2008 01:05 AM
FAQ Contest Corey Old Contests 41 10-16-2007 07:14 AM
PHP BB 2.0.16 Manual instalation GFIV Free Hosting 8 09-14-2005 01:40 PM


All times are GMT -5. The time now is 07:29 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Cheap Loan | Mortgage Loans | Remortgages | Personal Car Finance | Bad Credit Mortgages