Question Before A Help Ticket

liunx

Guest
I know this is probably just a mistake on my part but I have SSI's working fine using php file's or includes.<br /><br />I am going through some of the tutoriols on PHP and one of them is the current time test page. What I am getting back is the whole body of the page including the switch to PHP and all. <br /><br /> <p>This page was created at <b><br /><?php echo date("h:i:s a", time()); ?><br /></b> on the computer running PHP.</p> <br /><br />The page is located at <a href="http://www.giftdealsgalore.com/timetest.php" target="_blank">http://www.giftdealsgalore.com/timetest.php</a> <br /><br />It doesn't seem to be running through the app server or is there just something I am missing.<br /><br />Thanks in advance<br /><br />Mike<!--content-->
Moved for organization. I don't know why this would be happening since it ends in php and I'm not good at this stuff. <br /><br />Sorry I can't help. =/<!--content-->
Thanks for taking a look. At this point it has me too. And when you look at it in veiw source it looks even more funny that may be a PHP thing. As many pages as I plan on having, database generated pages is the only way to go. I hate to think of having to manage it any other way. <br /><br />Thanks for the look though<br /><br />Mike<!--content-->
Im no php guy either but i found this at php.net, maybe it will help:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php<br />// Prints something like: Wednesday<br />echo date("l");<br /><br />// Prints something like: Wednesday 15th of January 2003 05:51:38 AM<br />echo date("l dS of F Y h:i:s A");<br /><br />// Prints: July 1, 2000 is on a Saturday<br />echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));<br />?><!--c2--></div><!--ec2--><!--content-->
Thanks All<br /><br />I got it and it was my mistake. And you all helped me to figure it out. What I had done is to added the code to the design view and not to the code view so it was my fault and I feel stupid. It must be time to go to bed.<br /><br />thanks for the help<br /><br />Mike<!--content-->
Thanks All<br /><br />I got it and it was my mistake. And you all helped me to figure it out. What I had done is to added the code to the design view and not to the code view so it was my fault and I feel stupid. It must be time to go to bed.<br /><br />thanks for the help<br /><br />Mike<!--content-->
No worries and sleep well <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Ah, dreamweaver? I did that a few times when I was using it. =)<!--content-->
 
Back
Top