Beginner with wxsim 3in1 and webpage creation

Hi

First of all “Happy new year”!

I’m trying to run this WXSIM 3in1 scrips without any luck.

I’ve put the files on the webserver as described, and edited the settings file with correct dirs to my files.

Uploaded them, and trying to run them from my brower, but I just get an empty white screen?

http://www.jasminvejr.dk/vejr/wxsim/sivu2.php

What am I doing wrong?

Sorry about my ignorance :roll:

Hello, good morning.

Your php script runs into a problem, thats why you do not get any readable output.
The screen you see is not really blank. There is output but the browser finds nothing to display.

You have to look into the source of the page
And how to do that differs with every browser and with every language
CHROME right click, choose "show source’ or something like that (I use Dutch: Paginabron tonen)

You will then see the complete output as processed by PHP and outputted to your browser:


<!DOCTYPE HTML>
<html lang="">
<head>
<title>WXSIM 3in1 testpage</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<!-- HEAD START -->
<!-- Put this part inside <head> and </head>-tags, needed on ALL pages using 3in1 -->
<!-- HEAD END -->

</head>
<body>

<!-- BODY START -->
<!-- Put this part where you want it to show up -->
<!-- You may want wrap it inside a div like this -->
<div style="width:870px;font: 72% Tahoma;">

When you look into sivu2.php you can see the same html code but also that some things are missing.
In the original sivu2.php on line 13 there is an include 'wxall.settings.php" which should have produced some output.
And line 14 certainly should have done that. At least a copyright message
// COMMERCIAL USE OF THIS FORECAST-SCRIPT STRICTLY FORBIDDEN.
and so on.
All are missing.

The sivu2.php script fails in line 27/28

As error messages are surpressed by default, you really can not see what went wrong at that time.

But OK,

  1. become familiar with the browser and looking into the source of a page
  2. run the wxsim 3in1 first unmodified and see if there is a clue what is going wrong.
    PHP is very “stupid”, when it encounters an error in your code (one minor typing mistake) is simply stops.
    Nothing will show on the screen.
  3. So ONE change in the source means one testrun.
    Than another change, another testrun.
    Succes, Wim

Hi

I have wxsin3in1 working now but can someone tell me how to translate in French ?

See: http://www.jeanrobertmarion.com/wx3in1.php

Jean-Robert