BLOGSPOT IN PHP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
jason257
Forum Newbie
Posts: 1
Joined: Mon Feb 02, 2009 6:43 am

BLOGSPOT IN PHP

Post by jason257 »

Hi there, i have to create clone of blogspot for my project in PHP for my school.

I would be really glad if you could inform me that how blogspot gives unique url's ("myblog.blogspot.com") to its users,does it creates pages based on information provided and then show these pages to users or it creates pages on fly using data stored in database.

Even if you leave alone blogspot is it really possible to create pages for users, using php script when i am working on shared server.

Please help me out my teacher is providing no help , she just says "GOOGLE" it and i have done that but all in vain.

Thx.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: BLOGSPOT IN PHP

Post by josh »

The requested host will show up in the $_SERVER superglobal. Print_r it to browse your available data. You need to configure youre webhost to route all subdomains to your htdocs though, which is probably what it does by default for 75% of share hosting / default configs
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: BLOGSPOT IN PHP

Post by alex.barylski »

If your teacher asked you to clone blogspot and you have "no idea" on how to even begin...your probably best taking up another trade, maybe plumbing? Sanitation specialist -- then you don't have to think just do. :P

Alternatively you could go download wordpress and tell your teacher you built it over the weekend. :lol:
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: BLOGSPOT IN PHP

Post by josh »

Sounds like its the teacher who needs a new trade
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: BLOGSPOT IN PHP

Post by jaoudestudios »

Tell your useless teacher "google is not the source of all knowledge! and some information on google can not be trusted".

Between us...it is quite good :)

I do like PCSpectra's idea, download something and say it was yours :? But a bit risky.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: BLOGSPOT IN PHP

Post by alex.barylski »

Sounds like its the teacher who needs a new trade
Hahaha...true enough.
Post Reply