Today i will show you and give you some input how to make a web and websocket server with Tornado, which is currently my favorite when i need “mockup” service so i can show it to someone. Anyway this article will mostly cover websockets then “standard” web.
Few days ago i had a chance to work bit different with Nginx, and what was needed to be done is how to determinate if user had successfully downloaded file. Why this is needed because file should be erased from server after download and PHP would be bad solution, also they told me that they don’t want to use any additional application eg. programming languages.
PHP-FPM (FastCGI Process Manager) is an alternative FastCGI implementation with some additional features useful for websites of any size, especially high-load websites. It makes it particularly easy to run PHP on Nginx.
Included features – from original website :
- Adaptive process spawning
- Basic statistics
- Advanced process management with graceful stop/start
- Ability to start workers with different uid/gid/chroot/environment and different php.ini
- Stdout & stderr logging
- Emergency restart in case of accidental opcode cache destruction
- Accelerated upload support
- Support for a “slowlog”
- Enhancements to FastCGI, such as fastcgi_finish_request() – a special function to finish request & flush all data while continuing to do something time-consuming
..and much more..
As mentioned previously in my first part of SEM basics, not everything comes down to puppies and kittens. This second part will explore how SEM might be handled by a person who’s not a professional and how you can track your progress and see what exactly happens and how.
Enter Google Analytics, a tool which provides you with a vast wealth of information about your website, its ranking, visitors and all sorts of strange and peculiar data which might be a bit hard to interpret to an individual who isn’t used to managing a website. What most people don’t know however is that with this tool you can track your campaigns, set up goals, see what converts and where and view the behavior of your visitors on your website.
Source Wikipedia :
Hotlinking is a term used on the Internet that refers to the practice of displaying an image on a website by linking to the same image on another website, rather than saving a copy of it on the website on which the image will be shown.
Hotlinking can be major issue for bandwidth leeching for some sites. Here is small config part which you can add to prevent those activities.
Everyone got excited about new feature in nginx. From version 1.3.13 nginx have native support for proxying websockets, but i can not find it useful on any project of mine, please correct me if i’m wrong, and if you wish you can give me idea in comments. I just want to try it but i spend like 2-3 hours and hardly make them to work.
For some of you this short term may be unknown, or you are researching what it might be, either way you have come to the right place. In the next few minutes of your precious time i will give you a bit of insight what SEM exactly is and how you can leverage it to benefit your business if you own one, if not, keep on reading you never know when you might want to use it…
When i was working on one project i needed to secure some pages eg. cart, checkout, login, .. This will implement SSL on pages you want and i will assume that you have working Zend Framework application and that you know how to implement this action helper.
You must know also that securing pages with SSL is not actually “secure” which will help you fix your mistakes done in writing code, but it will help against traffic sniffing.
Each time i wanted to get config from Zend Framework, inside application.ini or engine.ini or any other name you wish to call your config i had a problem with writing too much code to get job done. Code needs to be written inside Bootstrap.php which then set object inside Zend_Registry and this was overkill for me. What i wanted to do is to have only one class or method from which i will call any config file and get any property inside this file.