javascript - My PHP code is just a comment in my html -
sorry guys pretty simple, i've been way late now. have basic html page javascript on it, , when try put php in body reads comment.
<html> <head> <link rel="stylesheet" href="style.css" type="text/css" media="screen"> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="jquery.tablesorter.min.js"></script> <script type="text/javascript" src="jquery.tablesorter.pager.js"></script> <script type="text/javascript"> $(function() { $("table") .tablesorter({widthfixed: true, widgets: ['zebra']}) .tablesorterpager({container: $("#pager")}); }); </script> </head> <body> <div id="main"> <h1>demo</h1> php in here <?php echo "test php"; ?> ... main code table here </div> </body> </html>
sounds either don't have php installed or you're not using file extension invokes php engine - file called blah.php
?
some things check:
- you're serving file web server (not locally)
- the server has php installed
- php configured handle file type you're using (usually .php)
- creating new file
<?php phpinfo(); ?>
, serving should give lots of info php install. - if have access server, should able run php command line/shell
Comments
Post a Comment