Advertisement

08.19.2008 at 10:35AM PDT, ID: 23660469
[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.7

Is my php script correct?  Never used this code before so not sure if I'm missing something.

Asked by finenflyin in PHP Installation, Macromedia Dreamweaver, PHP and Databases

Tags: , , ,

I am using Adobe Dreamweaver to create a .php web page for a spiderable gear catalog online.  I'm using IE 7.0 to view site online and FileZilla as my FTP agent.  The web site is hosted by GoDaddy, which allows any file type to be uploaded.  The .php script is supposed to just be copy and pasted to my page then uploaded to the server and work.  However, when trying to view online the web page is blank other than the background, header, footer, etc.   Why can't I see the catalog?  Is there a scripting problem?  What things should I double check?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Gaper Central - Gear Catalog</title>
<meta name="robots" content="index,nofollow" />
<style type="text/css">
<!--
body {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	background: #000000;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000;
}
.oneColLiqCtrHdr #container {
	width: 80%;  /* this will create a container 80% of the browser width */
	background: #00FF00;
	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
	border: 1px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColLiqCtrHdr #header {
	background: #ff00ff; 
	padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.oneColLiqCtrHdr #header h1 {
	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColLiqCtrHdr #mainContent {
	padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
	background: #00ff00;
}
.oneColLiqCtrHdr #footer { 
	padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#ff00ff;
} 
.oneColLiqCtrHdr #footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.style1 {color: #0000FF}
.style2 {color: #00FF00}
a {
	font-family: Georgia, Times New Roman, Times, serif;
	color: #00FF00;
}
a:link {
	color: #000000;
}
a:visited {
	color: #FFFFFF;
}
a:hover {
	color: #666666;
}
.style3 {color: #FFFF00}
-->
</style></head>
 
<body class="oneColLiqCtrHdr">
 
<div id="container">
  <div id="header">
    <h1 class="style2">GaperCentral.com</h1>
    <!-- end #header --></div>
  <div id="mainContent">
    <h1 class="style1">Gear Catalog</h1>
    <p class="style1"><strong><a href="home.html">GO BACK HOME</a></strong></p>
  <!-- GoldenCAN Store Integration Code Start -->
<?php
$SID="518D2464-EB95-472D-92E2-9B754F0530CD";
$IPAddress = urlencode($_SERVER['REMOTE_ADDR']);
$UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']);
$Host=urlencode($_SERVER['HTTP_HOST']);
$PageURL=urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']);
$URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=".$SID;
$URL=$URL.'&Host='.$Host;
$URL = $URL.'&PageURL='.$PageURL;
$URL = $URL.'&IPAddress='.$IPAddress;
$URL = $URL.'&UserAgent='.$UserAgent;
include($URL);
?>
 
<!-- GoldenCAN Store Integration Code End -->
 
&nbsp;</p>
    <p class="style1"><strong><a href="home.html">GO BACK HOME</a></strong></p>
  <!-- end #mainContent --></div>
  <div id="footer">
    <p><a href="privacypolicy.html">Privacy Policy</a> | Copyright 2008 &copy; GaperCentral.com All Rights Reserved.</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
 
Loading Advertisement...
 
[+][-]08.19.2008 at 10:51AM PDT, ID: 22262112

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.19.2008 at 10:53AM PDT, ID: 22262131

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.19.2008 at 03:49PM PDT, ID: 22264635

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.19.2008 at 08:33PM PDT, ID: 22265918

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2008 at 01:18AM PDT, ID: 22267108

View this solution now by starting your 7-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 Installation, Macromedia Dreamweaver, PHP and Databases
Tags: PHP Script, IE 7.0, http://www.gapercentral.com/gear.php, Using Dreamweaver to create spiderable gear catalog. Shows PHP icon in design mode however when uploaded to server does not display online.
Sign Up Now!
Solution Provided By: fibo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.20.2008 at 11:16AM PDT, ID: 22272390

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628