MySQL Forums
Forum List  »  PHP

Re: Storing site Links: PHP vs. MySQL
Posted by: Nick Roper
Date: September 07, 2005 03:21PM

Hi Tyler,

I guess it depends on a number of factors, such as:

1) What sort of load is the mysql server under
2) How will the links be maintained
3) What else, if anything, will the URLs be used for
4) How many links are there
5) How frequently will links be added/deleted/edited
etc...

Storing the links in a text file may give you faster access, but make it less easy to select a subset - say all the links that are to be used on a certain page. Storing then in MySQL will probably give you a more versatile repository, but comes with an overhead in that you need to connect/query/fetch/process each time rather than just reading a file. You should be able to secure either method satisfactorily, but if you go for the file method then I'd suggest keeping the file outside the wenserver's root directory.

Regards,

Nick

--
Nick Roper

Options: ReplyQuote


Subject
Written By
Posted
Re: Storing site Links: PHP vs. MySQL
September 07, 2005 03:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.