I did a bit of web programming (using PHP and MySQL), but not too large in scale. I was thinking about how someone would create a type of social network, and I ran into some problems.
Everything that was taught in the classroom or written in books does not seem to translate very well into real production code. They just seem like very basic examples.
Thank!
For password storage, use one-way salt hash for security. Here is an article on why .
Store the salty hash. I would personally step away from md5 and instead use something like sha. sha1 + salt will be held for some time =]
If you store images as blocks in db, you will probably have an easier time in the future supporting them (along w / db, fetching, etc.). But in fact, they will be damn fast in the file system, but I would prefer them in the database, since I have a lot of code that interacts with db, and I am comfortable working in this area. It is for you.
, WordPress ... . , . , .
- Zend Framework CakePHP. , , , Zend, . CakePHP PHP.
, , , , SQL-, xss, , , ..
.
http://www.amazon.com/Pro-PHP-Security-Chris-Snyder/dp/1590595084/ref=sr_1_1?
http://www.amazon.com/PHP-Objects-Patterns-Practice-Second/dp/1590599098/ref=sr_1_3? = UTF-8 & s = & QID = 1265662237 & = 1-3ie = UTF-8 & s = & QID = 1265662204 & = 8-1
http://www.amazon.com/Building-Scalable-Web-Sites-Applications/dp/0596102356/ref=sr_1_1? = UTF-8 & s = & QID = 1265662256 & = 1-1
/ PHP.
, script, , . URL URL-, .
, ? mysql , PHP script , , .
, , .
, , Wordpress . . , .
-, . ( 1000 ), ( , ). , (, , , ..). . ,
{bin}/{userId}_{pictureId}_{token}_{variant}.{fileExt}
-, PHP, PDO.
, MD5 . MD5 , . : MD5,
, , . , - roothell.
3: Rails ( Symfony), Wordpress Gallery. , , -, .
, 2 . .
1: , . Mysql password(), , .
MySQL? ?
. https://stackoverflow.com/search?q=password+hash+database+php
, ?
. https://stackoverflow.com/search?q=store+images+database+php
- ( WordPress) ( - , )?
. https://stackoverflow.com/search?q=social+network+php
It should also be borne in mind that launching and managing a social network site is not just encoding it. Are you sure you want to build it from scratch? Think about whether you will be equally pleased with something like Ning, where everyone can start their own community without any programming?