/    Sign up×
Community /Pin to ProfileBookmark

new dir or single page

hi guys, im using php and flash to make a simple movie clip site for a school IT project, just wondering on how i should go about laying out the site,

e.g make a new directorty for each clip with a copy of the flash video player in it, i.e the url would be something like mysite.com/videos/12345

or..

use a single page with a single flash video player, i.e would have a url like mysite.com/watch_clip.php?clip_id=12345

just wondering about the advantages/disadvantages with either method???

any help much appreciated

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@scragarAug 08.2008 — the first method is almost never used, it's almost always the second method disguised using .htacccess and the rewrite rules.
Copy linkTweet thisAlerts:
@drhart4000Aug 12.2008 — The most organized way would be to have one php file with all the include commands. and pull all the videos from a central directory. Keeps the whole user interface simple.

However if you do decide to go with the directory tree structure, don't wast space copying the player into each directory. Simply make an index file with an include script to pull the player from a different file, this way you don't end up with a copy of your player for every video. It saves you both hdd space and bandwidth. if you have a separate swf file load for every video(the player, while being the same but being in a different directory will download every time-- it wont cache).

which ever way you go, if you need any assistance I'll freely give you a hand.
×

Success!

Help @micky_25 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...