Author Topic: Please Help Someone!!  (Read 2943 times)

0 Members and 1 Guest are viewing this topic.

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Please Help Someone!!
« on: May 11, 2008, 03:27:22 PM »
Hi Everyone,

Sorry but I have been pretty much left behind with php scripting and the like. I have been working (feverishly???) for sometime on the advforecast2 script and finally have a forecast being produced by remote server but the icons are not being shown on the finished forecast.

http://www.carolinastormwatch.com/forecast/advforecast2.php 

To make matters worse, if that is possible at this point; when I attempt to create the forecast on my potential page with the  command:  <?php $doIncludeNWS = true; include("advforecast2.php"); ?>  from Saratoga Scripts  :grin: I am unable to get the command to produce anything.

As someone suggested in a prior post about being a Novice PHP User; I am at the top of the group. 

Any help or hints would be greatly appreciated.

Thanks,

Tom M.
Nexstorm HGB SSB
Carolina StormWatch

CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline Curly

  • Forecaster
  • *****
  • Posts: 724
    • Michiana Weather
Re: Please Help Someone!!
« Reply #1 on: May 11, 2008, 03:54:45 PM »
You will need to move something.

Move advforecast2.php up one level to your main folder.    h ttp://www.carolinastormwatch.com/advforecast2.php

The include should then work and the icons should work too.
« Last Edit: May 11, 2008, 04:06:33 PM by curly »

Offline katlon

  • LONNIE'S WEATHER STATION
  • Contributor
  • ***
  • Posts: 142
  • GO HEELS!!!
    • LONNIE'S WEATHER STATION
Re: Please Help Someone!!
« Reply #2 on: May 11, 2008, 06:32:59 PM »
Right clicking on where an images should be shows a property of:
http://www.carolinastormwatch.com/forecast/forecast/images/

When I "view source" of your web page it shows that the images are being called from:
http://www.carolinastormwatch.com/forecast/images/


Make sure your php script is calling for the images where they actually are.

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Please Help Someone!!
« Reply #3 on: May 11, 2008, 06:38:33 PM »
Thanks everyone for the help!! Iam not going to give up on this!

Tom
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter

Offline BfdWx

  • WxElement panel
  • Senior Contributor
  • *****
  • Posts: 255
    • Branford Weather
Re: Please Help Someone!!
« Reply #4 on: May 12, 2008, 07:41:51 AM »
Tom,

Your pictures are here...http://www.carolinastormwatch.com/forecast/images/tsra30.jpg but your script is looking for them here...http://www.carolinastormwatch.com/forecast/forecast/images/tsra30.jpg.

In your advforecast2.php change...
Code: [Select]
$iconDir = './forecast/forecast/images/';
to
Code: [Select]
$iconDir = './forecast/images/';
That should solve it!

Jack

Offline stormwatch

  • Senior Contributor
  • ****
  • Posts: 182
    • Carolina StormWatch Weather
Re: Please Help Someone!!
« Reply #5 on: May 12, 2008, 10:00:51 AM »
Thanks Jack,

You look like you have finally got me on the right track. I appreciate your help very much.

That is what I appreciate so much about the guys and gals on this forum that are willing to help out out each other so much.

Have a great day Jack!!!

Tom
CoCoRaHS NC-BR-1
CW0803
Advanced Spotter