Prob when i moved site to hosting web server ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ashebrian
Forum Contributor
Posts: 103
Joined: Sat Feb 02, 2008 8:01 pm

Prob when i moved site to hosting web server ??

Post by ashebrian »

c
Last edited by ashebrian on Sat Mar 01, 2008 6:07 pm, edited 1 time in total.
User avatar
hawkenterprises
Forum Commoner
Posts: 54
Joined: Thu Feb 28, 2008 9:56 pm
Location: gresham,oregon
Contact:

Re: Prob when i moved site to hosting web server ??

Post by hawkenterprises »

Let me guess you used Microsoft Frontpage to do your website.

All you source files are pointing to here

C:/Inetpub/vhosts/ealuspatherapy.com/httpdocs/ealuproducts/admin/

You need to fix the filepaths in your Frontpage
ashebrian
Forum Contributor
Posts: 103
Joined: Sat Feb 02, 2008 8:01 pm

Re: Prob when i moved site to hosting web server ??

Post by ashebrian »

your not wrong....i use dreamweaver to do my designs but the hosting web server has ms frontpage. And the file paths u mentioned
C:/Inetpub/vhosts/ealuspatherapy.com/httpdocs/ealuproducts/admin/

is a bit of a problem. Not all my pages go to here..... all my pages go to:
C:/Inetpub/vhosts/ealuspatherapy.com/httpdocs/
And all my admin side pages go to:
C:/Inetpub/vhosts/ealuspatherapy.com/httpdocs/ealuproducts/admin/
As i'm new to this and have no experience on how to change this. Can you explain where i need to fix the filepaths as the website needs to be up asap?
ashebrian
Forum Contributor
Posts: 103
Joined: Sat Feb 02, 2008 8:01 pm

Re: Prob when i moved site to hosting web server ??

Post by ashebrian »

would the problem lay ere? Ths is located in the config.php file outside the folder admin and called "library" folder. Both library and admin folders are located in the same folder.

Code: Select all

$thisFile = str_replace('\\', '/', __FILE__);
$docRoot = $_SERVER['DOCUMENT_ROOT'];
 
$webRoot  = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);
$srvRoot  = str_replace('library/config.php', '', $thisFile);
 
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Prob when i moved site to hosting web server ??

Post by alex.barylski »

What the hell is FrontPage? :P
User avatar
hawkenterprises
Forum Commoner
Posts: 54
Joined: Thu Feb 28, 2008 9:56 pm
Location: gresham,oregon
Contact:

Re: Prob when i moved site to hosting web server ??

Post by hawkenterprises »

These

C:/Inetpub/vhosts/ealuspatherapy.com/httpdocs/ealuproducts/admin/

need to be

http://somedomain.tld/admin

In other words your links need to be using a url and not a filepath. Make sense?
Post Reply