Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-04-27 15:11:54

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

ZC54 – Reporting with Zend_Tool and Zend_Log

This video uses a collection of powerful PHP libraries in order to illustrate how easy it really is to build a command-line tool for reporting against XML files. We start off by logging visitor statistics in the controller into a log file with Zend_Log. Once data has been collected, we're then able to utilize SimpleXML, Zend_Date and the Zend_Tool component to build out a very simple reporting tool. This is of course just an example of what's possible. What comes to mind for me is building a cron job for generating reports based on the zf.sh executable, or even just doing backups at the command-line with the help of a fully integrated Zend Framework installation.

I've noticed that configuration information isn't properly loaded into Zend_Tool and am still trying to figure out the design decisions there. You'll notice that I was having some timezone issues with regards to Zend_Date and it seems that specifying a timezone in my application.ini file didn't resolve the issue.

Grab a copy of the project or browse the repository.

Offline

#2 2010-07-02 17:36:03

JT
New member
Registered: 2010-07-02
Posts: 1

Re: ZC54 – Reporting with Zend_Tool and Zend_Log

Hello Jon!
Thanx for great and helpfull casts!
Im going step by step through zc54 and my terminal show me error like :

Warning: file_get_contents(/../../../logs/visitors.xml): failed to open stream: No such file or directory in /usr/local/zend/apache2/htdocs/dev/library/ZC/Tool/VisitorProvider.php on line 14
---------
Visitors
Timezone: Europe/Helsinki

what to do? .)

Offline

#3 2010-07-08 22:05:33

Jon Lebensold
Administrator
Registered: 2009-06-27
Posts: 279

Re: ZC54 – Reporting with Zend_Tool and Zend_Log

Hi JT,

I think it probably has to do with permissions on the actual folder. Did you set write access for the web server?

Offline

Board footer

Powered by FluxBB