Re: Display after a certain date

From: Date: Fri, 05 Sep 2003 20:55:36 +0000
Subject: Re: Display after a certain date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161834@lists.php.net to get a copy of this message
Jay, I should have though of that. Thanks. "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote: ><?php >$display_start = "2003-10-01"; >$display_end = "2003-10-31"; >if((date("Y-m-d") >= $display_start) && (date("Y-m-d") <= >$display_end)){ > print($stuff); >} >?> Cesar: Is your server is set up correctly? In your httpd.conf file, add .html you can use php in html files: <IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml .htm .html AddType application/x-httpd-php-source .phps </IfModule> <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps </IfModule> <IfModule mod_php.c> AddType application/x-httpd-php .phtml </IfModule> Cesar Aracena wrote: > If you could just change the file extension to .php to be accord to this > forum...

« previous php.general (#161834) next »