Sandaysoft

Support forum for Cumulus weather station software
It is currently Thu May 23, 2013 9:38 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Web tags in PHP & other PHP items.
PostPosted: Tue Apr 10, 2012 8:49 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
I want to convert my XHTML pages to HTML5 to take advantage of the new features. The main failure at W3C is the PHP webtag. How do I alter my webtag to be accepted in HTML5.

Here is an example of a current tag:
Quote:
<?php echo $wchill; ?>


And here is the failure:
Quote:
Error Line 34, Column 4: Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.)

<?php


Duke

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: Web tags in PHP & other PHP items.
PostPosted: Tue Apr 10, 2012 8:53 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17586
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Are you trying to validate the page before it's been processed by the server? PHP would normally never be seen in a web page, it gets processed by the server to generate HTML. It's the generated HTML that you should be trying to validate.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Web tags in PHP & other PHP items.
PostPosted: Wed Apr 11, 2012 6:46 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
Steve,

I think you are correct. I was using the checking function built into Webuilder which connects to W3C and it failed miserably. But, after uploading to the server and rechecking all PHP passed :D .

Just a few minor things to sort now.

Thanks

Duke

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: gwheelo, mcrossley and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group