Hi I'm relativly new to php... I'm interested in writing server-friendly php scripts and i was wandering in what cases php scripts are harmfull to server i runs on... i was thinking about issues like: * Which php functions are expensive from the point of view of server's performance and resources? * What is considered to be a long array in php context if ,say, each record is 100 bytes long? (100+ element ? a few thousands?) * Are there some assumptions that php programmer should avoid? (comes to mind this example:
http://forums.xisto.com/no_longer_exists/) * I working on my own little and simple database using b+ trees (index data structure). It is being written with php. The thing that warries me is disk access... Will it be noticable for server or not For example, to serve forum page with 25 posts it will require ~30 disk access(each one preceded by appropriate seek operation) 25 of these are to read all 25 posts and the rest are for internal houskeeping. I know that real databases will probably do even more work and take a lot more resources but the difference is that real db can handle the request asynchrounelsy(server can do other things in between) and real db executing much faster than parsing and iterpreting php script) * I will be glad to hear anything else that i didn't think about... thanks