RE: [PHP] why doesn't this work ?
| From: | Justin Palmer | Date: | Wed, 21 Apr 2004 03:32:04 +0000 |
| Subject: | RE: [PHP] why doesn't this work ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184080@lists.php.net to get a copy of this message | ||
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:holmes072000@charter.net]
Sent: Saturday, April 17, 2004 12:20 PM
To: Pooya Eslami
Cc: php-general@lists.php.net
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