php inside html
Moderator: General Moderators
php inside html
Hi all,
lately i moved hosting, but now for some reason php inside html is not processed anymore
I searched all over the net and tried various .htaccess configurations but none of them worked
Can it be something else?
kind regards, Jef
lately i moved hosting, but now for some reason php inside html is not processed anymore
I searched all over the net and tried various .htaccess configurations but none of them worked
Can it be something else?
kind regards, Jef
Yes it is, if I rename the index.html file to index.php everything works correctlyThe Ninja Space Goat wrote:first off... is php installed?
But that would mean I have to rename every page and update all links.
I extremely prefer not to do that.
Yes, this is an excerpt out of the document:The Ninja Space Goat wrote:second... are you using short tags (ie: <? and ?>)
Code: Select all
<div class="interface-02">
<?php
if ($stylesheet == "visualstyle3"){
echo ' <img src="http://www.jefspalace.be/images/logo.gif" alt="Jefs Palace Logo" height="80" width="80" /> ';
}
?>
</div>correct, but it at least proves that php is workingvolka wrote:The .html is not associated with the php module.Yes it is, if I rename the index.html file to index.php everything works correctly
Do you have access to the webserver's configuration? What kind of webserver is it?
It is a paid server, I'm just an amature programmer eager to learn
the .htaccess file used to just include
Code: Select all
AddType application/x-httpd-php .php .htm .htmlused? past tense? Or is this .htaccess still there? And is it still an apache webserver?Jef Patat wrote:the .htaccess file used to just include
Code: Select all
AddType application/x-httpd-php .php .htm .html
Maybe you do not have the proper permissons to change values in .htaccess. But that usually leads to a fatal error. see http://httpd.apache.org/docs/2.0/mod/co ... owoverride
And the name of the file apache is looking for might have been changed as well, see http://httpd.apache.org/docs/2.0/mod/co ... ssfilename
It is still an apache server, i'm using www. one. com
Apache 1.3.31 with security patches from 1.3.33
I can choose to use php 5.1.5 configuration at http://www. testdomainet. com/info.php
or 4.4.4 configuration at http://www. testdomainet. dk/info.php
indeed used to be as in: for the moment there is no .htaccess file since it does not make any difference
they do support .htaccess, i'm quite sure of that
thanks for the quick responses
Apache 1.3.31 with security patches from 1.3.33
I can choose to use php 5.1.5 configuration at http://www. testdomainet. com/info.php
or 4.4.4 configuration at http://www. testdomainet. dk/info.php
indeed used to be as in: for the moment there is no .htaccess file since it does not make any difference
they do support .htaccess, i'm quite sure of that
thanks for the quick responses
Hello again,
however I do not see what can be the issue for a hosting company that claims 250,000 customers in 149 countries.
Am I the only one trying this?
I did, they have online help, and this is resultvolka wrote:Jef Patat wrote:indeed used to be as in: for the moment there is no .htaccess file since it does not make any difference
Ask your provider if and how you can link .html files to the php module.
So I will send them an email and keep you guys updatedPlease wait for a site operator to respond.
You are now chatting with 'lee'
lee: Thank you for using One.com 24/7 Interactive Online Support. My name is Lee. How may I assist you?
you: how can I link .html files to the php module
you: ?
you: sorry, hello
lee: Hi there
lee: Please hold on for a moment
you: ok
lee: I do not have information on this
lee: You can check google for more information.
you: lolz
you: google is not hosting my site
lee: What exactly are you looking for?
you: I have inline php in a html file
you: the php engine cannot know to interprete the html
you: so most often you tell it by using the .htaccess file
you: but not on yours
you: take a look at the result at jefspalace.be
you: quite <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> up
lee: Unfortunately I cannot assist you on this as we do not offer technical assistance on scripts and programming.
you: this is not programming
you: this is supporting
you: the code is correct otherwise it wouldn't have worked on the previous host
lee: Are you using includes?
you: amongst others yes
lee: I am sorry i have no information regarding this
lee: Please send an email regarding this to support@one.com
you: ok
lee: Will there be anything else I can help you with?
you: you mean can not help me with :p
you: no thanks
lee: ser
lee: You are welcome.
lee: Please feel free to contact us again for any further assistance. Good Bye and have a nice time.
however I do not see what can be the issue for a hosting company that claims 250,000 customers in 149 countries.
Am I the only one trying this?
- akimm
- Forum Contributor
- Posts: 460
- Joined: Thu Apr 27, 2006 10:50 am
- Location: Ypsilanti Michigan, formally Clipsburgh
Guys, just to make sure he does indeed have php, why not try a phpinfo
Code: Select all
<?php
phpinfo();
?>