|
Posted by J.O. Aho on 04/23/06 07:30
Frankly wrote:
> "J.O. Aho" <user@example.net> wrote in message
> news:4avr38Fv88f3U1@individual.net...
>> Frankly wrote:
>>
>>> it is working now.. the tech support chat guy told me that i used the
>>> code wrong.
>>> I used html and php code together I need to use only php and not html.
>> As "mike white" wrote, thats pure nonsense, you get a lot cleaner code to
>> read if you use both HTML and PHP in you php scripts
>>
>>
>> --- test1.php: only php ---
>> <?PHP
>> echo "<html>\n<head>\n<title>Test1</title>\n</head>\n<body
>> text=\"green\">\n";
>> $myvar = "Hello World";
>> echo $myvar;
>> echo "</body></html>";
>> ?>
>> --- eof ---
>>
>>
>> --- test2.php: both html and php ---
>> <html>
>> <head>
>> <title>Test2</title>
>> </head>
>> <body text="green">
>> <?PHP
>> $myvar = "Hello World";
>> echo $myvar;
>> ?>
>> </body>
>> </html>
>> --- eof ---
>>
>> It's not that much code/html, but already here you can see that the
>> test2.php is a lot easier to read than test1.php. Just keep your HTML code
>> as proper as possible, even on your test pages.
>>
>>
>> //Aho
>
> Than it appears I am back to step one and not knowing why the code did not
> work.
> I think i would like to get 3rd party software for dreamweaver 8 so i can
> compare the local file to the remote file ( hey im talkin the talk :) ) and
> see what that guy did.
You can just download the remote file and rename it and then open both it and
your original file and compare the two files manually side by side.
You have the diffutils, not sure how well it works in a microsoft environment,
but that one can show the difference between two files, works like a charm in
unix like OS:s.
http://gnuwin32.sourceforge.net/packages/diffutils.htm
And one which does have a graphical frontend:
http://www.componentsoftware.com/Products/CSDiff
//Aho
Navigation:
[Reply to this message]
|