Cellphone / Mobile / iPhone Weather Script

[size=100]$clientraw_path = $_SERVER['DOCUMENT_ROOT'] . "/wdl/clientraw.txt";[/size]

Uses the Apache Document Root value and adds /wdl/clientraw.txt to it.

Changed it but

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/vhosts/mangawhaiweather.co.nz/httpdocs/clientraw-parser.php on line 66

Different error.

Says you have a problem with T_CONSTANT_ENCAPSED_STRING on line 66 (may be just above that line).

Can’t remember exactly what that means, but a good chance it is something not enclosed properly.

Kevin line 66 is $clientraw_path = $_SERVER[‘DOCUMENT_ROOT’] “./wdl/clientraw.txt”;

You can delete line [color=brown]65:[/color] $clientraw_path = '';… it’s not used anywhere.

Setup your clientraw and clientrawextra path here instead: [color=brown]93:[/color] $dataraw = file_get_contents("clientraw.txt"); [color=brown]94:[/color] $datarawextra = file_get_contents("clientrawextra.txt");

Unfortunately I picked it up from “Anole Computer Services” and I’ve not really had a good look at it yet.
I just added a few tags/variables.

Thanks I have that now, screen is still wide even though I have uploaded handheld.css to my root directory

I am having trouble setting this script up :oops:

http://www.mangawhaiweather.co.nz/cell_ajax-dashboard.php

Are you missing the .css file?

Tiggy I have the css file in the root directory of the web server

Where is settings.php?

settings.php for alt dashboard is in the root dir

I don’t find http://www.mangawhaiweather.co.nz/settings.php so does that mean that cell_ajax-dashboard.php is not in the root directory?

setting.php is Settings.php that all seems to be ok.

hi
its late at night here (well early morning!) I just noticed this script and have tried to implement it but somethings are deffinatelt not right as I don’t think it’s supposed to look like this http://www.weybourneweather.co.uk/cell_ajax-dashboard.php

Going to sleep on it and try again in the morning, but any help much appreciated

Phil

My mistake, missed the capital :oops:

Phil thats exactly the same problem I am having, can’t seem to work it out.

Tony
At least I know it’s not just me! I will try and look at it today
Phil

Hang ten guys.
I’ll make an easy installation available soon when I’m done with the [b][color=blue]ajaxWDwx.js[/color][/b] project.

Hanging ten!! no rush it’s not an urgent need.
Phil

Cheers Rainer appreciate that :slight_smile: