Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
from localhost to remote problem
Old 12-08-2006, 09:59 AM from localhost to remote problem
Average Talker

Posts: 24
Name: martin jarvis
Trades: 0
Hi guys im building a website (slowly of course..as im taking a bit of a leap into database's), any way im in a bit of a quandry and hitting a brick wall, heres whats happening

1) i have to use phpmyadmin and MySQL on Localhost as the host im using wont allow direct connections to the one provided for me with my web account..

2) So im building the database on localhost and working in php through dreamweaver and everything is going great, i view my pages, click my links, register, go to my thankyou page, recieve my welcome emails etc and can see in the MySQL database that everything has gone fine..

3) heres what happens next, i upload my database .SQL to my Remote MySQL database, upload my web pages by FTP to my site, then when i test it, i just get my homepage, i click a link to register and get nothing except an error which is.....
Quote:
Warning: main(../Connections/ukkiss.php) [function.main]: failed to open stream: No such file or directory in /websites/LinuxPackage02/uk/_k/is/uk-kiss.com/public_html/registration.php on line 1
4) do i need to edit anyfiles that im uploading to my remote to show a path to my database,,its the only thing i can think of..

can anyone try and explain where im going wrong?.. i've tried to keep it as simple as i can for you.. fingers crossed..HB
hugoboss is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2007, 08:50 AM Re: from localhost to remote problem
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
From the error message, it seems there is an relative path to access an included file
Code:
../Connections/ukkiss.php)
Check that there is a directory named "Connections" with the file ukkiss.php at the same level than the directory you have uploaded your script.

Code:
/ (public_html)
¦
¦-->Connections
¦            ¦
¦            ¦-->ukkiss.php
¦
¦-->test
      ¦        
      ¦-->registration.php
PS
By checking more your error message, it looks like your file is in ths web server root level (public_html).
Then, your problem is that the include try to look or the file on the wrong place.

Try to include your files that way:
PHP Code:
require_once($_SERVER['DOCUMENT_ROOT']."/Connections/ukkiss.php"); 
That should solve your problem, and allow to move your script anywhere in the site without having to modify the include or require statement
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-07-2007, 11:56 AM Re: from localhost to remote problem
Average Talker

Posts: 24
Name: martin jarvis
Trades: 0
sorry about this.i never updated this post, i got it solved eventually, after numerous emails bouncing back and forth between myself and pipex i finally managed to get intouch with someone who knows his job, i had to edit the ukkiss.php (ie change it from localhost to a "name" that pipex use, which they dont tell you about, strange that isnt it)
__________________

Please login or register to view this content. Registration is FREE


hugoboss is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to from localhost to remote problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12095 seconds with 12 queries