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

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

aplefka

Lifer
Feb 29, 2004
12,014
2
0
Originally posted by: homercles337
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.

That's all you could come up with after getting owned? Sorry, try again.

Dreamweaver is a great program for both the beginner and advanced web designer.

And as for HTML, there is no reason for anyone to switch to PHP if they're not going to have any kind of session-specific data or anything of that nature.

Just save face and stop posting in this thread.
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Originally posted by: JackMDS
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:
Wow, I've never seen anything quite like those two links before :Q ... Of course, I knew what PHP was good for before even trying to use it, so I wouldnt even go looking for that type of thing. I cant believe they're selling an HTML -> PHP converter.

 

mugs

Lifer
Apr 29, 2003
48,920
46
91
Originally posted by: Modeps
Wow, I've never seen anything quite like those two links before :Q ... Of course, I knew what PHP was good for before even trying to use it, so I wouldnt even go looking for that type of thing. I cant believe they're selling an HTML -> PHP converter.

And it replaces everything with echos! I'll sell you an HTML->PHP converter that does a better job... all it'll do is change the file extension from .html to .php. Same net effect, but it'd probably run a bit faster.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Ha!! I've never seen anything as dumb as that first link. Especially the html -> jsp converter :laugh:
 

Codewiz

Diamond Member
Jan 23, 2002
5,758
0
76
Originally posted by: homercles337
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.

Nice job refuting my points there.
 

nick128

Member
Jan 24, 2005
65
0
0
Originally posted by: kamper
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.

Eh, i dont' blame the prof, it's not her class, it's administered by a different woman, whose reviews got so bad that they stopped letting her teach the stuff, but she's still upper-level staff so she gets to administer the courses. my actual prof's hands are tied 'cause she wanted to use PHP, but got slapped with this class so fast she didnt' have time to come up with a whole new course. Plus the old prof looms over her head on just about everything she does.
 

skyking

Lifer
Nov 21, 2001
22,540
5,584
146
Back to the original question: It is totally dependant on what kind of content you have.
1) static HTML site, occiasional content changes, links change now and then? Stick with HTML, hands down. That is the stuff your browser renders. "Meat, it's what's for dinner".
2) Want to vary content on a per-user basis, daily or weekly major content changes, roll through dynamic links? Gotta use something like PHP.
3) somewhere in between 1 and 2? it is a price/payoff deal. Learning it, rewriting a whole site properly and securely < nod to n0c >, testing it out, that is no trivial deal.
If you think your site or sites are going to move that direction, then PHP is as good and well documented a choice to use, and I'd get to learning it.
 

TheTurk

Member
Jun 21, 2003
126
0
0
I am realively new to PHP. Had been using Frontpage HTML. Though visually I was able to create pretty pages, the overall control was difficult with FP.

My webhost provies several PHP programs that i can use in my site..So far it had been slightly difficult but rewarding experience.
However, I am having difficulty to figure out how to make the php page my "index.htm" page.

Any ideas?
 

MikeMike

Lifer
Feb 6, 2000
45,885
66
91
Originally posted by: nick128
Originally posted by: kamper
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.

Eh, i dont' blame the prof, it's not her class, it's administered by a different woman, whose reviews got so bad that they stopped letting her teach the stuff, but she's still upper-level staff so she gets to administer the courses. my actual prof's hands are tied 'cause she wanted to use PHP, but got slapped with this class so fast she didnt' have time to come up with a whole new course. Plus the old prof looms over her head on just about everything she does.

you go to purdue. i did too. now which site was yours?

ours turned out fine JSP can be taught correctly and it is very very very powerful if givin the correct stuff.
 

yoda291

Diamond Member
Aug 11, 2001
5,079
0
0
Convert to php if you have a need for server-side scripting. Otherwise, don't worry about it.

I don't think you could fill a semester full of php stuff. Granted, that means I underestimate how very little material is presented in an average class, but I would imagine that there really isn't nearly enough material to fill even a month worth of class. how long does it take to show people how to write a for loop in any particular language?
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
I am paying $99/year to be on a host that supports ColdFusion. PHP can most likely do the same for a fraction of what I'm paying for hosting... but I don't know PHP/mySQL enough to convert my code. :(
 

everman

Lifer
Nov 5, 2002
11,288
1
0
PHP is a nice and easy way to do some really useful things.
Working with databases is very easy. The code is simple and pretty flexible.
Dreamweaver or anything else like it doesn't even come marginally close, we're talking about two totally different things here.
Yes I like dreamweaver actually, but for coding php I like zend and have played with eclipse too.
If you want something more complex, check out JSP and try setting up an apache-Tomcat server.