[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

how to move copy duplicate a php mysql iis website from one server to another

Asked by Biditup in PHP for Windows, PHP and Databases, MySQL Server

Tags: iis php mysql, php, iss6, my sql db, iis php mysql, IE6 and 7

I have a php, mysql website running on server 2k3 with iis, that i need to copy or duplicate to another server. I have created the 2k3 server and have installed php and my sql and iis configuration. i did a restore of the mysql db into the new mysql and i can see with show databases command. also php seem to be working correctly because i get the phpinfo.php in browser. So then I copied the inetpub folder that has all the .php files from the original working site into the new inetpub folder. When i go to one of the php files with a browser i just get a bunch on mumbo jubo code. Attached is the output from ie. im thinking that somehow that php isnt connecting with that mysql database, and im not sure how to get the php to talk that mysql db that i restored like it does on the real site. I dont know php or mysql so i could be completly wrong. Please help!!!
1:
2:
3:
4:
5:
6:
7:
0) { //echo "ECHO
"; for ($idx=0;$idx<$depth;$idx++){ $padding .="   "; } $depth++; if ($change_color) $tr_bgcolor = "#EFEFEF"; else $tr_bgcolor = "#FFFFFF"; while($db_rs = mysql_fetch_array($dbresult)) { //$ret_val .="\n"; $ret_val .=" \n"; for ($idx=0;$idx<=$dbrcount;$idx++) { if ($idx==$db_rs["rank"]) $isSelected = 'selected'; else $isSelected = ' '; $ret_val .="".$idx."\n"; } $ret_val .=" ".$db_rs["name"]."\n"; $ret_val .="\n"; $ret_val .=" \n"; //echo "is_general *".$db_rs["is_general"]."*
"; if ($db_rs["is_general"]=="true") { $tmp_axn = "false"; $prefix = ""; $alt_txt = "\ UNSET this field as a GENERAL SPECIFICATION"; } else { $tmp_axn = "true"; $prefix = "un"; $alt_txt = "\ SET this field as a GENERAL SPECIFICATION"; } $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .=" \n"; $ret_val .=" 
\n"; //$ret_val .=" \n"; //if ($parent_id!=$db_rs["id"]) //$depth++; $ret_val .= recurse_prod_fields_cms($db_rs["id"], $sModule, $depth, !$change_color, $highlight_color, $select_color); } } return $ret_val; } //********************************************* RECURSE PRODUCT FIELDS == FOR MAIN PAGE function recurse_prod_fields_pub($parent_id,$script_name, $depth) { $db_sql = "SELECT * FROM tshopcart_catalogfields where rank<>0 and parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "*$dbrcount*"; //die(); //********************************************* RECURSE RECORDS if ($dbrcount>0) { for ($idx=0;$idx<$depth;$idx++){ $padding .="    "; } $depth++; while($db_rs = mysql_fetch_array($dbresult)) { $ret_val .= "\n"; $ret_val .= "".$padding."".$db_rs["name"]."\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= recurse_prod_fields_pub($db_rs["id"],$script_name, $depth); } } return $ret_val; } //********************************************* RECURSE CATEGORIES == FOR CMS function recurse_categories_cms($parent_id,$sModule, $depth, $change_color, $highlight_color, $select_color) { $db_sql = "SELECT * FROM tshopcart_categories where parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "db_sql *$db_sql*
"; //echo "dbrcount *$dbrcount*
"; //********************************************* RECURSE RECORDS if ($dbrcount>0) { //echo "ECHO
"; for ($idx=0;$idx<$depth;$idx++){ $padding .="   "; } $depth++; if ($change_color) $tr_bgcolor = "#EFEFEF"; else $tr_bgcolor = "#FFFFFF"; while($db_rs = mysql_fetch_array($dbresult)) { $ret_val .="\n"; for ($idx=0;$idx<=$dbrcount;$idx++) { if ($idx==$db_rs["rank"]) $isSelected = 'selected'; else $isSelected = ' '; $ret_val .="".$idx."\n"; } $ret_val .=" ".$db_rs["name"]."\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; $ret_val .="\n"; //if ($parent_id!=$db_rs["id"]) //$depth++; $ret_val .= recurse_categories_cms($db_rs["id"], $sModule, $depth, !$change_color, $highlight_color, $select_color); } } return $ret_val; } //********************************************* RECURSE CATEGORIES == FOR MAIN PAGE function recurse_categories_pub($parent_id,$script_name, $depth) { $db_sql = "SELECT * FROM tshopcart_categories where rank<>0 and parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "*$dbrcount*"; //die(); //********************************************* RECURSE RECORDS if ($dbrcount>0) { for ($idx=0;$idx<$depth;$idx++){ $padding .="    "; } $depth++; while($db_rs = mysql_fetch_array($dbresult)) { $ret_val .= "\n"; $ret_val .= "".$padding."".$db_rs["name"]."\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= "\n"; $ret_val .= recurse_categories_pub($db_rs["id"],$script_name, $depth); } } return $ret_val; } //********************************************* RECURSE RECORDS == FOR CMS function recurse_aboutus_cms($parent_id,$sModule, $depth, $change_color, $highlight_color, $select_color) { $db_sql = "SELECT * FROM taboutus where parent=".$parent_id." order by rank"; $dbresult = mysql_query($db_sql); $dbrcount = mysql_num_rows($dbresult); //echo "db_sql
[+][-]08/13/08 01:21 PM, ID: 22225236Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: PHP for Windows, PHP and Databases, MySQL Server
Tags: iis php mysql, php, iss6, my sql db, iis php mysql, IE6 and 7
Sign Up Now!
Solution Provided By: jausions
Participating Experts: 2
Solution Grade: B
 
[+][-]08/13/08 11:50 AM, ID: 22224449Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/13/08 01:06 PM, ID: 22225090Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/13/08 02:23 PM, ID: 22225754Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/13/08 02:27 PM, ID: 22225786Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/13/08 02:38 PM, ID: 22225863Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/13/08 03:01 PM, ID: 22226010Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/14/08 05:01 PM, ID: 22235228Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/14/08 07:50 PM, ID: 22235718Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/10/08 12:27 PM, ID: 22442004Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 / EE_QW_2_20070628