View Single Post
  #8 (permalink)  
Old 10-18-03, 11:47 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
not a single hour on conveting !!!
all you have to do is beging your file with php tag '<?php'
and close it once you finish !!
an example to show what I mean :
PHP Code:

<?php

$ex
='Hello world';
//now we will close the tag to put plain HTMLs
?> 
<HTML>
<HEAD>
<TITLE> <?php echo $ex// we started them and closed them again just to print the variable 
?> 
</TITLE>
<BODY>
#lot's of plain HTMLS 
#
#
#end of HTMLs
<?php for ( $ .... //some php process ?>
</BODY>
</HTML>
as you can see php is colored while the other HTML in black which means php parser will NOT touch them unless they are inside the tags
now we have php and html in the same file and still will be excutable normaly .. just name your files with PHP and it shall work fine ..
hope I didn't confuse you
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]

Last edited by NeverMind; 10-18-03 at 11:50 AM.
Reply With Quote