Code2Design.com

User login

The Layout

Programming

Graphic Design

Resources

Navigation

C2D Projects

Unsystematic Affiliates

Capital Tutorials AOM Designs AK Pro King Tutorial 

Change Language

Who's online

There are currently 0 users and 5 guests online.

PHP in HTML

PHP will only be processed in files that the server (apache or IIS) gives it to process. The default is that only .php or .php3 files are given to the PHP core for processing. However, you can change it so that .html or even .txt are also given to the PHP core to be processed (but there is no reason to).

HTML code in .asp, .php, .html, etc will always be processed by the browser. You don't need a file to be .HTML for html code to work.

I don't have more than 2-3 html files in all 10+ of my sites.

Also, xampp is just like wamp so you are fine. I just thought you did your own install of L.A.M.P. Still, you need to go to tools->folder options->view and uncheck "hide extensions for known file types". I bet you are saving php files as name.php.txt but all you see is "name.php"


Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br> <br /> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use BBCode tags in the text, URLs will be automatically converted to links
More information about formatting options



Like what you see?

Why not add more? C2D is looking for other Christian Web Masters who would like to help write articles for this site. If you have expericance in FLASH, CSS/HTML, PHP/MySQL, PhotoShop/GIMP, Blender, Javascript, or just General Design - our users would love to hear what you have to say. Contact Us

delicious   digg   reddit   magnoliacom   newsvine   furl   google   yahoo   technorati