Php

software development

#1

I have the following simple little php script on my otherwise static HTML index page…

<? $today = date("F j Y g:i:s"); echo $today; ?>

but it will not show up. No error message or anything, it just dont show. Works on the testing server ok. whazzzup widdat?
thanks in advance.

chicken fried is haute cuisine


#2

I don’t think you can just include this on a static HTML page. You could do something similar with SSIs:
https://panel.dreamhost.com/kbase/index.cgi?area=174

Otherwise, I think you’d have to use PHP for the whole page (and name it whatever.php).


#3

Simply rename your file as “something.php” and your PHP coding will work. You could keep all your HTML with no problem. Hope this help.


Alleged Cybersquatter - knows a thing or two about domain names
http://www.nameslave.com


#4

10/4

chicken fried is haute cuisine