How to Change html to php.

5 replies
  • WEB DESIGN
  • |
I have some OTO templates,and some video optin templates that are in html.
Is there any way to change them to php,or make them work with wordpress?

I tried putting them in an editor and and saving as php but it did not work.
I tried to copy and paste and that didnt work.
The only way i could think that might work,would be to ftp them to my website,then change the extension somehow.

Or just sell them as html is html sites are still as popular as they used to be.
#change #html #php
  • {{ DiscussionBoard.errors[4065129].message }}
    • Profile picture of the author pcpupil
      Thanks for the quick reply.
      I have the yellowpipe lynx viewer.
      Never heard of this other one.

      Ill go look at it right now.
      Signature
      I will be your Digital Assistance for cheap.PM me.
      I can help relieve your work load.Pm me

      {{ DiscussionBoard.errors[4065172].message }}
      • Profile picture of the author Johnny Optimo
        You can rename .html files to .php by just changing the extension and FTPing to your server - you can also change the file extension directly through FTP.

        really there is no conversion necessary, your web server with PHP installed will read the file, execute any PHP inside the file, and spit everything back out as html to the user

        Unless you have a local installation, you need to run the files on your server for the php to execute correctly.

        If you dont have any actual PHP code in the php file, the HTML in there will still show. When people create PHP files, the actual file can be a mix of HTML, PHP, JAVA, etc.

        I suggest you read a quick tutorial on how php works, a basic understanding will answer all your questions
        {{ DiscussionBoard.errors[4071151].message }}
  • Profile picture of the author Phyll
    Banned
    Either you simply shange the extention to .php or .html or

    Intern

    <html>
    <?php
    ?>
    </html>

    OR

    <?php
    <html></html>
    ?>

    PHP Example
    <?php
    if($true)
    {
    echo "true";
    }
    else
    {
    echo "false";
    }
    <html><b>Hello Warrior Forum</b></html>
    ?>

    Hope this helps

    Kind Regards
    Phyll.H
    Happy Everline
    {{ DiscussionBoard.errors[4071180].message }}
  • Profile picture of the author pcpupil
    I will go read a little on php,and see what i can find.
    I thank everyone for there help.
    Signature
    I will be your Digital Assistance for cheap.PM me.
    I can help relieve your work load.Pm me

    {{ DiscussionBoard.errors[4071816].message }}

Trending Topics