[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

EASIEST PHP question

Asked by travisjbennett in PHP Scripting Language

Tags: bold, download, extra

Trying to implement weather script from Weather.com into my site. All sources are at http://www.ravis.org/code/weather/ . Weather code USFL0372 (if you must know, probably won't use/need it). PHP Scripts downloadable from site posted above are in the same directory as the HTM file. There is something wrong I am doing in the HTM file, with a copy & paste of it's contents below. Newbie to PHP. Thanks. Note: This is the code I'm TRYING TO COPY: FURTHER DOWN AFTER THE ----'s is the code I have written.

PAGE CONTAINING CODE I AM TRYING TO COPY:

<form name="form1" method="get" action="index.php">
  <div align="center" class="bodyText">Enter a City ID to test:
    <input type="text" name="CityID" value="<? print $HTTP_GET_VARS["CityID"]; ?>">
    <input type="submit" name="Submit" value="Submit">
  </div></form>
<hr>
<?


if (isset($CityID)) {


  // This is the code you need to have on your page.
   
  // $CityID is being submitted from the user via the
  // form you filled in. You can replace it with a
  // static string if you like (eg: "USPA0380")
   
  // Naturally you can replace $Weather->OutputDebug
  // with your own calls (getTemp for example)

  include("Weather.php");
  $Weather = New Weather($HTTP_GET_VARS["CityID"]);
  $Weather->OutputDebug();
   
  // End weather fetching code. Easy, eh?


?>
<hr>
<p class="bodyText">If everything above looks correct but the script running on
  your server doesn't produce output you may want to...</p>
<ol class="bodyText">
  <li>Make sure you have a valid city code! <a href="http://www.weather.com/weather/local/<? print $HTTP_GET_VARS["CityID"]; ?>">Click
    here</a> to find out...</li>
  <li> Make sure you have the <a href="../">lastest version</a> of the weather
    script</li>
  <li><a href="source.php">View the source code</a> for this page as an example
    (hey, it's working, right?)</li>
  <li>Check that your copy of PHP allows outbound connections.</li>
</ol>
<p class="bodyText">If <a href="../../webcell/">WebCell</a> (and therefore Weather)
  can't connect you should receive a warning "Could not connect to server 'www.weather.com:80'".
  This means one of three things: Weather.com is down (unlikely); something is
  wrong with your network; or (most likely) that your copy of PHP is configured
  to deny outgoing connections. The first case I can't help you with because I
  don't have anything to do with Weather.com, and the last two I can't help you
  with because I don't have anything to do with your systems / network - please
  talk to your sysadmin.</p>
<p class="bodyText">If, however, the output above is missing or showing incorrect
  data, please <a href="../../contact/">let me know</a> so I can update the script...
<p class="bodyText">Otherwise, back to the <a href="../">weather page</a>!
<p>
  <?
}
?>
</p>



------------------------------------------------------------------------------------------------------------
PAGE CONTAINING CODE I WROTE, BUT CAN'T GET TO WORK:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
</head>

<body link="#FF0000" vlink="#800000" alink="#808080" bgcolor="#E0DFE3" style="text-align: center" background="../lava.jpg">

<p align="center">&nbsp;</p>
<p align="center">
<img border="2" src="Welcome.jpg" style="border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></p>
      <table border="1" cellpadding="0" cellspacing="0" width="512" bordercolor="#FFFFFF" bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0" id="table1" bgcolor="#C9C7CD" style="border-style: outset; border-width: 3; margin-top: 1; margin-bottom: 1" height="76">
            <tr>
                  <td>
                  <p align="center">
                  <b>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#800000" style="font-size: 15pt">
                  Edgewater High School</font><font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt"><br>
                  </font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#800000" style="font-size: 15pt">
                  3100 Edgewater Drive Orlando, Florida 32804-3722</font><font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt"><br>
                  </font>
                  <font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">
                  <font face="Tw Cen MT Condensed Extra Bold" color="#000000" style="font-size: 15pt">
                  Office:</font><font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt"> </font></font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#800000" style="font-size: 15pt">
                  407-835-4900</font><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000"><font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt"> </font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#000000" style="font-size: 15pt">
                  Fax:</font><font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt"> </font></font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#800000" style="font-size: 15pt">
                  407-245-2758 </font>
                  <font face="Verdana, Arial, Helvetica, sans-serif" color="#000000">
                  <font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt">
                  <br>
                  </font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#000000" style="font-size: 15pt">
                  CEEB</font><font face="Tw Cen MT Condensed Extra Bold" color="#ffffff" style="font-size: 15pt"> </font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#000000" style="font-size: 15pt">Code: </font>
                  <font face="Tw Cen MT Condensed Extra Bold" color="#800000" style="font-size: 15pt">101290</font></font></b></td>
            </tr>
      </table>
<div align="center">
      <table border="1" cellpadding="0" cellspacing="0" width="512" bordercolor="#FFFFFF" bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0" id="table2" bgcolor="#C9C7CD" style="border-style: outset; border-width: 3; margin-top: 1; margin-bottom: 1">
            <tr>
                  <td>
 <p align="center">
 <font face="Bauhaus 93" size="6" color="#800000">Weather Report:</font><p align="center"></td>
            </tr>
      </table>
      </div>
<hr>
<?PHP
if (isset(USFL0372)) {
  include("Weather.php");
  $Weather = New Weather($HTTP_GET_VARS["CityID"]);
  $Weather->OutputDebug();
}
?><hr>
</body>

</html>
 
Related Solutions
Keywords: EASIEST PHP question
 
Loading Advertisement...
 
[+][-]06/10/03 01:26 PM, ID: 8694223Expert 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.

 
[+][-]06/10/03 01:28 PM, ID: 8694238Expert 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.

 
[+][-]06/10/03 01:37 PM, ID: 8694310Author 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.

 
[+][-]06/10/03 01:42 PM, ID: 8694352Author 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.

 
[+][-]06/10/03 01:48 PM, ID: 8694405Expert 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.

 
[+][-]06/10/03 01:57 PM, ID: 8694476Author 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.

 
[+][-]06/10/03 02:10 PM, ID: 8694562Expert 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.

 
[+][-]06/10/03 02:17 PM, ID: 8694610Author 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.

 
[+][-]06/10/03 02:24 PM, ID: 8694640Expert 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.

 
[+][-]06/10/03 02:28 PM, ID: 8694658Expert 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.

 
[+][-]06/10/03 02:36 PM, ID: 8694695Author 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.

 
[+][-]06/10/03 02:38 PM, ID: 8694703Expert 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.

 
[+][-]06/10/03 02:43 PM, ID: 8694737Accepted 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

Zone: PHP Scripting Language
Tags: bold, download, extra
Sign Up Now!
Solution Provided By: VGR
Participating Experts: 3
Solution Grade: A
 
[+][-]06/10/03 02:46 PM, ID: 8694750Author 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.

 
[+][-]06/10/03 02:49 PM, ID: 8694775Author 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.

 
[+][-]06/10/03 02:52 PM, ID: 8694798Expert 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.

 
[+][-]06/10/03 02:53 PM, ID: 8694810Expert 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.

 
[+][-]06/10/03 02:58 PM, ID: 8694844Author 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.

 
[+][-]06/10/03 03:07 PM, ID: 8694893Expert 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.

 
[+][-]06/10/03 08:31 PM, ID: 8696265Expert 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.

 
[+][-]06/10/03 08:54 PM, ID: 8696348Expert 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.

 
 
Loading Advertisement...
20091021-EE-VQP-81