473,785 Members | 2,798 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
15 2332
Randell D. <yo************ **************@ yahoo.com> wrote:
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
Right...do not want the search engines to index beyond the default page
that would appear when no 'func' was defined.
Secondly, because you would have few (if any) static pages, you should
ensure your server could handle the traffic.
Good point. My page will be a low traffic one.
Lastly... you could encounter debugging problems since I believe any
faults you do find will only report the script name and not any
arguments that might have been passed.
Another good point. I agree, it is unlikely that arguments passed would
be directly reported, but I believe the URL being used would be
available in the field and that should provide sufficient information as
I will be using the GET method.

If nothing else, if a problem is experienced, the path to that problem
should be known and would provide sufficient information to aid in
solving the problem.
I hope this gives you some food for thought...


It did. Thank you.

--
== 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 #11
Stanimir Stamenkov <s7****@netscap e.net> wrote:
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


That is some great information. Thank you.

I shall have to reconsider my approach.
--
== 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 #12
"Eric" <eg************ *@verizon.net> wrote in message
news:1g3t2yz.1a 9e9lnp5sadbN%eg *************@v erizon.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?

Now, considering that there is rarely a single solution that solves all
problems, in what ways would the design break down?


Eric,

It really depends on what you are trying to accomplish for yourself. Why
are you trying to keep everything together in one file - what is the
purpose? The only upside I can think of is that you would have only one file
for the server to cache so that may be a little faster. I have a site that
i'm planning and my first thought was to do it the same way - but the more
my plan comes together the more it seems rediculous to try to jam all the
functionality into one file. Just the overhead of all the error checking
every time you add new functions...
Jul 17 '05 #13
Stephen Poley <sb*****@xs4all .nl> wrote in message news:<4c******* *************** **********@4ax. com>...
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.


The idea is centralized approach.

For example,
if ($func=="regist er")
include("includ es/register.inc.ph p");
else if ($func=="login" )
include("includ es/login.inc.php") ;
....

The problem with this approach is debugging (by 3rd programmer).

Also, you'll suffer search engine ranking problem if you don't
have mod rewrite facility as the URI is somewhat messy.

---
"Success = 10% sweat + 90% tears"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #14
Sometime around 3 Nov 2003 20:43:11 -0800, R. Rajesh Jeba Anbiah is
reported to have stated:
"Success = 10% sweat + 90% tears"


Success is very wet.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 17 '05 #15
Mark Parnell <we*******@clar kecomputers.com .au> wrote in message news:<tt******* *************** ******@40tude.n et>...
Sometime around 3 Nov 2003 20:43:11 -0800, R. Rajesh Jeba Anbiah is
reported to have stated:
"Success = 10% sweat + 90% tears"


Success is very wet.


Yeah :) I hope it is not dry

---
"If there is a God, he must be a sadist!"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #16

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

Similar topics

2
1427
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
2494
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
2854
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
2615
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
2462
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
9645
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
10336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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
10095
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,...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
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.