| |||||||||
| |||||||||
| Not A Member Yet? Register today and become part of the community. |
| |||||||
| PHP The most widely used server-side programming language for web applications. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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? |
| |||
| 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. |
| |||
| 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. |
| |||
| 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 |
| |||
| 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 |
| |||
| 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.
__________________ Regards Snoop1990 (former staff team member) Software: My Projects: PcCom.info - the computer community top-domain.co.cc- co.cc domain services up-next.co.cc- the latest movie trailers |
| |||
| Just using PHP Code: you can make this code: Code: = implode("file.html");
echo htmlspechialchars();
__________________ Make Profusehost The Best Free Webhosting |
![]() |
| Thread Tools | |
| Display Modes | |
| | |||||
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 |