Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 15th, 2006, 6:40 AM   #1
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
full web site

I want to make a full website consisting of a series of php pages.It will include login as well.So it is going to have sessions as well.And it is going to have an administrator panel.What steps should I take?? I havent prepared a full website before so I need a guidance...
guess is offline   Reply With Quote
Old Mar 15th, 2006, 6:58 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Are you sure you're pursuing the right resource first? I would definitely suggest some books and tutorials and reserve the forum for specific questions or questions regarding problems. Just my opinion and approach, of course.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Mar 15th, 2006, 7:45 AM   #3
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
Im sorry dawei but when I write on the google "How can I build a web page", it doesnt return accurate results. Yes it is a general question but I thought someone may have a format and pursuing this while building a web-site. I hope u get what I mean. I want the logic this time, not the code...If u are not interested in answering, plz do not write anything and let me share my problem with other people...
guess is offline   Reply With Quote
Old Mar 15th, 2006, 7:53 AM   #4
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
I always have a header file, which contains the necessary stuff for the lay-out, functions I may need, etc. It looks something like this:
header.php
<html>
<head><title>Blahdieblah</title></head>
<body>

<?php
function footer() {
?>
</body></html>
<?php
}

// code to connect to a database, check session, some additional functions, etc.
?>

For bigger sites, I also use a global.php file, which contains a number of global values.

Using the header file would be something like this:
index.php
<?php
header();
?>
Welcome to this website.

<?php
footer();
?>

You understand that this are the basics, but if you expand this structure you will get a nice content manager.
Polyphemus_ is offline   Reply With Quote
Old Mar 15th, 2006, 8:02 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
If u are not interested in answering, plz do not write anything and let me share my problem with other people..
It was an answer, and a valid suggestion. You're entitled to disagree. You're also entitled to wear a miners hat to improve your visibility.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Mar 15th, 2006, 8:14 AM   #6
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Quote:
Originally Posted by guess
I want to make a full website consisting of a series of php pages.It will include login as well.So it is going to have sessions as well.And it is going to have an administrator panel.What steps should I take?? I havent prepared a full website before so I need a guidance...
1. For any website or even software development a precise defintion of the end result to be achieved; should be framed (which I suppose is not very clear by your post).

2. An analysis of what you need to do, how you need to do, where do you have to begin with, should be done.

3. For the above, I would recommend you to go through the first section (summary wud do) of the book "Web Design: The Complete Reference" by "Thomas A. Powell".
(FIRST SECTION includes around 3-4 chapters. Just Read them!)
java_roshan is offline   Reply With Quote
Old Mar 15th, 2006, 9:19 AM   #7
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
Quote:
Originally Posted by Polyphemus_
For bigger sites, I also use a global.php file, which contains a number of global values.
I usually do the same thing, except I use a config file with all the DB connections and site wide functions as well
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Mar 15th, 2006, 10:21 AM   #8
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 217
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
draw it out on paper. Your description is very vague and you can't really plan what you need for a website by saying it "needs login" and "administrators panel". What pages and sections will the page have. Will all pages require you to login? How are you storing user information and page information? (mysql ..etc). What would the administrator be able to do?
You should actually draw out a diagram to help visualize it. Start with the main entrance page and then draw out where you want the visitor to go from there, and what the page will use.
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Mar 15th, 2006, 11:12 AM   #9
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
What I wanted to achieve is getting more proffessional in building websites.I have made lots of automations with php and mysql.But here Im given something that I havent done before.A full website as I declared.Im not asking any of you code.What Im asking is what should I do to make it quicker and efficient.For ex: Today I have found a document about sessions and I have seen that I have some more missing parts just like garbage collections importance and some session functions maintaining these and affecting the performance of the application.
It came through and I read the article.I learned.I think this is one important point.What I want from u is to share ur experiences with me.I have to make this website as quick as possible,so I dont want to make mistakes and roll back!!!If u can tell me what I must be careful about(security,coding etc...),U will really become helpful.
I hope u all understand what I need...
guess is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:14 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC