Hello folks, i wasn’t active on blog so much these days, cause i was on vacation with my family and had really great time!
I was thinking what will be interesting topic to write about and made a decision to go with something easy but something that is required as mandatory in every web application developed in PHP. Continue Reading →
Almost every Web application today need a way to track information about their users, actions and behaviors. Best way to accomplish this is to authenticate user so you can keep more detailed information about what user do and what are users habits. There are lot of ways to implement login authentication, but in this post we will focus on how to do implement this using Zend_Auth library.
In following example we will assume that you are going to implement authentication in Zend Framework application but you can use Zend_Auth independently in any PHP application. Continue Reading →
In most of the big web applications we will have to deal more or less with file manipulations. Sometimes we need to create some config files, create PDF files for generating reports or reading XML feed and parsing data. Since most of the servers that host PHP are Linux based, real question here will be, how we can read Windows files, for example .doc or .docx files created in Word or PDF file in order to retrieve data from given files? Fortunately for us, there is a couple solutions to accomplish this. We will here present the most simple ones. For reading Word files we will use antiword. Installing antiwordon Linux system is really strength forward cause antiword is in most of Linux repositories. So, we can for example install it on Ubuntu via: Continue Reading →
You have worked hard on your web application and now its time to go live with it. I presume that your first step was to buy domain name for your web application, then you should consider where to host your application. Lets assume that you have some VPS (Virtual Private Server) or Dedicate Server, then you point domain to IP address of your server and that’s is, you hooked domain with server. Next setup virtual host on Apache for domain and you are ready to go.
But what is wrong, you could get in situation that your website appear on both urls http://www.example.com and http://example.com and that could be the problem. Continue Reading →