Hi to all,
two months ago Henkka gave me the script in object.
I would insert it on my home page to show the meteo-alarm in a red rectangle box.
This script is a mod of the original script of Ken…it catches the data from meteoalarm.eu site and paste the results wherever you want.
Unfortunately i’ve a problem with lang function that i don’t manage to fix.
Here is the link: http://www.meteocarmignano.it/meteo.php
I didn’t see Henkka on this forum and he didn’t answer by email anymore so i would ask here if any php guru fix this little problem.
Thank you very much,
I think the problem is that the script is expecting $lang to have been defined before that line. Can you save the whole script as .txt and attach or post it?
(php can usually accept either single ’ or double quotes ", there is a subtle difference, but it’s not usually critical.)
Alessandro, line 187 fails because there is a mix of $Lang and $lang being used in the script. Variable names are case sensitive so $Lang is not the same as $lang. I suggest you replace all the $lang with $Lang and see if it runs for you.
Notice: Undefined offset: 0 in /web/htdocs/www.meteocarmignano.it/home/meteo.php on line 329
Notice: Undefined offset: 1 in /web/htdocs/www.meteocarmignano.it/home/meteo.php on line 336
Notice: Undefined variable: acva in /web/htdocs/www.meteocarmignano.it/home/meteo.php on line 375
I don’t get any errors so maybe you have a typo. I don’t get any output either but there are no alarms for IT so maybe that’s OK. I’ve attached my code.
Update: It’s alive I had to uncomment line 378
print “$EUAwarning”;
There’s still something wrong with the file caching that I haven’t fixed, but it’ll work if you force it to read the website so that’s progress:
Last thing: Now, this script shows “Non e’ richiesta alcuna attenzione speciale” because there isn’t any alarm on italy. http://www.meteocarmignano.it/meteo.php
But if i include the script like so:
<?php
$frontpage = true;
include 'meteo.php';
echo $requiredNoteEUA;
?>
Hi Kartal
i’ve tried your version but i don’t found any differences as well as others characters.
Please, could you tell me which differences are there?
Many thanks,