Help - Search - Members - Calendar
Full Version: What's wrong?
The Planet Forums > Control Panels > Plesk
christian
What's wrong? with Plesk ???

My html files Dont accept [PHP][/PHP]

CHMODed to 744? mad.gif

[PHP] ® © € ™ all german leter (ä,ü,Ö) replaced with ???? [/PHP] :confused: WHY ??


HTM Extension not working at all!, :confused: HELP !!
Squire
HTML files will not be sent to the PHP processor unless you specifically tell the server to do that. One is straight text and the other is pre-processed by the server prior to delivering the HTML to the browser. This is a standard setup for every server and is not something that has anything to do with Plesk.

If you want your server to process .html files as .php files you should be able to use an .htaccess so that it only affects that specific domain. Create an .htaccess file and put the following in it:
[PHP]AddHandler application/x-httpd-php .html .php[/PHP]

Upload that to the root level of the domain and you should be set.
christian
OK Squire Thanks

but all german letters and special signs like ® © € ™ ä,ü,ö are replaced with ???? why this ???
and I can not use [PHP] [/PHP] with html files :confused:
RexAdmin
Remove default char set from httpd.conf and restart apache.

Good luck.
christian
RexAdmin how can I do that !!!
which lines should be edited icon_sad.gif please
christian
??
GraphicsGuy
Open /etc/httpd/conf/httpd.conf in your favorite editor (pico or nano, vi, ...)

Locate the line that starts with:

AddDefaultCharset

comment it out by placing # in front of it.

Save the file.

Then restart Apache:

apachectl restart
christian
Great German is fine now icon_wink.gif Big Thanks GraphicsGuy

but spec signs like € ® © Still not There (??? ) and I can not include [PHP] [/PHP] into html files why ? icon_smile.gif
GraphicsGuy
This may not be any help as I am not a PHP expert but I use the tag
I don't know that it helps, it is just the way I learned it.

You might try it and if it works, great. If not, then hopefully someone with more coding experience can point you in the right direction.
christian
icon_smile.gif thanks anyway! ...
Squire
Read my post above christian.

HTML is not PHP.

You can either name your files with a .php extension to have the server recognize and process your php commands, or alternatively you can configure your server so that it also pre-processes .html files as if they were php.
christian
icon_wink.gif Thanks Squire I made it icon_wink.gif

.htaccess
AddType application/x-httpd-php .html

Thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.