[Q] Opinions on this site design
From: Eric (egDfAusenetE5fz_at_verizon.net)
Date: 11/02/03
- Previous message: Michel: "Re: PHP and Chess"
- Next in thread: SwissCheese: "Re: [Q] Opinions on this site design"
- Reply: SwissCheese: "Re: [Q] Opinions on this site design"
- Reply: Randell D.: "Re: [Q] Opinions on this site design"
- Reply: Matthias Esken: "Re: [Q] Opinions on this site design"
- Reply: Stanimir Stamenkov: "Re: [Q] Opinions on this site design"
- Reply: Stephen Poley: "Re: [Q] Opinions on this site design"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 02 Nov 2003 20:15:22 GMT
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.php.
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
Here is the meat of the alternative I was considering.
The 'Register' link would be:
http://>/index.php?func=register
Now, my php code would then see that 'func' was assigned and would call
In the same manner, the 'Forgot Password' link would be:
http://>/index.php?func=forgotpassword
Now, func would essentially represent top level sections of my site.
http://>/index.php?func=<majorsection>¶m1=someinformation
To keep index.php from growing just far to big, the major sections would
If a user, who wasn't logged in, attempted to access part of the site by
What do people think?
example, http://>/register.php
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).
The top level sections will have sub-sections. I would handle this by
essentially doing the following:
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).
providing a 'func', access would be denied via the common session
management provided by PHP.
--
== 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... ===
Relevant Pages
... The left column is a common navigation column ... > Assume that a new user needs to register. ... func would essentially represent top level sections of my site. ... > be handled in their own .php files. ...
(comp.lang.php)
... > Assume that a new user needs to register. ... > users (e-mail, desired username, desired password). ... func would essentially represent top level sections of my site. ... > be handled in their own .php files. ...
(comp.lang.php)
... Has anyone got any example integration of PHP with the Paypal API? ... Have a script where people can register for your site -- IOW, ... transaction details. ...
(php.general)
... In addition to register it for common COM registration just as your mentioned, we also need to registered it as BHO. ... We will find the common Users group only have read permission. ... Common a common user should only write to the HKEY_CURRENT_USER registry key, but BHO as a COM object, it do need to register in the HKEY_CLASSES_ROOT for COM related registation. ...
(microsoft.public.dotnet.framework.interop)
... > Do I need to register a Domain Name even though I am working solely on my PC? ... > Once I get Apache up and running and load PHP and MySQL, ... > What tools would you recommend to develope html web pages? ...
(microsoft.public.windowsxp.network_web)