I'm test driving WeBuilder (my first use of it) and really like what I see, but it broke part of my PHP code and I can't figure out why. (This is after I did an html tidy.) (I wanted to see how it would handle a file this large.)
It also highlights the closing </body></html> tags in red even though selecting either of them also selects the opening <html><body> tags ?? (To be fair, it found a couple of tags I had not closed (a table and span at the beginning I believe) and maybe that's what broke the code?)
The html portion of the code can be seen here:
http://mykindred.com/cloud/dna/results/pedchart.php ... and I will be happy to zip a copy of the source file if anyone wants to look at it.
The original php is above the <body> tag. There is no other php code on the page -- here it is:
Code: Select all
<?
$doctitle = "Cloud DNA Project pedigree chart";
$historypath = "http://mykindred.com/cloud/dna/results/" ;
$thisfile = "pedchart.php";
$tngrootpath = '../../TX/' ;
include( $tngrootpath.'begin.php');
if( !$cms[support] )
$cms[tngpath] = $tngrootpath ;
include($cms[tngpath] ."genlib.php");
include($cms[tngpath] ."getlang.php");
include($cms[tngpath] ."log.php");
//include($cms[tngpath] ."$mylanguage/text.php");
//
$thisfile = $historypath.$thisfile;
writelog("<a href=\"$thisfile\">$doctitle</a>");
?>
<!DOCTYPE html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<link href="ped.css" rel="stylesheet">
<meta name="author" content="Tom Cloud">
<link rel="shortcut icon" href="favicon.ico">
<?php
echo "<title>$doctitle</title>\n";
echo "<meta name=\"Description\" content=\"$doctitle\">\n";
?>
</head>
Code: Select all
<?
$doctitle = "Cloud DNA Project pedigree chart";
$historypath = "http://mykindred.com/cloud/dna/results/";
$thisfile = "pedchart.php";
$tngrootpath = '../../TX/';
include ($tngrootpath . 'begin.php');
if (!$cms[support])
$cms[tngpath] = $tngrootpath;
include ($cms[tngpath] . "genlib.php");
include ($cms[tngpath] . "getlang.php");
include ($cms[tngpath] . "log.php");
//include($cms[tngpath] ."$mylanguage/text.php");
//
$thisfile = $historypath . $thisfile;
writelog("<a href=\"$thisfile\">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link href="ped.css" rel="stylesheet" type="text/css">
<meta name="author" content="Tom Cloud">
<link rel="shortcut icon" href="favicon.ico">
<title></title>
<style type="text/css">
div.c1216 {text-align: center}
... styles omitted
and then this strange php code:
Code: Select all
... (style statements)
</style>
</head>
<body>
$doctitle"); ?> <?php
echo "<title>$doctitle</title>\n";
echo "<meta name=\"Description\" content=\"$doctitle\">\n";
?>
<div class="c1216">
thanks
Tom