Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Sinle file with multiple posts
Old 11-16-2010, 08:09 PM Sinle file with multiple posts
Junior Talker

Posts: 2
Name: DANIEL
Trades: 0
I'm thinking to keep each post of my www gocondotoronto.com/ website in a seperate php file. This way I'll be able to use it using the PHP INCLUDE command in different pages. It is a good idea or I can face performances perform because I'll have many files?

The other option is to keep all post in a single file, but then I will have to duplicate some of the content in few pages.
__________________

Please login or register to view this content. Registration is FREE

Last edited by chrishirst; 11-17-2010 at 05:35 PM..
gocondo is offline
View Public Profile
 
 
Register now for full access!
Old 11-16-2010, 08:34 PM Re: Sinle file with multiple posts
Average Talker

Posts: 25
Name: Stephen
Location: Arizona
Trades: 0
My preference is to keep the content that differs in separate files (or in the db), and pull (include) that portion into the main as appropriate.
__________________

Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
GetGamesHere is offline
View Public Profile Visit GetGamesHere's homepage!
 
Old 11-17-2010, 12:00 AM Re: Sinle file with multiple posts
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
File Pros:
- Using files can be much faster than using db
- Including files in them selves do not add to the memory
- Best when used for application scripts and binary data files

File Cons:
- Managing tons of files can become a quick nightmare
- Possible for permissions to be switched causing errors
- May have additional errors reading a file when a file lock is in place from another instance
- Insecure, can be deleted or edited by anyone with FTP access

Db Pros:
- Easy to manage
- Quick and easy to query data even when using conditional arguments
- Data is more secure and more protected

Db Cons:
- Can slow down processing if db queries are not effecient and/or cached and multiple
- Storing binary data can cause additional issues with corruption and overloading memory
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
View Public Profile
 
Closed Thread     « Reply to Sinle file with multiple posts
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50309 seconds with 12 queries