x10Hosting Forums

Corporate Free Hosting for the Masses.


If you are having issues with your site please read the news.

Register

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
x10Hosting Member

Join Date: Mar 2008
Posts: 30
Credits: 505
stalkio is on a distinguished road
 
07-24-2008, 05: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
Senior Moderator

LHVWB's Avatar

Join Date: Jan 2008
Posts: 1,366
Credits: 8,849
LHVWB is a jewel in the rough
Location: Australia

Send a message via MSN to LHVWB
 
07-24-2008, 05: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 online nowReport Post
x10 Lieutenant

marshian's Avatar

Join Date: Jan 2008
Posts: 363
Credits: 4,688
marshian is just really nice
Location: Belgium

Send a message via MSN to marshian
 
07-24-2008, 08: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: 24
Credits: 396
sybregunne is on a distinguished road
 
07-24-2008, 11:31 PM
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
Termination Specialist

Chris Z's Avatar

Join Date: Sep 2005
Posts: 2,655
Credits: 17,965
Chris Z is on a distinguished road
Location: Alabama, USA

 
07-24-2008, 11:40 PM
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
Account Manager
I'm back! - July 2008
Unless I've asked you to PM me, I will ignore it.
Chris Z is offlineReport Post
x10Hosting Member

Join Date: Mar 2008
Posts: 30
Credits: 505
stalkio is on a distinguished road
 
07-25-2008, 11:59 AM
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
Account Manager

TechAsh's Avatar

Join Date: Oct 2007
Posts: 2,379
Credits: 15,665
TechAsh has a reputation beyond repute
Location: UK

 
07-25-2008, 12: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 Search this Thread
Search this Thread:

Advanced Search
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 12:25 PM
install drupal abhi666 Scripts & 3rd Party Apps 4 02-18-2008 08:05 AM
trying to install phpBB3, stuck at database isntallation EAGarcia Free Hosting 1 02-11-2008 12:05 AM
FAQ Contest Corey Old Contests 41 10-16-2007 06:14 AM
PHP BB 2.0.16 Manual instalation GFIV Free Hosting 8 09-14-2005 12:40 PM


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

Mortgage Calculator | Cheap Car Insurance | Personal Loans | Credit Cards | Advertising