Posts

Showing posts with the label PHP

Confused About Caching my Wordpress Site

I am trying to make my wordpress site faster. Why ? Because ... I want to work on optimization, this is purely premature optimization on my part, but this is a side I wanted to investigate for a long time now, so I read about it, and will attempt to write down my findings, which might go out as a series of questions as there are lots of aspects which are still not clear to me. Actually, my site isn't even built now which might affect my conclusions, as I won't be able to test the differences between the caching systems, and my motivation is lower as I don't have a real advantage in caching ... yet. The reason I am delving into this subject is just to understand the concepts and as times come where my site will be popular and a way to optimize it will really be needed, I will have some caching infrastructure already in place for the future caching optimizations. For example, if I understand that NginX is a faster web server than apache, then I might a...

Amazing PHP site generator

Let's say I have a Database with data. Now, lets assume I want to have a site around this database, which users and admins can access and have access to the data using nice GUI'd tables with the specific data I want each group to be exposed to. When I think of designing such a site, I think of the following requirements: The site must be lightweight , there is no need for any heavy "Engine" here. The site should be built using good coding practices, so I want it to have an MVC engine. I want not to worry about the sql queries, I want not to worry about sql injection, I want DB schema changes to be minor (coding wise) in short - I want an ORM . I want some CRUD functionality I want a nice GUI which means using a lightweight Templating system like Smarty which will preferably use great JS libraries , Twitter Bootstrap, font Awesome etc . One would think I am asking for too much - well, nothing is too much, it just will take a lot of time to develop th...

The perfect PHP coding environment

Q: Which tools should one use in order to have the perfect PHP coding environment? A: 1. Download XAMPP which contains Apache web server + php + perl + Mysql and much more. http://www.apachefriends.org/en/xampp-windows.html 2. Download eclipse PDT (php IDE). http://www.eclipse.org/pdt/ 3. Install & configure a debugger for PHP (most recommended is Zend's debugger). http://www.eclipse.org/pdt/articles/debugger/os-php-eclipse-pdt-debug-pdf.pdf 4. Install fiddler - a great web debugging proxy. http://www.fiddler2.com/fiddler2/ 5. Install wireshark if you have an external component (like an exrternal DB) and you want to sniff the traffic. http://www.wireshark.org/ 6. Configure your fiddler to catch traffic in your localhost (If your DB is internal). http://blogs.microsoft.co.il/blogs/shair/archive/2008/12/15/how-to-use-fiddler-on-localhost.aspx That's it, You've got the tools, Now it's all about you...