473,770 Members | 5,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Q] Opinions on this site design

This is just a thought in my head at the moment and I wanted to get some
opinions on an idea on how to design my web site.

First, it would be a 100% (or very close to it) PHP site.

The best way to descibe this thought would be to give a specific
example.

The site would revolve around a single .php file...index.ph p.

It is a two column site. The left column is a common navigation column
and the right column is (obviously) the content column.

The site also involve user registration and login for access.

So, if a user is not logged, the left column would contain the common
username and password fields. Just below these are two links 'Register'
and 'Forgot Password'.

Assume that a new user needs to register. They would then proceed to
click on the 'Register' link.

What I have found that most sites do would be to take the user to, for
example, http://<address>/register.php

Here is the meat of the alternative I was considering.

The 'Register' link would be:

http://<address>/index.php?func= register

Now, my php code would then see that 'func' was assigned and would call
a function that would put the appropriate content in the right column.
In the 'Register' case, it would be the standard request items ask of
users (e-mail, desired username, desired password).

In the same manner, the 'Forgot Password' link would be:

http://<address>/index.php?func= forgotpassword

Now, func would essentially represent top level sections of my site.
The top level sections will have sub-sections. I would handle this by
essentially doing the following:

http://<address>/index.php?func= <majorsection>& param1=someinfo rmation

To keep index.php from growing just far to big, the major sections would
be handled in their own .php files. index.php would basically be just a
large if/elseif statement based on what func said (or did not say).

If a user, who wasn't logged in, attempted to access part of the site by
providing a 'func', access would be denied via the common session
management provided by PHP.

What do people think?

--
== Eric Gorr ========= http://www.ericgorr.net ========= ICQ:9293199 ===
"Therefore the considerations of the intelligent always include both
benefit and harm." - Sun Tzu
== Insults, like violence, are the last refuge of the incompetent... ===
Jul 17 '05 #1
15 2331
"Eric" <eg************ *@verizon.net> wrote in message
news:1g3sw11.le 82pbmhdazrN%eg* ************@ve rizon.net...
This is just a thought in my head at the moment and I wanted to get some
opinions on an idea on how to design my web site.

First, it would be a 100% (or very close to it) PHP site.

The best way to descibe this thought would be to give a specific
example.

The site would revolve around a single .php file...index.ph p.

It is a two column site. The left column is a common navigation column
and the right column is (obviously) the content column.

The site also involve user registration and login for access.

So, if a user is not logged, the left column would contain the common
username and password fields. Just below these are two links 'Register'
and 'Forgot Password'.

Assume that a new user needs to register. They would then proceed to
click on the 'Register' link.

What I have found that most sites do would be to take the user to, for
example, http://<address>/register.php

Here is the meat of the alternative I was considering.

The 'Register' link would be:

http://<address>/index.php?func= register

Now, my php code would then see that 'func' was assigned and would call
a function that would put the appropriate content in the right column.
In the 'Register' case, it would be the standard request items ask of
users (e-mail, desired username, desired password).

In the same manner, the 'Forgot Password' link would be:

http://<address>/index.php?func= forgotpassword

Now, func would essentially represent top level sections of my site.
The top level sections will have sub-sections. I would handle this by
essentially doing the following:

http://<address>/index.php?func= <majorsection>& param1=someinfo rmation

To keep index.php from growing just far to big, the major sections would
be handled in their own .php files. index.php would basically be just a
large if/elseif statement based on what func said (or did not say).

If a user, who wasn't logged in, attempted to access part of the site by
providing a 'func', access would be denied via the common session
management provided by PHP.

What do people think?


People think that this is done every day.

Jul 17 '05 #2
SwissCheese <Sw*********@cf l.rr.com> wrote:
People think that this is done every day.


Interesting.

I have yet to find a site that is based solely around this idea.
Can you point to one?

Now, considering that there is rarely a single solution that solves all
problems, in what ways would the design break down?
--
== Eric Gorr ========= http://www.ericgorr.net ========= ICQ:9293199 ===
"Therefore the considerations of the intelligent always include both
benefit and harm." - Sun Tzu
== Insults, like violence, are the last refuge of the incompetent... ===
Jul 17 '05 #3
Carved in mystic runes upon the very living rock, the last words of Eric
of comp.lang.php make plain:
SwissCheese <Sw*********@cf l.rr.com> wrote:
People think that this is done every day.


Interesting.

I have yet to find a site that is based solely around this idea.
Can you point to one?


I don't know that I'd say it's done every day. I don't have any
statistics or anything, but it seems to me more common to have different
functions in different files. That said, Phormation is done the way you
describe, with all links pointing back to the index file, which pulls in
code according to the functionality indicated.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #4
Carved in mystic runes upon the very living rock, the last words of Alan
Little of comp.lang.php make plain:
Phormation is done the way you describe, with all links pointing back to
the index file, which pulls in code according to the functionality
indicated.


Sorry, I should have been more specific -- I didn't realize there were so
many Phormation's out there:

http://www.phorm.com/phormation.php3

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #5

"Eric" <eg************ *@verizon.net> wrote in message
news:1g3sw11.le 82pbmhdazrN%eg* ************@ve rizon.net...
This is just a thought in my head at the moment and I wanted to get some
opinions on an idea on how to design my web site.

First, it would be a 100% (or very close to it) PHP site.

The best way to descibe this thought would be to give a specific
example.

The site would revolve around a single .php file...index.ph p.

It is a two column site. The left column is a common navigation column
and the right column is (obviously) the content column.

The site also involve user registration and login for access.

So, if a user is not logged, the left column would contain the common
username and password fields. Just below these are two links 'Register'
and 'Forgot Password'.

Assume that a new user needs to register. They would then proceed to
click on the 'Register' link.

What I have found that most sites do would be to take the user to, for
example, http://<address>/register.php

Here is the meat of the alternative I was considering.

The 'Register' link would be:

http://<address>/index.php?func= register

Now, my php code would then see that 'func' was assigned and would call
a function that would put the appropriate content in the right column.
In the 'Register' case, it would be the standard request items ask of
users (e-mail, desired username, desired password).

In the same manner, the 'Forgot Password' link would be:

http://<address>/index.php?func= forgotpassword

Now, func would essentially represent top level sections of my site.
The top level sections will have sub-sections. I would handle this by
essentially doing the following:

http://<address>/index.php?func= <majorsection>& param1=someinfo rmation

To keep index.php from growing just far to big, the major sections would
be handled in their own .php files. index.php would basically be just a
large if/elseif statement based on what func said (or did not say).

If a user, who wasn't logged in, attempted to access part of the site by
providing a 'func', access would be denied via the common session
management provided by PHP.

What do people think?

--
== Eric Gorr ========= http://www.ericgorr.net ========= ICQ:9293199 ===
"Therefore the considerations of the intelligent always include both
benefit and harm." - Sun Tzu
== Insults, like violence, are the last refuge of the incompetent... ===


The only comments I can throw forward on this is that some search engines
might find difficulty in indexing any meta tags - but if its hidden behind a
username/password then I gather you're not too bothered on search engines -
Secondly, because you would have few (if any) static pages, you should
ensure your server could handle the traffic. PHP IMHO is not hungry, but it
will eat more resources than ordinary 'flat' or static html... Lastly... you
could encounter debugging problems since I believe any faults you do find
will only report the script name and not any arguements that might have been
passed.

I hope this gives you some food for thought...
Jul 17 '05 #6
eg************* @verizon.net (Eric) wrote in message news:<1g3t2yz.1 a9e9lnp5sadbN%e g*************@ verizon.net>...
SwissCheese <Sw*********@cf l.rr.com> wrote:
People think that this is done every day.


Interesting.

I have yet to find a site that is based solely around this idea.
Can you point to one?


cars.webquezt.c om They actually pass the commands by encoding.

But, IMHO people usually prefer individual files for individual
purpose (aka decentralized concept). It is easy to fix the problem, if
the entire code for the job is in individual files say signup.php,
login.php, etc.

---
"He who created the god was a fool; he who spreads his name is a
scoundrel and he who worships him is a barbarian."---Periyar, Famous
Tamil Rationalist
Email: rrjanbiah-at-Y!com
Jul 17 '05 #7
eg************* @verizon.net (Eric) schrieb:
What do people think?


It doesn't look unusual.

Regards,
Matthias
Jul 17 '05 #8
Eric wrote:
What I have found that most sites do would be to take the user to, for
example, http://<address>/register.php
Yes, this is generally the better from what you intent below.
Here is the meat of the alternative I was considering.

The 'Register' link would be:

http://<address>/index.php?func= register


http://www.w3.org/Provider/Style/URI

http://www.w3.org/QA/Tips
http://www.w3.org/QA/Tips/readable-uri
http://www.w3.org/QA/Tips/uri-choose

--
Stanimir

Jul 17 '05 #9
On Sun, 02 Nov 2003 20:15:22 GMT, eg************* @verizon.net (Eric)
wrote:
Here is the meat of the alternative I was considering.

The 'Register' link would be:

http://<address>/index.php?func= register

Now, my php code would then see that 'func' was assigned and would call
a function that would put the appropriate content in the right column. ....
What do people think?


What do you wish to achieve with this approach? It seems slightly more
complex than the straightforward approach, and I can't immediately see
the advantage.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1426
by: Mike Florio | last post by:
Need a shopping cart for small site with only a few products that don't change very often. Looking for something under $1000 that can be seamlessly integrated into a custom design. Preferably ASP-based, but not necessarily. Off-the-shelf package ok too... Has anyone used IISCart ? Please post your opinions as it seems like a viable solution so far... I've browsed thru the Aspfaq list, but would welcome personal recommendations...
1
1533
by: [H]omer | last post by:
Sorry for the cross-post, but I'm looking for criticism *and* advice. http://www.genesis-x.nildram.co.uk/index.html and http://www.genesis-x.nildram.co.uk/css/gx.css BTW: The site *is* a bit OTT; yes I'm a raving fanatic ... :) Content aside though, there's a few things I still don't like: 1) ... I shouldn't be using literal font sizes, but I just can't seem to
16
2492
by: Andy Dingley | last post by:
I've just had a call from these people, http://www.browsealoud.com offering to sell me their wares. Anyone have an opinion on it ? I'll post my own thoughts about 24 hours from now. I'm interested in what others think - wouldn't want to prejudice other's comments.
43
2852
by: Davey | last post by:
I am planning on developing an application which will involve skills that I have very little experience of - therefore I would appreciate comments on my initial design thoughts. Overview on system: I'm not going to divulge the exact aims of the application but the purpose of it is to allow multiple client applications to retrieve data from a database (on a db server) and feed this data into another Windows
3
2614
by: John Doe | last post by:
I've been doing some reading/research on parsing simple configuration files through C, and have heard various opinions on the matter. I'd like to solicit some opinions and design criteria (as well as "gotchas") for doing this. I'm implementing a program that needs to read a standard configuration file, in key=value pairs for starters (though I'm open to other ideas). Basically it would be no more than about 20 lines total, one key per...
3
2460
by: vijaykokate | last post by:
Our company http://www.softnmation.com/ offers its customers a great variety of products. Everything you need can be found in this site. Web Template, CSS Template, Logo Template, Corporate Identity Package, Logo Set,Icon Set, Flash Animated Template, Flash Intro Header, Flash Site, PHP-Nuke Theme, Full Site, Stretched Web Templates and Stretched Flash Templates, ZenCart Templates ,osCommerce Templates and many more
2
2893
by: Jim Carr | last post by:
Upon entering the site www.FutureByDesign-Music.com with IE6, my clipboard is erased and then disabled in all other Windows XP applications. Navigating to another site returns clipboard functionality, but whatever was on the clipboard before is lost. If I disable running JavaScript on the page, the clipboard is unaffected. Viewing the page in Firefox does not have this issue. I think it might be the script below, which makes no sense...
7
1767
by: The Bicycling Guitarist | last post by:
Hello. I have a horizontal navigation bar at the top of most of my web site's pages. For the link that goes to a description of why I am called "The Bicycling Guitarist," I use the text "TBG." Someone suggested to me that if I put "About me" for the text instead of "TBG" it would be less confusing to first time visitors. Any opinions? Sample page at http://www.TheBicyclingGuitarist.net/studies/eagles.htm The nav bar is at the top of the...
112
4760
by: Prisoner at War | last post by:
Friends, your opinions and advice, please: I have a very simple JavaScript image-swap which works on my end but when uploaded to my host at http://buildit.sitesell.com/sunnyside.html does not work. To rule out all possible factors, I made up a dummy page for an index.html to upload, along the lines of <html><head><title></title></ head><body></body></html>.; the image-swap itself is your basic <img src="blah.png"...
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.