Re: organizing code and folder structure



You need to be a bit clearer about what you are trying to achieve here;
Does each team sub-domain contain the same details (e.g. players,
contact details, forms to input scores, pages to see results of
previous matches etc...)

If so there is no need to generate a whole series of pages for each
team. Each page can use a template and drag the relevant data from a
database (PHP and MySQL are perfect for this) You just need to be able
to identify the team that the page is being generated for.

If on your main page you are going to list all of the teams and allow
the user to select one with a hyper-link then you can use HTTP_GET_VARS
to drag parameters from the URL.

See my site www.frothpoker.co.uk for an example of how this works:-

The League tables builds a HREF URL in php, to ../PlayerResults.php
with two parameters on the end (the bit after the '?') These parameters
show the record ids in the database for the player and the event.

In the receiving page, these are extracted using HTTP_GET_VARS and then
used to generate the relevant data from the database for ONLY that
Player and that Venue. One php file = 80+ different page displays
depending on the selection made.

In this instance your team specific page URL would be

http://www.soccerteamonline.com/?team=teamname

If you wanted http://www.soccerteamonline.com/teamname then you would
need to create a single page for each team that did a redirect to
http://www.soccerteamonline.com/?team=teamname. If you were really
cute you could get PHP to write the page for you when the team was
created.

If you are going to allow them to select a team from a drop down list
then you would use form method =POST and $_POST[] to retrieve the form
details.

If you have no idea what I'm talking about, then maybe you need to
start smaller and learn a little more about how PHP works and what it
can and can't do

Obiron.


Tarscher wrote:
Hi all,

I 'm building a website that provide services for soccer teams. When a
user (team) signs up I want to give him some personal space like
http://www.soccerteamonline.com/teamname where www.soccerteamonline.com
is my registered domain and teamname is the name chosen by the user. I
want to have one singel code base meaning that I don't want to copy my
code to every new account. Can someone please give me some advice on
how to achieve this since I really don't have an idea on how to do
this.

Thanks in advance
Stijn

.



Relevant Pages

  • Re: including hyperlinks
    ... >issue will be synchronizing the .php page with the audio. ... >> Including this in your ASX file is enough to display a web page in the ... >> brokwn HTML) cause you're now hosting it in the player itself. ... >>>me to focus on the video pane of the WMP. ...
    (microsoft.public.windowsmedia)
  • Re: fpassthru and mp3 player
    ... >php file which dumps with fpassthru and appropiate headers an mp3 file. ... How is the player reading the file? ...
    (comp.lang.php)
  • Re: [PHP] PHP as a strategic BUSINESS language
    ... IBM, Oracle and others seem to be less sure about whether php will ... > be a major player in the business solutions arena (often referred to as ...
    (php.general)
  • Re: podcast player
    ... integrate an external player or is there a possibility to apply the player ... installed on the client machine for this job? ... If you want to play mp3s on the server, this is the right way to go. ... And BTW - this has nothing to do with PHP. ...
    (comp.lang.php)
  • Re: while,foreach and select
    ... > Hi there ive trying to make a game based on php and currently ive some ... > problems with this part of the script, i've tryed to fix it alone with out ... > need him there soo i can have the size of the player. ... i'm affraid it might ruin your database. ...
    (comp.lang.php)