Jump to content
xisto Community
Sign in to follow this  
itssami

Html To Php Convertor?

Recommended Posts

Hey.I have made a simple website

http://www.hugedomains.com/domain_profile.cfm?d=pakdir&e=com

this is in html.But its very difficult to update the html pages.I want to convert it to php site.But i dont know about php language ... is there any "PHP website builder" ?? is there anyway to build a php website without knowledge of php , with the help of some program ? for example there is a frontpage for html etc.Please tell me any solution?

Share this post


Link to post
Share on other sites

Consider using a Content Management System like Joomla or php-nuke. Both are available in the fantastico in your cpanel for the Xisto accounts and both are php-based. It should simplify your updates and require less work to maintain the site's content. All the Templating is done. Review the Tutorials and maybe check out the features at their Support Forums. Look for the addresses in the Fantastico portion of the cpanel by choosing the CMS and pressing 'go'. The links are there to click on. Most of the better CMS software allows you to skin the CMS for presentation, add dynamic content, etc.

Share this post


Link to post
Share on other sites

It would be strange to see a program change html into php and vice versa. I don't think one exists. That would be a lot of work to make one. You would have to know more php than many web programmers do. Than be able to code that and have it change one thing to another. It wouldn't be easy and would take a lot of time.

Share this post


Link to post
Share on other sites

The thing here is that php is programming code, and html is mainly used to create a layout (without including scripts). You can mix match both in php files (but not in html files), but making things easier with a php site builder will not be easy if you do not know php at all. Using a Content Management System as jlhaslip has indicated is the best way to go. I suppose the biggest issue you'll have with a CMS would be to manipulate it to match your layout, but with a bit of time that's not even an issue. In your free time I'd recommend learning php (http://www.w3schools.com/php/default.asp -- intro php), you'll be able to create some pretty cool features for your users and make it easier to get things just the way you like them.

Share this post


Link to post
Share on other sites

Like sm00nie said I would reccomend going to w3schools.com and at least start to learn the basics. You can't really have a site that is just php because that isn't what php was made for. They are two different types of scripts. Another content management system would be CuteNews. It is a lot easier to update your content because all you have to do is type it in and submit. It isn't hard to set up either. You can find it here:
http://cutephp.com/

Share this post


Link to post
Share on other sites

you can't "convert' HTML to PHP. it is impossible because it is not the same type. PHP is NOT used by your browser. Your browser can only read HTML (for simplicity sake). On the webserver, an HTML page is sent directly to internet explorer without doing anthing to it (no parsing). For PHP pages, the webserver parses it. This means it looks through your page and executes all the PHP commands. The result is then sent to your internet explorer. When you load a PHP page from internet explorer you are actually not getting a PHP page, you are getting an HTML page that the webserver has generated. PHP is SERVER SIDE SCRIPTING. Asking to convert HTML to PHP is like saying you want to convert a word document to JAVA. It is not possible.

Share this post


Link to post
Share on other sites

Like other members have suggested I also suggest you to use Content Management systems like Mambo, Joomla, Xoops, PHP-Nuke, e107 and others. If you want your site to work easily for you which will be dynamic it is better to use those, it will take much time until you can code your own site using PHP even if you learn. Besides, even those who are expert is PHP also don't waste their time coding their own sites rather they use CMS and alter or hack the codes according to their needs which will not take much time.And also if you learn PHP the best way to experiment is to start testing those already available free CMS and play around with the codes.

Share this post


Link to post
Share on other sites

Actually the idea of converting your HTML file to PHP files is not a ridiculas as everyone has suggested. If fact I think that most of the reasons not to do so have been pretty short sighted.

There are a number of reasons to convert your HTML files to PHP.
The biggest reason is to prepare the file to use PHP scripting. For example, if you wanted to add a PHP include to your page, the file would first need to be converted to PHP. It doesn't matter if the PHP file actually contains any php coding or not.

All you really need to do is change all of your files extentions from .html to .php and edit any internal links form .html to .php!

Your biggest problem will be a large number of dead links since your HTML files will no longer exist. As a result if you url is listed in search engines and other sites, the links will no longer work. Here is a solution for that problem: http://forums.xisto.com/topic/88716-redirecting-all-htm-files-to-php-site/

======================================
The benefit of using a PHP include in your page is that you can include the contents of a file where ever you decide on your page. (basically where ever you place the include) The most common use of this technique by new PHP users is a site map or menu. You can write a single file that contains all of your menu information and insert that files contents into each of your web pages. Then if you want to edit your menu, you need only to edit the one file one time.

For more information, see this post: http://forums.xisto.com/topic/86340-cms101-content-management-system-design-basic-cms-with-php-includes/

You might be able to get someone to write a script to convert your files and clean the links up inside the files.
I would help but I'll be out of town for about a month.

Good Luck. :huh:

vujsa

Share this post


Link to post
Share on other sites

Here's some programs that will convert html to php, but they aren't free:

HTML To PHP Converter 4
http://forums.xisto.com/no_longer_exists/

Arigola html to php converter
http://forums.xisto.com/no_longer_exists/

HTML to PHP or ASP
http://www.websitedatabases.com/html-to-php.html


Arigola is very good, and to tell you the trueth, i think i have a free version from the past of this program, but i'm not sure, i will post it here if i find it when i have time.

Edited by Lyon2 (see edit history)

Share this post


Link to post
Share on other sites

It isn't quite logical to convert your pure HTML site into a PHP page because HTML codes are basically client-side codes that display everything as text. PHP is processed on the server and hence the codes are not downloaded into the client's computer. The client only gets the processed output of the PHP program, which is then converted to plain HTML text for the client, or visitor to view.

There's quite a number of PHP builder, free and commercial versions. Both you will need at least basic PHP knowledge to use them. Otherwise you will not know what is going on. It's unlike Frontpage, Dreamweaver or anyother HTML builder as they are pretty straight forward, making what you see as what you get. HTML simply displays everything in it. PHP builder is not making as what you see with what you get. It's more towards programming as what you want to do upon certain events. Hence people who doesn't know basic PHP will likely don't know what is going on in the PHP builder software.

You may like to try the following PHP builders listed in this site
http://www.php-editors.com/review/

An alternative to building PHP based website is to use CMS (Content Management Systems) like what many suggested. These CMS are built with PHP which meant to display whatever you've place in it, making it works like simple HTML editing, what you see is what you get type.

You can check out this site to download a free CMS to build and manage your site for free.
http://forums.xisto.com/no_longer_exists/

Share this post


Link to post
Share on other sites

If You want to update your site you can do this by Frontpage Extensions in your cpanel by this opetion you can open microsoft frontpage program and type your html then save , frontpage automatic delete your html file on your host then upload new file ....but if you want to make one php site go at Fantastico and install one PHP-Nuke , by this opetion you can make one php portal in easy case , if you know php lan you can search in hotscript and find one script and download / upload / and install at your host

Edited by farsiscript (see edit history)

Share this post


Link to post
Share on other sites

Technically, if you want to convert the files of your site to PHP, just rename them with a .php extention. Making your site CMS-driven, however, is another story. Try a CMS like Mambo (http://www.aavictoria.org.au/) / Joomla (https://www.joomla.org/), or CMS Made Simple (one of my newly discovered secrets, http://www.cmsmadesimple.org/). All of these work off of a template, giving all the pages in your site a common appearance (unless you specify a different template for different parts of your site, possible in all of the aforementioned CMSs).

Share this post


Link to post
Share on other sites
Replying to no9t9No9t9"Right to Internet Explorer", that says it all, know what you are talking about before you open your pieholeYES it can be converted to a self executing PHP code, there are several convertors available online to convert HTML into PHP scripts, http://seotools.devshed.com/tools/html-to-php-converter/ for exampleThat however would not solve your problem, what you want is a CMS like the other suggested, so you only have to post and update the actual content, not the pages ect.-reply by Outlawsys

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.