Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: TechnoMonkey on October 12, 2014, 04:45:41 PM

Title: PHP vs. HTML
Post by: TechnoMonkey on October 12, 2014, 04:45:41 PM
For you gurus out there. HELP!

This is my file:

    <tr>
      <td style="vertical-align: top;">DWINDD&#36;<br>
      </td>
      <td style="vertical-align: top;">Replaced with current wind direction dial.<br>
      </td>
      <td style="vertical-align: top;">DWINDD&#36;<br>
      </td>
      <td style="vertical-align: top;"><img src="WCFILES/DWINDD$" alt="">
      </td>
    </tr>

If I name it *.php, this is the result:

    <tr>
      <td style="vertical-align: top;">DWINDD&#36;<br>
      </td>
      <td style="vertical-align: top;">Replaced with current wind direction dial.<br>
      </td>
      <td style="vertical-align: top;">DWINDD&#36;<br>
      </td>
      <td style="vertical-align: top;"><img src="WCFILES/winddirection.jpg" alt="">
      </td>
    </tr>

If I name the file *.html, I get this:

    <tr>
      <td style="vertical-align: top;">DWINDD&#36;<br>
      </td>
      <td style="vertical-align: top;">Replaced with current wind direction dial.<br>
      </td>
      <td style="vertical-align: top;">DWINDD&#36;<br>
      </td>
      <td style="vertical-align: top;"><img src="WCFILES/<img src="winddirection.jpg" alt="Wind direction gauge"/>" alt="">
      </td>
    </tr>

Any ideas on how I can fix this?
Title: Images are expected to be in HTML directory. (Re: PHP vs. HTML)
Post by: elagache on October 12, 2014, 09:59:00 PM
Dear TechnoMonkey and WeatherCat web spinners,

I just checked my own website and indeed it is expected that you will allow WeatherCat to generate the <img .  .> tag and that the images are supposed to be in the same directory as the HTML.  I don't think there is a way to put them into a subdirectory.  If you want to ask Stu about it you'll have to wait until he gets back from his holiday on Tuesday.

Cheers, Edouard
Title: Re: PHP vs. HTML
Post by: WCDev on October 13, 2014, 05:21:31 PM
Correct, the tags will expect the images to be in the same directory as the page.