Why is converting a website to .php better???

KoolDrew

Lifer
Jun 30, 2004
10,226
7
81
Keepijng it updated is easier. One example is if you add a link to the navigation box in your web site instead of editing every page you can edit one php file and use php include on the other pages.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: KoolDrew
Keepijng it updated is easier. One example is if you add a link to the navigation box in your web site instead of editing every page you can edit one php file and use php include on the other pages.

As if you need PHP to do that. Hell, dreamweaver will do that. And SSI will do that with a simple <!--#include file="include_this_page.html" -->, there's no reason to learn an entire programming language to do that.
 

homercles337

Diamond Member
Dec 29, 2004
6,340
3
71
Originally posted by: notfred
Originally posted by: KoolDrew
Keepijng it updated is easier. One example is if you add a link to the navigation box in your web site instead of editing every page you can edit one php file and use php include on the other pages.

As if you need PHP to do that. Hell, dreamweaver will do that. And SSI will do that with a simple <!--#include file="include_this_page.html" -->, there's no reason to learn an entire programming language to do that.

Dreamweaver? Puhlease... :roll: PHP == free. Crapweaver == $400.

The real power of PHP is the fact that you can deliver dynamic content without the usual if IE, else Standard HTML scripting crap. Not to mention SQL access. Does crapweaver automatically generate a SQL database and access it for you also?
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Last I heard, php doesn't generate databases :confused: But it is a far more intelligent and handy tool than ssi.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: homercles337
Originally posted by: notfred
Originally posted by: KoolDrew
Keepijng it updated is easier. One example is if you add a link to the navigation box in your web site instead of editing every page you can edit one php file and use php include on the other pages.

As if you need PHP to do that. Hell, dreamweaver will do that. And SSI will do that with a simple <!--#include file="include_this_page.html" -->, there's no reason to learn an entire programming language to do that.

Dreamweaver? Puhlease... :roll: PHP == free. Crapweaver == $400.

The real power of PHP is the fact that you can deliver dynamic content without the usual if IE, else Standard HTML scripting crap. Not to mention SQL access. Does crapweaver automatically generate a SQL database and access it for you also?

The OP is not talking about anything related to databases, he's talking about "converting" a plain HTML site to PHP.
 

homercles337

Diamond Member
Dec 29, 2004
6,340
3
71
Never said it does. KoolDrew claimed that crapweaver will do certain things (includes), i was just defusing any future claims about the "magic" that crapweaver can do. Poorly worded perhaps, eh?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
Originally posted by: homercles337
Never said it does. KoolDrew claimed that crapweaver will do certain things (includes), i was just defusing any future claims about the "magic" that crapweaver can do. Poorly worded perhaps, eh?

KoolDrew didn't say anything about dreamweaver, I did. And I didn't say it did includes, I said it will automatically update all your links in a navigation box.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Plain HTML is harder to exploit than any scripting language. I'm starting to dislike PHP/perl/asp/whatever more and more.
 

doan

Golden Member
Dec 17, 2000
1,445
0
76
Downside of PHP is that your site has to run on a server. With plain html it can run off a hard drive, cdrom, or thumb drive on any PC.

 

homercles337

Diamond Member
Dec 29, 2004
6,340
3
71
@ Fred, yea, youre right. I probably let my hatred of flash (wtih extentions to Crapomedia) get the best of me sometimes.

@ nocmonkey, sure, but the trade off is functionality.

@ doan, how else would you host a site than on a server? Sure you have to run a server to parse the PHP code for development locally, but eventually youre going to have to run it on a server if you ever plan to launch anyway, right?
 

Codewiz

Diamond Member
Jan 23, 2002
5,758
0
76
Originally posted by: homercles337
@ Fred, yea, youre right. I probably let my hatred of flash (wtih extentions to Crapomedia) get the best of me sometimes.

@ nocmonkey, sure, but the trade off is functionality.

@ doan, how else would you host a site than on a server? Sure you have to run a server to parse the PHP code for development locally, but eventually youre going to have to run it on a server if you ever plan to launch anyway, right?

Well at least you have shown your complete ignorance in this thread. I guess you have never heard it is better to keep your mouth shut and look like an idiot, than to open your mouth and remove all doubt.

Dreamweaver is a nice WYSIWYG. Regardless if you are writing ASP, PHP, JSP or straight HTML. However, a person just has to know it doesn't create the cleanest code.

It does help with rapid application development. I can bang out an web application faster in Dreamweaver than I could in Ultraedit.

However, I would never rely only on Dreamweaver. I use ultraedit for many things where Dreamweaver falls short. There is no perfect tool but dreamweaver does make a lot of stupid stuff quick and easy.

As for converting to PHP, if you don't have a reason then don't. If your site isn't really data driven then don't waste your time.

HTML as already stated is more portable. You can throw it on any media and it will display correctly in a web browser. That is not the case with PHP or any server side scripting language.
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,510
406
126
Most of you are relatively young and do not remember that many American Car Models use to have a Station Wagon version.:clock:

Station Wagons was used by young couples while tending to their little kids, it was not Not considered a Cool Car.:thumbsdown:

The Station Wagon is Gone its replacement is the SUV.:thumbsup:

For what reason the SUV (unlike the Station Wagon) became ?Cool? and many people (including my self) use it, regardless of family needs.:shocked:

Same phenomenon occurs in many computer related activities.

RAID is cool 90% of regular users probably gain very little from using it but it is cool.:disgust:

PHP is in the same category there are situation (especially in big complicated LAN) that without scripting it is impossible to perform certain tasks.:light:

However it became Cool among Hobbyist to use it for No use.

?Viva La Cool?.:beer:

:sun:
 

homercles337

Diamond Member
Dec 29, 2004
6,340
3
71
Originally posted by: Codewiz
Originally posted by: homercles337
@ Fred, yea, youre right. I probably let my hatred of flash (wtih extentions to Crapomedia) get the best of me sometimes.

@ nocmonkey, sure, but the trade off is functionality.

@ doan, how else would you host a site than on a server? Sure you have to run a server to parse the PHP code for development locally, but eventually youre going to have to run it on a server if you ever plan to launch anyway, right?

Well at least you have shown your complete ignorance in this thread. I guess you have never heard it is better to keep your mouth shut and look like an idiot, than to open your mouth and remove all doubt.

Dreamweaver is a nice WYSIWYG. Regardless if you are writing ASP, PHP, JSP or straight HTML. However, a person just has to know it doesn't create the cleanest code.

It does help with rapid application development. I can bang out an web application faster in Dreamweaver than I could in Ultraedit.

However, I would never rely only on Dreamweaver. I use ultraedit for many things where Dreamweaver falls short. There is no perfect tool but dreamweaver does make a lot of stupid stuff quick and easy.

As for converting to PHP, if you don't have a reason then don't. If your site isn't really data driven then don't waste your time.

HTML as already stated is more portable. You can throw it on any media and it will display correctly in a web browser. That is not the case with PHP or any server side scripting language.

You, my friend are totally clueless and mildly retarded. Please go die, but before you do get a CLUE what this thread is about. Please, at least TRY to get a clue. Thanks.
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
I'm still wondering what he's trying to convert FROM. Dude just said "convet to PHP".... You cant really convert HTML to PHP. I was thinking he was talking about maybe the advantages of PHP over Coldfusion or ASP or whatever.

Either that or he just wants to say he uses PHP on his website to all his homies.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: Modeps
I'm still wondering what he's trying to convert FROM. Dude just said "convet to PHP".... You cant really convert HTML to PHP. I was thinking he was talking about maybe the advantages of PHP over Coldfusion or ASP or whatever.

Either that or he just wants to say he uses PHP on his website to all his homies.
Either that or he just wanted to start a flame war.
 

Schrodinger

Golden Member
Nov 4, 2004
1,274
0
0
Originally posted by: kamper
Originally posted by: Modeps
I'm still wondering what he's trying to convert FROM. Dude just said "convet to PHP".... You cant really convert HTML to PHP. I was thinking he was talking about maybe the advantages of PHP over Coldfusion or ASP or whatever.

Either that or he just wants to say he uses PHP on his website to all his homies.
Either that or he just wanted to start a flame war.

If he was trying to be cool he'd at least use JSP and servlets ;)

PHP to impress? yikes :p
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Eh. Jsp isn't so impressive. I'd be more impressed with jsf or something like tapestry if you're going to go java.

The whole java on the server thing is a step above php in complexity the same way php is a step over ssi. I think it's too much for the kiddies. I think teh c00lest thing to do is to invent your own extension like .hAx or something. Then people will think you've really found the newest, most mysterious technology, even though it could be anything in reality. ;)
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,510
406
126
Originally posted by: Modeps
I'm still wondering what he's trying to convert FROM. Dude just said "convet to PHP".... You cant really convert HTML to PHP. I was thinking he was talking about maybe the advantages of PHP over Coldfusion or ASP or whatever.

Either that or he just wants to say he uses PHP on his website to all his homies.
Just like many other things involving Computer missinformation (Like Wireless 300' indoor :shocked: ).

It comes from this:

Link to: http://converter.hixus.com/html-to-php.html

Link to: http://www.soft14.com/Web/HTML_Utilities/HTML_To_PHP_Converter_5725_Review.html

And advice like this:

If your server allows PHP scripts, and you would like to add customization features that aren't part of the regular pages, it is highly recommended that you choose PHP as your default file extension preference in place of HTML. Doing so allows you to take advantage of many freely available PHP scripts to help customize. PHP is an open source scripting language that is powerful, stable, and extremely popular for adding dynamic elements to websites. it can allow you to do random photos, includes, and skinning, among many other things. PHP can also help you create a more modular approach to building your templates, thus reducing rebuild times. (quote from soeme where on the Internet).

All of the above is Not Wrong it just lacking giving the perspective to when it make sense to do something, and when it is just a "Cool Hipe".

:sun:



 

nick128

Member
Jan 24, 2005
65
0
0
i loathe JSP. having to suffer through a semester of programming it and it thoroughly sucks. PHP is so much better, things are much simplier. I'm sure you can do more in java, blah blah blah, i don't give a damn. I dislike java even more than i do JSP, think about that since they're both the same language (more or less). Give me PHP any day of the week.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: nick128
i loathe JSP. having to suffer through a semester of programming it and it thoroughly sucks. PHP is so much better, things are much simplier. I'm sure you can do more in java, blah blah blah, i don't give a damn. I dislike java even more than i do JSP, think about that since they're both the same language (more or less). Give me PHP any day of the week.
Sounds like your prof chose jsp for the cool factor and proceeded to do an ass-poor job of teaching it. That's a dumb way to introduce the language and I don't blame you for disliking it. Not that I blame it all on the prof. It's not a good tool for casual web programming.
 

Garlic

Banned
Dec 28, 2004
447
0
0
I was talking about converting from HTML ---> PHP.by the way.

Thanks for all the info.
 

Zugzwang152

Lifer
Oct 30, 2001
12,134
1
0
Originally posted by: Garlic
I was talking about converting from HTML ---> PHP.by the way.

Thanks for all the info.

if you have a static HTML page with no need for server-side scripting, why would you even bother?