«« Next » « Previous
«« Next » « Previous

Link Details

The more you vote, the better it gets. Login and vote now.
Link 81348 thumbnail

By bloid
via killerphp.com
Submitted: May 16 2008 / 12:20

I recently had this question put to me by a web designer who was considering the idea of using PHP pages in her websites: “Why build all your pages in PHP … Why not use standard .html pages?” She then expanded the question to: “What I mean is…… what’s the benefit to building ALL sites in PHP?”
  • 5
  • 24
  • 1670
  • 815

Comments

Add your comment
User 280043 avatar

thrthr replied ago:

-2 votes Vote down Vote up Reply

Please stop posting rubbish like this on dzone.,

User 261835 avatar

Kenneth Downs replied ago:

0 votes Vote down Vote up Reply

I see no reason to vote down something just because it is aimed at an absolute day-zero beginner. The person asking this question is at a very early stage of development, but then, weren't we all once?

User 233367 avatar

alessios replied ago:

0 votes Vote down Vote up Reply

Kenneth: the problem is that the post is misleading at least. Furthermore, being aimed at absolute beginners it should be two times carefuls on what it say, don't you think?

User 239201 avatar

amphi replied ago:

0 votes Vote down Vote up Reply

Well, there is nothing wrong with targeting beginners. The problem here is that the article is pure nonsense. Nothing stops you from replacing your static site with some kind of CMS later on. Mod_rewrite does the trick just fine. Having a php or html file extension is about equally bad.

That's why I voted it down. It's pointless nonsense.

User 224119 avatar

Greg Black replied ago:

0 votes Vote down Vote up Reply

Why is this on the front page? With so many down votes you think it would have been buried.

User 262632 avatar

roshanbh replied ago:

0 votes Vote down Vote up Reply

I never vote down any story of dzone rather than I leave it. But the points of this article are very weak. I can write php code in .html files without changing the extension to php. Why .htaccess file is there ?? Just add the following lines to .htaccess file and change the behaviour of the file

AddType application/x-httpd-php .htm .html


User 239842 avatar

Killerphp replied ago:

0 votes Vote down Vote up Reply

Hi,

This post was aimed at total beginners and so I presented an answer that would appeal to total beginners.

That said, yes you can use Mod_rewrite and the other options. But again, I am talking to beginners.

Stefan
,
,

User 239842 avatar

Killerphp replied ago:

0 votes Vote down Vote up Reply

Two last points:

I am also surprised that DZONE listed this short post ... I was under the impression that DZONE was not a place for total noobs. Not that I am complaining at all.

Point #2: You guys are pretty harsh. Yes, there are more complete answers that you guys mentioned. But sometimes it makes sense to provide a simple solution for beginners.

User 239842 avatar

Killerphp replied ago:

0 votes Vote down Vote up Reply

One last post (sorry for posting so many comments btw), the mod rewrite option I won't work on IIS.

... Windows may have a similar mechanism but it has been years since I used IIS so I couldn't say.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.