Click here to Skip to main content
15,906,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have seen so many movies sites that have a separate page for each movie. For Example "Pirates-bay.html" for "Pirates Bay" Movie, "Live-free-die-hard.html" for "Live Free Die Hard" Move etc.
On the other hand this purpose can also be achieved by creating only one page to which we send the movieid by POST Method and that Page shows the concerned movie. For Example We Create a page name "movie.php" that is passed the movieid "movie.php?movieid=112" and this page shows the movie.

But I want to know that
1. which one of the method is better, and why.
2. How can I Create a separate movie page dynamically.

has Some one the answers of my question?
Posted

1. which one of the method is better, and why.
I will choose the 2nd option definitely i.e. single page for all movies and filling the content based on the MovieID.
Reason - re-usability, maintenance. Consider this - every time a new movie is released, you will waste time creating another page. What's the point if single page can do the work. You will just need to update your database and users will be able to see the new movie details without you needing to add an extra page.

2. How can I Create a separate movie page dynamically.
In ASP.NET there are rich set of controls using which you can create dynamic pages very easily. I do not know much about PHP though. But I think there must be ways to create dynamic pages in PHP as well. You can start researching by searching Google for "dynamic pages PHP".

Good luck and happy coding!
 
Share this answer
 
Comments
Albin Abel 2-Apr-11 3:13am    
Re-usability point. My 5
rashidfarooq 2-Apr-11 6:41am    
Thanks for answering.
Ankur\m/ 2-Apr-11 6:41am    
You are welcome!
Hi using single page gives you usability. Those morphic pages has a real advantage. When the url has the movie name to itself it makes good trick with web crawlers to focus on this link when user search the net with the movie name. But I wonder there may not be a page for each movie, what will be happen under the hood is just a redirection using a .htaccess file or a custom handler. All those links direct to a same page wher it identifies the movie name and display it. The clue is how the layout of the page looks like. If the framework of the page changes then of course there may be many pages. But the main idea is to shake friendly with the crawlers.
 
Share this answer
 
Comments
rashidfarooq 2-Apr-11 6:41am    
Thanks for answering.
Albin Abel 2-Apr-11 7:54am    
You are welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900