phpQuestioner Posted April 1, 2007 Share Posted April 1, 2007 Does anyone know of a way to display PHP code in HTML without using: includes, JavaScript, or iframes? The HTML page I am trying to add PHP code to does allow XML; although I really do not know a lot about XML. Can XML be used and if so, how would I do this or is there some other methods I can use? Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/ Share on other sites More sharing options...
cmgmyr Posted April 1, 2007 Share Posted April 1, 2007 you can combine html and php, but the page has to have a .php extension Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218976 Share on other sites More sharing options...
phpQuestioner Posted April 1, 2007 Author Share Posted April 1, 2007 Yeah - I cannot do that though; it is only a server that does not allow PHP; but thanks. Anyone with any other ideas? Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218978 Share on other sites More sharing options...
kenrbnsn Posted April 1, 2007 Share Posted April 1, 2007 If your host doesn't support PHP, then you can't use it. Get a new host. Ken Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218980 Share on other sites More sharing options...
phpQuestioner Posted April 1, 2007 Author Share Posted April 1, 2007 its not on my host; it is on another server/host Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218983 Share on other sites More sharing options...
interpim Posted April 1, 2007 Share Posted April 1, 2007 that is what kenrbnsn is saying... Find a new host to use... you can't use PHP if your host doesn't support it. Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218986 Share on other sites More sharing options...
phpQuestioner Posted April 1, 2007 Author Share Posted April 1, 2007 that is not an option - my host allows php, but the html page I want to display PHP in does not allow: includes, javascript, or iframe. What you are trying to say is it cannot be done - right? If it cannot be done; I will live without PHP in my HTML page, but I can not Find a new host to use... I am advertising on this host; that you are saying that I should change. So I cannot very well change the marketers host. They allow me to use my own html, but not php, includes, or iframes. I was just wondering if there was a way around that with XML, but I guess the answer is "No". That will be fine; I will just drop the idea I was going to use. Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218988 Share on other sites More sharing options...
interpim Posted April 1, 2007 Share Posted April 1, 2007 correct not possible with those restrictions... Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218990 Share on other sites More sharing options...
phpQuestioner Posted April 1, 2007 Author Share Posted April 1, 2007 good enough..... Quote Link to comment https://forums.phpfreaks.com/topic/45108-solved-display-php-code-in-html-with-limitations/#findComment-218992 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.