Activity Stream
48,167 MEMBERS
6627 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Angry PHP in HTML problem

    Hi there !
    I am with php 5.3.1.0 and it seems that i can't add php code in html pages.

    I tried <html> <?php echo 'test'; ?> </html> but nothing happens.

    It is from the php.ini or what ?
    Porsche_maniak Reviewed by Porsche_maniak on . PHP in HTML problem Hi there ! I am with php 5.3.1.0 and it seems that i can't add php code in html pages. I tried <html> <?php echo 'test'; ?> </html> but nothing happens. It is from the php.ini or what ? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    epicimagehost.com
    What does the page show?

  4.     
    #3
    Member
    Website's:
    maxneeds.info
    Nothing...
    Or if i try more complicated php it just shows the code from somewhere in text...

  5.     
    #4
    Retired NinJa
    Website's:
    loledhard.com
    HAVE u added php extension to ur file. & make sure it is .php & not .php.txt



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  6.     
    #5
    Member
    Change the file extension from html to php

    edit: Humour already said that

  7.     
    #6
    Member
    Website's:
    maxneeds.info
    Nooo.. it has to be .html as in my cases i don't have other option.
    There must be a setting somewhere...

  8.     
    #7
    Member
    Website's:
    BTfreak.com Adult-BB.org
    Are you testing it locally without a web server software running or on a web server?

  9.     
    #8
    Member
    Website's:
    maxneeds.info
    i found the solution..
    I had to add

    Code: 
    	addtype application/x-httpd-php .html
    addtype application/x-httpd-php .htm
    to apache conf !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Html Problem! Website breaks apart when zoomed!
    By Drag in forum Web Development Area
    Replies: 5
    Last Post: 7th Oct 2012, 09:47 AM
  2. html codding problem
    By warezgalaxy in forum Web Development Area
    Replies: 1
    Last Post: 6th Sep 2012, 09:32 AM
  3. Small Footer Problem (<div> problem ??)
    By Ashleyuk1984 in forum Technical Help Desk Support
    Replies: 2
    Last Post: 26th Jan 2011, 02:53 PM
  4. Replies: 8
    Last Post: 21st Jul 2010, 06:13 PM
  5. [html] align problem
    By Porsche_maniak in forum Webmaster Discussion
    Replies: 11
    Last Post: 17th May 2010, 06:17 PM

Tags for this Thread

BE SOCIAL