The more you vote, the better it gets. Login and vote now.
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?”
Comments
thrthr replied ago:
Please stop posting rubbish like this on dzone.,
Kenneth Downs replied ago:
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?
alessios replied ago:
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?
amphi replied ago:
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.
Greg Black replied ago:
Why is this on the front page? With so many down votes you think it would have been buried.
roshanbh replied ago:
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
Killerphp replied ago:
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
,
,
Killerphp replied ago:
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.
Killerphp replied ago:
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.
Voters For This Link (5)
Voters Against This Link (24)