User Name
Password
AppleNova Forums » Programmer's Nook »

Is there a way to convert PHP to HTML


Register Members List Calendar Search FAQ Posting Guidelines
Is there a way to convert PHP to HTML
Thread Tools
steven moffat
Member
 
Join Date: Jan 2005
 
2007-08-27, 17:16

Is there a way to convert a PHP site to html??
  quote
PKIDelirium
Veteran Member
 
Join Date: Oct 2005
 
2007-08-27, 18:06

  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2007-08-27, 18:16

Elaborate.
  quote
adamb
Formerly “adambrennan”
 
Join Date: Oct 2005
Location: Northern Ireland
 
2007-08-27, 18:24

View source -> Copy -> Paste?

  quote
steven moffat
Member
 
Join Date: Jan 2005
 
2007-08-27, 18:26

I just got a new job and they want me to change some of the things on our website. I use DW and downloaded the site into it and it I am only familiar with html. This site is .php and i have absolutely no experience in that. I was wondering if there was a way to get rid of all the php stuff and make it a regular html site.
  quote
ast3r3x
25 chars of wasted space.
 
Join Date: May 2004
Send a message via AIM to ast3r3x  
2007-08-27, 18:50

I'll say it, sounds like a horrible idea. Even worse that you are using dreamweaver which makes horrible code. Just learn PHP. If you are converting from PHP to HTML you are moving backwards and making things more difficult for editing in the future.

I'd seriously try to learn PHP, if you have any questions, you can IM me as 'ast3r3x' or post on here and I'll be more than glad to help you or give you some tips.

http://www.w3schools.com/php/default.asp

Also, while you are at it, you could learn XTHTML & CSS so you don't have to use something like DW.
  quote
Kraetos
Lovable Bastard
 
Join Date: Dec 2005
Location: Boston-ish
 
2007-08-27, 19:00

PHP and HTML are entirely different things. PHP is a server-side scripting language. PHP lets you, among other things, interface with a database and generate dynamic content. PHP is used entirely for adding scripting functionality to a webpage, it does not directly control the markup or styling of the page. I say directly because PHP is commonly used to manage HTML or CSS, but PHP isn't used to actually control the styling or structuring of content.

So, in short, no. PHP is used to manage HTML, not replace it. Eliminating PHP from an existing website would quite literally cause a train-wreck, with the sites content as the cars in the train.

Oh yeah, and what ast3r3x said: Dreamweaver, and WYSIWYG HTML editors in general, suck. A lot. Hand code; it sounds intimidating if you're dependent on Dreamweaver, but mastering CSS and PHP will help you to replace the automatic crap Dreamweaver does for you (like templates), and produce much, much cleaner (read: faster and more reliable) code. I worked for an organization that totally relied on Dreamweaver for template management, and unsurprisingly, their site was a complete and utter mess. I recommended they switch to a real CMS written in PHP, so they picked up CommonSpot, a CMS written in *shudder* ColdFusion.

At that point, I quit.

Logic, logic, logic. Logic is the beginning of wisdom, Valeris, not the end.
  quote
Fahrenheit
Veteran Member
 
Join Date: Sep 2005
Send a message via ICQ to Fahrenheit  
2007-08-27, 19:05

Quote:
Oh yeah, and what ast3r3x said: Dreamweaver, and WYSIWYG HTML editors in general suck. A lot. Hand code. It sounds intimidating if you're dependent on Dreamweaver, but mastering CSS and PHP will help you to replace many of the automatic crap Dreamweaver does for you (like templates), and produce much, much cleaner (read: faster and more reliable) code.
A good first step is something like Taco, which colours all of the tags etc. and so makes it a bit easier to see what is going on, as well as having live split screen preview.
  quote
PKIDelirium
Veteran Member
 
Join Date: Oct 2005
 
2007-08-27, 19:48

Taco = teh shits.
  quote
spotcatbug
Veteran Member
 
Join Date: May 2004
Location: Clayton, NC
 
2007-08-27, 20:00

Quote:
Originally Posted by PKIDelirium View Post
Taco = teh shits.
If you drink milk with your meal, it'll help with that.
  quote
Posting Rules Navigation
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

Post Reply

Forum Jump
Thread Tools

« Previous Thread | Next Thread »

All times are GMT -5. The time now is 07:08.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova