Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TRICK] Write php codes inside .html files
#2
um correct me if im wrong but I think you stole that from here
that post was made before this one and please give credit to kab012345

(11-18-2009, 07:35 PM)kab012345 Wrote: You could create a .htaccess file (or add the following code to it):

Code:
<Files index.html>
AddType application/x-httpd-php .html
</Files>

In the HTML file, you can include your script wherever you want it to be displayed.
PHP Code:
<?php include 'status.php'?>

Let me know if this works.
[Image: izsyo6.jpg]


Reply


Messages In This Thread
RE: [TRICK] Write php codes inside .html files - by uber1337 - 11-24-2009, 06:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 799 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,323 10-10-2011, 01:00 PM
Last Post: Greyersting
  How to write good php code [Must Read] BannedPoop 19 5,952 08-30-2011, 08:28 AM
Last Post: Slash
  HTML&PHP Games. flAmingw0rm 25 3,668 06-04-2011, 07:23 AM
Last Post: Strafeness
  HTML Website Anon 6 2,032 06-01-2011, 03:26 AM
Last Post: !LoL

Forum Jump:


Users browsing this thread: 1 Guest(s)