What can i add in constructors in PHP?

Can I add this php to a html page ?

  • Hi <?php include('rss_reader_blog.php')?> Can I addthis to a html page or does it need to be php ? Thanks

  • Answer:

    You'll probably need to have the web-server, e.g. Apache, hand off processing html files to PHP. Whether you can do that yourself via an htaccess file or the Apache conf file depends on your host. That will mean that PHP is processing all pages though, which may slightly slow things down (although possibly not a noticeable amount).

mrajsmit... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

It NEEDS to be php. You could, however, setup configure your web server to treat .html extensions as php, in which case, you CAN put in any php in a file using the html extension.

Yes.

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.