Jump to content

dev site


dguilloryjr

Recommended Posts

i am working on moving my php site from one server to another so right now i am trying to move my DEV site. you can see on www.live8081.com the php info pages shows up, but www.live8081.com/indexOLD.php shows a error...

 

anyone have any idea what that is, and how i can fix it...

 

yahoo messenger: venom2733

msn messenger [email protected]

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/
Share on other sites

Warning: main(EDIRECTORY_ROOT/layout/header.php) [function.main]: failed to open stream: No such file or directory in

 

Warning: main() [function.include]: Failed opening 'EDIRECTORY_ROOT/layout/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in

 

Fatal error: Call to undefined function: html_selectbox() in

 

Make sure you've moved ALL of the files from your old site to new (to the correct directories). That's what the error messages are about.

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241377
Share on other sites

ok can anyone tell me what the 1st one is about.

 

all the files should ne the same because i went into cpanel on the old server and did a HOME directory backup, do any of these error mean that i need to move over the files in the UPPER directory?

 

above the www folder

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241381
Share on other sites

here is the code related to the 1st error...

 

# ----------------------------------------------------------------------------------------------------

# HEADER

# ----------------------------------------------------------------------------------------------------

include(EDIRECTORY_ROOT."/layout/header.php");

 

$array = Array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');

$letterDropDown = html_selectBox("letter", $array, $array, $letter, "onchange=document.search.submit();", "class='input-dd-form-searchlisting'", "All Letters");

 

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241386
Share on other sites

# ----------------------------------------------------------------------------------------------------

# define EDIRECTORY_ROOT to set things in motion.

# ----------------------------------------------------------------------------------------------------

define(EDIRECTORY_ROOT, $_SERVER["DOCUMENT_ROOT"]);

 

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241394
Share on other sites

# ----------------------------------------------------------------------------------------------------

# define EDIRECTORY_ROOT to set things in motion.

# ----------------------------------------------------------------------------------------------------

define(EDIRECTORY_ROOT, $_SERVER["DOCUMENT_ROOT"]);

 

 

Where is that included into the page you posted earlier?

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241396
Share on other sites

This is the indexOLD.php page Well some of it...

 

 

# ----------------------------------------------------------------------------------------------------

# HEADER

# ----------------------------------------------------------------------------------------------------

include(EDIRECTORY_ROOT."/layout/header.php");

 

$array = Array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');

$letterDropDown = html_selectBox("letter", $array, $array, $letter, "onchange=document.search.submit();", "class='input-dd-form-searchlisting'", "All Letters");

 

?>

 

 

Here is the config.inc.php well some of it...

 

 

# ----------------------------------------------------------------------------------------------------

# * FILE: /conf/config.inc.php

# ----------------------------------------------------------------------------------------------------

 

# ----------------------------------------------------------------------------------------------------

# define EDIRECTORY_ROOT to set things in motion.

# ----------------------------------------------------------------------------------------------------

define(EDIRECTORY_ROOT, $_SERVER["DOCUMENT_ROOT"]);

 

 

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241397
Share on other sites

I was being sarcastic.

 

You failed to show how this line...

 

define(EDIRECTORY_ROOT, $_SERVER["DOCUMENT_ROOT"]);

 

Was being included into the file causing the error.

 

My suggestion would be to replace all instances of EDIRECTORY_ROOT with $_SERVER["DOCUMENT_ROOT"]. There is simply NO POINT in trying to redefine a global constant like you have done.

Link to comment
https://forums.phpfreaks.com/topic/49264-dev-site/#findComment-241407
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.