Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread howard chen
On Sun, Mar 21, 2010 at 8:13 AM, till  wrote:
> If performance is a concern, avoid doing logs (in production). :-)
>
> We are using Zend_Log+syslog (there's a writer for it) for all our
> CLI-tools. No idea what kind of logging you are after.
>
> Till
>

What I concern is potential loss of log due to locking. (Assume
multiple apache processes are running)


Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread till
On Sat, Mar 20, 2010 at 7:40 PM, howard chen  wrote:
> Hi,
>
> On Sun, Mar 21, 2010 at 12:49 AM, Matthew Weier O'Phinney
>  wrote:
>
>> It should be safe; it uses file locking internally to prevent issues
>> with concurrent writers.
>>
>> --
>
>
> Thanks for your reply.
>
> What if a file is being locked by an apache process? Exception anyway
> or will wait?
>
> I want log can be 100% write into the log file, so file based log is
> not possible?
>
> Or should I use syslog?
>

If performance is a concern, avoid doing logs (in production). :-)

We are using Zend_Log+syslog (there's a writer for it) for all our
CLI-tools. No idea what kind of logging you are after.

Till


Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread howard chen
Hi,

On Sun, Mar 21, 2010 at 12:49 AM, Matthew Weier O'Phinney
 wrote:

> It should be safe; it uses file locking internally to prevent issues
> with concurrent writers.
>
> --


Thanks for your reply.

What if a file is being locked by an apache process? Exception anyway
or will wait?

I want log can be 100% write into the log file, so file based log is
not possible?

Or should I use syslog?


Re: [fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread Matthew Weier O'Phinney
-- howard chen  wrote
(on Sunday, 21 March 2010, 12:33 AM +0800):
> Just wonder if the Zend_Log when writing to local file, is it reliable
> when multiple user writing to the same file?
> 
> What will happen if other is writing?

It should be safe; it uses file locking internally to prevent issues
with concurrent writers.

-- 
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework  | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc


[fw-general] Is Zend_Log reliable when multiple user writing to the same file?

2010-03-20 Thread howard chen
Just wonder if the Zend_Log when writing to local file, is it reliable
when multiple user writing to the same file?

What will happen if other is writing?


Re: [fw-general] Zend_Tool doesn't find my providers

2010-03-20 Thread Mads Lie Jensen
Hej Chris Morrell 

Den Sat, 20 Mar 2010 11:22:52 -0400 sendte du en mail til mig, angående
Re: [fw-general] Zend_Tool doesn't find my providers

>You now have to add custom providers in the ZF config file.  Edit ~/.zf.ini
>and add:
>
>php.include_path =
>".:/path/to/zf/library:/path/to/your-tool/library:/path/to/pear"
>basicloader.classes.1 = "Your_Tool_Project_Provider_Manifest"

That did it!

However, with a few problems .

My provider now looks like:
http://www.gartneriet.dk/


[fw-general] ZF CLI Bash Completion Script

2010-03-20 Thread Chris Morrell
Hey folks,

I just threw together a simple bash completion script for the ZF tool so
that you can tab-complete basic commands.  For example, you can type "zf
cr", hit TAB, and it will compete to "zf create " for you.  Check it out at:

http://cmorrell.com/web-development/zf/bash-completion-script-751

Also, if you know much about shell scripting, take a look at:
http://serverfault.com/questions/124429/bash-completion-script-help

I'm trying to get the script to dynamically load the commands (right now
they're just hard coded so custom providers and future updates aren't
included) but I can't for the life of me get it to work.

Cheers,

Chris Morrell
http://cmorrell.com/
@inxilpro 


Re: [fw-general] Zend_Tool doesn't find my providers

2010-03-20 Thread Chris Morrell
You now have to add custom providers in the ZF config file.  Edit ~/.zf.ini
and add:

php.include_path =
".:/path/to/zf/library:/path/to/your-tool/library:/path/to/pear"
basicloader.classes.1 = "Your_Tool_Project_Provider_Manifest"

CM




On Sat, Mar 20, 2010 at 7:31 AM, Mads Lie Jensen  wrote:

> Hi
>
> Trying to make a tooling-provider of my own, but when I run zf --help,
> they do not show up.
>
> I tried the examples from
>
> http://framework.zend.com/wiki/display/ZFDEV/Zend_Tool+Developer+Tutorial+Part1
>
> Made the file /usr/share/php5/My/HelloProvider.php with this content:
> 
> class My_HelloProvider implements Zend_Tool_Framework_Provider_Interface
> {
>public function say()
>{
>echo 'Hello World!';
>}
> }
>
> When I run
>
> zf show phpinfo|grep "include_"
>
> i get this output:
>
> include_path =>
> /home/gartneri/hosts/zf_tools:.:/usr/share/php5:/usr/share/php5/PEAR =>
> .:/usr/share/php5:/usr/share/php5/PEAR
> safe_mode_include_dir => no value => no value
>
> As far as I can see /usr/share/php5 is indeed in my include_path.
>
> But running zf --help does not list the Hello-provider.
>
> What does it take to get zf to list my own providers?
>
> zf show version gives:
> Zend Framework Version: 1.10.2
>
> --
> Mads Lie Jensen - m...@gartneriet.dk - ICQ #25478403
> Gartneriet - http://www.gartneriet.dk/
>
>


RE: [fw-general] RE: Graphs using Zend Framework

2010-03-20 Thread Sergio Rinaudo

Thank you guys for all your advices, 
I've discovered some free charts I didn't even know thanks to you all.

Actually, for my project, I decided to use Fusion Charts ( 
http://www.fusioncharts.com/free/demos/ ), 
I found them really nice to see and complete.

Bye!

Sergio
  
_
Personalizza il tuo Messenger con nuove e divertenti Emoticon
http://www.pimpit.it/emoticon.html

[fw-general] RE: Graphs using Zend Framework

2010-03-20 Thread mascker

Hi,

For Open Flash Chart you can also use ZFDatagrid.

Provides a render for Open Flash Chart and uses Zend_Db_* to fetch values.

More info here: http://code.google.com/p/zfdatagrid/

Demo here: http://zfdatagrid.com/grid/site/ofc


Filipe Sá
-- 
View this message in context: 
http://n4.nabble.com/Graphs-using-Zend-Framework-tp1593094p1675811.html
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] Zend_Tool doesn't find my providers

2010-03-20 Thread Mads Lie Jensen
Hi

Trying to make a tooling-provider of my own, but when I run zf --help,
they do not show up.

I tried the examples from
http://framework.zend.com/wiki/display/ZFDEV/Zend_Tool+Developer+Tutorial+Part1

Made the file /usr/share/php5/My/HelloProvider.php with this content:

/home/gartneri/hosts/zf_tools:.:/usr/share/php5:/usr/share/php5/PEAR =>
.:/usr/share/php5:/usr/share/php5/PEAR
safe_mode_include_dir => no value => no value

As far as I can see /usr/share/php5 is indeed in my include_path.

But running zf --help does not list the Hello-provider.

What does it take to get zf to list my own providers?

zf show version gives:
Zend Framework Version: 1.10.2

-- 
Mads Lie Jensen - m...@gartneriet.dk - ICQ #25478403
Gartneriet - http://www.gartneriet.dk/


Re: [fw-general] Would anyone want Zend_VersionControl_Subversion?

2010-03-20 Thread Aleksey Zapparov
Hello,

I think it would be great. And I would like to participate in
Zend_VersionControl_Git :)) So just write me if you'll start this
project and will need "more" hands to work on it :))


2010/3/18 Steven Brown :
> For fun, I began experimenting with putting together a PHP implementation of
> a Subversion client that uses the svn protocol and thought it might be a
> useful addition to ZF.
>
>
>
> Bill Karwin pointed out that a PECL extension already exists to provide this
> functionality, though the documentation is filled with warnings about it
> being experimental.
>
>
>
> I suggest that it is possible in some hosting environments that developers
> won’t have the PECL extension installed and may not be able to install it.
>
>
>
> Some uses for such a module include:
>
>
>
> 1.   Deployment – code can be installed or updated using PHP code
>
> 2.   Repository browsing – for tools such as bug/issue trackers
>
> 3.   Committing – for example if files can be changed in an admin area,
> the changes can be committed to the repository
>
>
>
> I think it should be possible to provide similar functionality for Git,
> Mercurial, and other version control systems.
>
>
>
> I have already started developing an adapter that uses the svn protocol, but
> others could be created that use SSH or LDAP/HTTP access, or the PECL
> extension.
>
>
>
> Would Zend_VersionControl_Subversion be useful or is it just a waste of
> time?
>
>
>
> Cheers,
>
> Steven



-- 
Sincerely yours,
Aleksey V. Zapparov A.K.A. ixti
FSF Member #7118
Mobile Phone: +34 617 179 344
Homepage: http://www.ixti.ru
JID: zappa...@jabber.ru

*Origin: Happy Hacking!


Re: [fw-general] Re: Trying to add some data to database from a form

2010-03-20 Thread Ryan Schmidt

On Mar 19, 2010, at 14:56, stelios wrote:

> ok i figured out the problem with your help, thanks for giving me to
> understand how it works. i moved my .php files here
> application\custom\modules and my images at application\custom\art so i have
> to change the image links in my php files can you help me ? first it is
> wrong to put my php code under this directories ?
> 
> /  logo.png   
> 
> what i have to put in logo.png place in order to work ? i put
> APPLICATION_PATH."/custom/art/logo.png" but  it doesn't work.

Images and anything else that needs to be served up directly by the web server 
goes in the "public" directory.

As vb said, please spend some more time reading how the framework works. Maybe 
go through a couple tutorials. It will help make things a bit clearer.