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

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1.     
    #1
    Probation

    Default Stuck with php parsing...Please Help

    Hi Everyone. I am new here so this is my first post.

    I just opened a shared hosting account with WRZHost and I am having trouble with getting php to parse in html.

    Not being too familiar with getting php to parse in html I have tried every solution I could find. Unfortunately, none of them have solved my issue.

    At the moment I can see the html page but none of the php is being shown either in code form nor as the file that is being called. Basically where the php should be it is as it never existed.

    Any help would be greatly appreciated, especially if someone who has figured this one out on a WRZ server.

    The server has Apache version 2.2.14, and has PHP version 5.2.12 if it makes any difference. Thanks ahead of time for any help.
    jimmy Reviewed by jimmy on . Stuck with php parsing...Please Help Hi Everyone. I am new here so this is my first post. I just opened a shared hosting account with WRZHost and I am having trouble with getting php to parse in html. Not being too familiar with getting php to parse in html I have tried every solution I could find. Unfortunately, none of them have solved my issue. At the moment I can see the html page but none of the php is being shown either in code form nor as the file that is being called. Basically where the php should be it is as Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    make a file name info.php and add this

    <?php

    phpinfo();

    ?>
    upload to your site folder somewhere and visit through URL and see if you get something....
    dont post anything here just see if you get some php info related page or not,

    Edit: and welcome to KWWH site
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  4.     
    #3
    Probation
    Thanks for the help. I tried what you suggested and I get an error message saying that phpinfo() has been disabled for security reasons.

  5.     
    #4
    Probation
    Sorry, I meant I get a warning message saying phpinfo() has been disabled. Not an error message.

  6.     
    #5
    Respected Developer
    as you mentioned its a shared hosting you need to contact your host, you dont have access to your php.ini file so they will fix for you disable_functions.
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  7.     
    #6
    Member
    make an .htaccess file, and put this in it:

    AddType application/x-httpd-php .htm .html

    it will then allow you to put php in html

  8.     
    #7
    Probation
    Thanks for the help. I contacted the host and am waiting for a reply.

  9.     
    #8
    Member
    The host shouldn't have anything to do with putting php in html.
    that's just how it is. That's why you have to put that little bit of code in a htaccess file

  10.     
    #9
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    when adding PHP in a HTML file you need to break the HTML like this:

    Code: 
    <a href="http://besthostingforums.com">blahhhhhhhhh</a>
    <?php
    $some_php_here = true;
    ?>
    <a href="http://besthostingforums.com">blahhhhhhhhh</a>
    Also the extension MUST be .php or it won't work, there is a way around that but i can't be bothered to explain it will only confuse you further.

  11.     
    #10
    Member
    Quote Originally Posted by DEViANCE View Post
    when adding PHP in a HTML file you need to break the HTML like this:

    Code: 
    <a href="http://besthostingforums.com">blahhhhhhhhh</a>
    <?php
    $some_php_here = true;
    ?>
    <a href="http://besthostingforums.com">blahhhhhhhhh</a>
    Also the extension MUST be .php or it won't work, there is a way around that but i can't be bothered to explain it will only confuse you further.
    the code i told him to put in his htaccess will let you put php in html. such as:

    a file called: hi.html

    <html>
    hi<br />
    <php echo hi; ?>
    </html>


Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Internet Explorer Parsing error?
    By John in forum Webmaster Discussion
    Replies: 1
    Last Post: 11th Sep 2012, 04:09 PM
  2. Stuck with Dr.Web
    By ChosenOne in forum Technical Help Desk Support
    Replies: 2
    Last Post: 12th Feb 2012, 04:15 AM
  3. Disable URL parsing in Chat Box?
    By eLight in forum Polling Plaza
    Replies: 33
    Last Post: 1st Apr 2011, 05:18 PM
  4. IPB3 Disable Links Parsing in topics
    By elmazagangi in forum IP.Board
    Replies: 1
    Last Post: 15th Jun 2010, 11:02 PM
  5. I'm Stuck
    By .m0nster in forum vBulletin
    Replies: 1
    Last Post: 20th Feb 2009, 04:15 AM

Tags for this Thread

BE SOCIAL