Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum > PHP

PHP The most widely used server-side programming language for web applications.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2007, 08:08 PM
jeffreywfoster30
Status: Offline
Junior Member
 
Join Date: May 2007
Posts: 1
jeffreywfoster30 is on a distinguished road
Default How do I convert HTML files to PHP files?

And are they dynamic to the point of self updating? I have a static site that I would like to convert so it is more easier to maintain. I figure if I convert to PHP I acn the create an inerface that will allow me to just quickly plug in new info as needed. Does this sound like a good idea?
Reply With Quote

  #2 (permalink)  
Old 05-30-2007, 12:07 AM
giraffe
Status: Offline
Junior Member
 
Join Date: May 2007
Posts: 1
giraffe is on a distinguished road
Default

You don't have to do anything to convert HTML files to PHP per se. However, it sounds like you have a menu, that you would like to be automatically updated when you add new content. That is easy to do in PHP, and you can take your HTML file with the menu and insert a little PHP script that will render the menu for you.
Reply With Quote

  #3 (permalink)  
Old 05-30-2007, 08:15 PM
knitting_guy_one
Status: Offline
Junior Member
 
Join Date: May 2007
Posts: 1
knitting_guy_one is on a distinguished road
Default

HTML files are static. You don't need to change anything. All that you need to do is to change the extensions of your html files from .html to .php. Once you have changed the extensions to php, then you can add logic to the files to make them dynamic.
Reply With Quote

  #4 (permalink)  
Old 05-31-2007, 06:14 AM
drixie
Status: Offline
Member
 
Join Date: Apr 2007
Posts: 69
drixie is on a distinguished road
Default

You can do all of the above. But if you want to do it without much stress, I advise you to use a content management system. Many of these are available through fantastico in cpanel and can be installed easily. You can try phpnuke or joomla. all you need is a little bit knowledge of how these great scripts work. But if you want to do it your way, you cant technically just convert html files into php. You have to write php code which will generate html but will still have a .php extension.
__________________
There are 10 types of People in the world. Those who understand binary and Those who dont.
www.pixieconcepts.com - Web and Graphics Design
www.nigerianz.com - Forum for Nigerians all over the world
Reply With Quote

  #5 (permalink)  
Old 08-17-2007, 12:41 AM
zerofool2005
Status: Offline
Junior Member
 
Join Date: Aug 2007
Posts: 15
zerofool2005 is on a distinguished road
Default

you can then just add you php code partway thgough the html code

using <?php
code here
?>

eg
<?php
print("$menu1");
print("$menu2");
print("$menu3");
print("$menu4");
print("$menu5");
?>
Then the rest of the hrml. But remember you need to code the variables too
Reply With Quote

  #6 (permalink)  
Old 01-26-2008, 02:39 AM
snoop1990
Status: Offline
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
Posts: 356
snoop1990 is on a distinguished road
Default

The main differences between php and html is the structure !

In php you design one template and every side a client requested is build on the server side by rendering a corresponding text and placing it in the template. That is why you call it dynamic.

HTML is not dynamic, it is static that means every side you want your clients to see hast to be designed. For sure you could use frames or so (which would be much easier to convert to php, because you already have a main part).

But I would recommend to use mysql as database solution to store your text in , which means you only need one or two php files.

Regrades Snoop1990

I am going to write a php beginners tutorial in february.
Reply With Quote

  #7 (permalink)  
Old 06-08-2008, 01:57 PM
bokepwap
Status: Offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
bokepwap is on a distinguished road
Default

Just using
PHP Code:
htmlspecialchars() 
For the example, we have file html with names file.html
you can make this code:
Code:
 = implode("file.html");
echo htmlspechialchars();
take enjoy
__________________
Make Profusehost The Best Free Webhosting
Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Files, Illegal Files, File Hosting John News 0 05-18-2008 06:12 PM
Files KOA Free Web Hosting Support 1 02-05-2006 03:10 PM
files killyouall Programming / Scripting / Coding Forum 2 02-04-2006 03:06 PM
rar files ForeverDestiny Free Web Hosting Support 6 02-03-2006 04:54 AM
RAR files DavoutGraphical Free Web Hosting Support 8 12-15-2005 08:55 PM


All times are GMT -7. The time now is 02:48 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80