Backup system for small network
May 22, 2007 on 10:42 pm | In Zend Framework, Linux Admin, Backup | No CommentsFrom my last post, I got an idea about center backup system for a small network. There are a lot small companies in town. The typical network is about around 10 computers runing Windows OS and all of them share one internet connection via a small switch and a router. They usually use CD/DVD-R/RW to backup their data. The problem is, at very beginning , everybody likes to do it, after a couple of weeks, most of them feel it boring and useless. After a couple of monthes, I can say, nobody likes it.
When I used the WinSCP since my last post. I am thinking of seting up a linux server with SSH server. In each Windows client, setup WinSCP. The linux server can be setup anywhere, even in the boss’s home as long as the Internet connection is stable. Not like Samba, scp is pretty easy to use and the WinSCP is powerful.
Zend_Validate is released
February 8, 2007 on 1:03 am | In Zend Framework | 2 CommentsGo to here to download
To avoiding unexpected input one my demo, I will add the Zend_Validate to it soon.
Zend Framework(0.7.0) could not recognize index.php
January 31, 2007 on 1:12 pm | In Zend Framework | 2 CommentsThanks for Tony for your comment!
My patch for version 0.7.0
In library\Zend\Controller\Request\Http.php
After line 531, add
-
// Remove the .php from REQUEST_URI
-
}
-
or you can go to framework.zend.com/issues/browse/ZF-835 to see how Zend Framework team solves this problem
Zend Framework 0.7.0 has been released.
January 19, 2007 on 12:09 am | In Zend Framework | No CommentsI have done the test, my demo works with the new version without any problem.
By the way, I’d like introduce my thought about controller. A couple of weeks ago, I separated form operations from the action controller. a couple of reasons as below:
- A lot of actions do the similar thing, like add, register, something behind the scene is inserting one record into the table of database. Using one form action to do the similar job, formInsert() for example, will make this part of code re-usable.
- Making action controller programming as easy as possibe. As we can predict, Zend_form, Zend_Validate etc will come soon, I will put all of them into form action controller. In action controller there will only two statements like these:
-
function addAction()
-
{
-
$this->_forward(‘form’,‘formactionname’,$params);
-
}
-
then in the future, in action controllers, I only need to construct one big arrary which will carry parameters for creating the form, then call the related form action. That’s it!
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^