I don't think that you have to request anything. I think you can do this with a .htaccess file. Like so:
AddType application/x-httpd-php .html AddType application/x-httpd-php .htm This would go in your root .htaccess file. Mine allows this anyways(hostrocket.com). Also if you have a control panel that you can add MIME type, you can do the following: application/x-httpd-php Here is the link with the information: http://support.hostrocket.com/index.php?page=index_v2&id=110&c=15 NOTE: This might be hosting provider specific, I have not run any tests on other providers. Kind regards, Justin. P.S. WOW, this is a late response...sorry. -----Original Message----- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 12:20 PM To: Pooya Eslami Cc: [EMAIL PROTECTED] Subject: Re: [PHP] why doesn't this work ? Pooya Eslami wrote: > I took out the scrip tags and put in <?php in the beginning and ?> at > the end, but it returns this: > > $file > "; } } closedir($handle); } echo " > "; ?> > > Any ideas how to fix this? Use a .php extension on your file. Or you can ask your hosting company to have .html files processed as PHP, but they won't. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals - www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php