Re: [fw-general] Formatting MySQL Dates with Zend_Date

2007-07-25 Thread Simon Mundy

Try:

$date = new Zend_Date('2007-07-25 13:55:49', Zend_Date::ISO_8601);


I seem to having issues with the following code:


Zend_Date::setOptions(array ('format_type' => 'php'));

$date = new Zend_Date ($mysqlDate);
echo $date->toString ('F j, Y, g:i a');


Now if $mysqlDate is equal to '2007-07-25 13:55:49' then the output  
is 'July 25, 2007, 12:00 AM'.


The date component is clearly correct, but Zend_Date seems to have  
difficulty with the time part. Is this something that Zend_Date is  
not designed to do? Can anyone suggest another transparent method  
for formatting these dates?



--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124

http://www.peptolab.com



[fw-general] Formatting MySQL Dates with Zend_Date

2007-07-25 Thread Mathew Byrne

I seem to having issues with the following code:


Zend_Date::setOptions(array ('format_type' => 'php'));

$date = new Zend_Date ($mysqlDate);
echo $date->toString ('F j, Y, g:i a');


Now if $mysqlDate is equal to '2007-07-25 13:55:49' then the output  
is 'July 25, 2007, 12:00 AM'.


The date component is clearly correct, but Zend_Date seems to have  
difficulty with the time part. Is this something that Zend_Date is  
not designed to do? Can anyone suggest another transparent method for  
formatting these dates?


Re: [fw-general] Config-driven framework components

2007-07-25 Thread David Koblas
I think such a proposal would be great, of course I would like to see it 
taken one step further, since I'm big on making it easy to quickly build 
applications with minimal work...


If there was a normalized way to register the "default" configuration.  
So instead of the "amateur" developer having to do:

   Zend_Db::factory($config->db->toArray())
or
   Zend_Db::factory($config->db)

If the did:
   $conf = new Zend_Config_Ini($filename, 'production');
   Zend_Registry::setDefaultConfig($conf);
They could do:
   Zend_Db::factory()
Which would consult the default registered configuration and instantiate 
the default database, based on a standardized schema.


I only say this since I've recently found myself creating Zend_View 
objects in the middle of nowhere and needing to insure that all of the 
default properties are available.


--koblas

Simon Mundy wrote:

Hi All

One of the strategies I'd like to see ZF heading toward is the ability 
to pass single Zend_Config container to components in the bootstrap to 
set up an application.


Currently many of the components all a $config->toArray() or similar 
to achieve this, but I think it would be excellent to allow a more 
seamless approach with components recognising a Zend_Config instance 
and then pulling out the specific values. It would create a much more 
organised, lean bootstrap and create better consistency when utilising 
ZF components.


For this work, I'd see the following steps needed:-

* Review the existing 'defaults' proposal by Gavin that partially 
addresses this issue (by allowing each component 'defaults')
* Compile a list of components that use configs and review their usage 
(E.g. Routes, Mail, Db, Cache... etc.)

* Some interest by the community for this to happen! :)
* Draw up a proposal (I'll put up my hand on this)
* Review documentation and look at a consistent way of documenting 
component config defaults/attributes


I don't think we would need to pass the _whole_ config to each 
component, as this may interfere with developers' naming schemes - it 
would be a matter of identifying individual sections within a config 
and passing them over:-


E.g.

$db = Zend_Db::factory($config->db);
$cache = Zend_Cache::factory($config->cache);
$mail = new Zend_Mail($config->myMailSection);

However the 'keys' or 'attributes' within each module would, of 
course, need to adhere to a strict naming scheme. Most components 
already document this in some form or other, but I thought perhaps 
each component's documentation could include a table of attributes at 
the start of their respective sections to make tracking this down 
somewhat easier (as well as an appendix somewhere on the ZF docs).


Any thoughts? It would be nice to fast-track a proposal to see how 
quickly it could be tackled. A slim chance for 1.1 or maybe 1.2?



--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com 



[fw-general] Config-driven framework components

2007-07-25 Thread Simon Mundy

Hi All

One of the strategies I'd like to see ZF heading toward is the ability  
to pass single Zend_Config container to components in the bootstrap to  
set up an application.


Currently many of the components all a $config->toArray() or similar  
to achieve this, but I think it would be excellent to allow a more  
seamless approach with components recognising a Zend_Config instance  
and then pulling out the specific values. It would create a much more  
organised, lean bootstrap and create better consistency when utilising  
ZF components.


For this work, I'd see the following steps needed:-

* Review the existing 'defaults' proposal by Gavin that partially  
addresses this issue (by allowing each component 'defaults')
* Compile a list of components that use configs and review their usage  
(E.g. Routes, Mail, Db, Cache... etc.)

* Some interest by the community for this to happen! :)
* Draw up a proposal (I'll put up my hand on this)
* Review documentation and look at a consistent way of documenting  
component config defaults/attributes


I don't think we would need to pass the _whole_ config to each  
component, as this may interfere with developers' naming schemes - it  
would be a matter of identifying individual sections within a config  
and passing them over:-


E.g.

$db = Zend_Db::factory($config->db);
$cache = Zend_Cache::factory($config->cache);
$mail = new Zend_Mail($config->myMailSection);

However the 'keys' or 'attributes' within each module would, of  
course, need to adhere to a strict naming scheme. Most components  
already document this in some form or other, but I thought perhaps  
each component's documentation could include a table of attributes at  
the start of their respective sections to make tracking this down  
somewhat easier (as well as an appendix somewhere on the ZF docs).


Any thoughts? It would be nice to fast-track a proposal to see how  
quickly it could be tackled. A slim chance for 1.1 or maybe 1.2?



--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124

http://www.peptolab.com



[fw-general] Zend_Search_Lucene and NOTICE

2007-07-25 Thread Simon Mundy

Hi Alexander

Lucene has been working a treat for me and I've adopted Shahar's  
spider to create a full web spidering solution. So far so good!


But I notice that during spidering Zend_Search_Lucene gets a bit  
'chatty' and throws a lot of NOTICES like so:-


PHP Notice:  Uninitialized string offset:  64 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 110
PHP Notice:  Uninitialized string offset:  65 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 118
PHP Notice:  Uninitialized string offset:  66 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 177
PHP Notice:  Uninitialized string offset:  67 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 185
PHP Notice:  Uninitialized string offset:  68 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 193
PHP Notice:  Uninitialized string offset:  69 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 202
PHP Notice:  Uninitialized string offset:  70 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 224
PHP Notice:  Uninitialized string offset:  67 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 110
PHP Notice:  Uninitialized string offset:  68 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 118
PHP Notice:  Uninitialized string offset:  69 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 177
PHP Notice:  Uninitialized string offset:  70 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 185
PHP Notice:  Uninitialized string offset:  71 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 193
PHP Notice:  Uninitialized string offset:  72 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 202
PHP Notice:  Uninitialized string offset:  73 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 224
PHP Notice:  Uninitialized string offset:  94 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 110
PHP Notice:  Uninitialized string offset:  95 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 118
PHP Notice:  Uninitialized string offset:  96 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 177
PHP Notice:  Uninitialized string offset:  97 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 185
PHP Notice:  Uninitialized string offset:  98 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 193
PHP Notice:  Uninitialized string offset:  99 in /path/to/library/Zend/ 
Search/Lucene/Index/DictionaryLoader.php on line 202
PHP Notice:  Uninitialized string offset:  100 in /path/to/library/ 
Zend/Search/Lucene/Index/DictionaryLoader.php on line 224


I'm using release 1.0.0 - there's no real harm in it (searches are  
working just fine) but wanted to know if there is anything I need to  
do to suppress these. PHP has 256MB allocated to it.


Kind regards

--

Simon Mundy | Director | PEPTOLAB

""" " "" "" "" "" """ " "" " " " "  "" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124

http://www.peptolab.com



RE: [fw-general] Error Handling w/ Zend DB

2007-07-25 Thread Bill Karwin
There isn't a method to make Zend_Db be more specific.  Ideally it would
pass the SQLCODE to the exception so you could distinguish numerically
between different causes.  Right now the code doesn't do that, but we
can develop that in the future.
 
Logged as
http://framework.zend.com/issues/browse/ZF-1768
 
Regards,
Bill Karwin




From: Ryan Graciano [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 2:24 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Error Handling w/ Zend DB


I'm trying to handle errors appropriately after an insert into
MySQL with Zend_DB and the MySQLi plugin, but I'm having a rough time
determining the cause of the error.

For example, I'd like my application to catch the exception,
determine if the exception occurred due to a unique key violation, and
then if so, identify the column that is causing the violation.  I
noticed that the type of the exception returned is
Zend_Db_Statement_Mysqli_Exception, and here's all of the information I
could get out of it - 

getCode(): 0
getFile():
D:\Apache224\htdocs\CK\library\Zend\Db\Statement\Mysqli.php
getLine(): 237
getMessage(): Mysqli statement execute error : Duplicate entry
'1' for key 1

Does this mean that I need to parse the message to determine
exactly what caused the exception, or is there some other way for me to
perform error handling w/ Zend DB? 

Thanks,
- Ryan




RE: [fw-general] The System is Down

2007-07-25 Thread Bill Karwin
Ok, I have restarted it.  I will spend some time tomorrow trying again
to upgrade the system, but I want to try to fix some bugs for the ZF
1.0.1 release too.

Regards,
Bill Karwin


> -Original Message-
> From: AHeimlich [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 25, 2007 4:39 PM
> To: fw-general@lists.zend.com
> Subject: [fw-general] The System is Down
> 
> 
> http://www.homestarrunner.com/systemisdown.html
> 
> Wiki's down again
> --
> View this message in context: 
> http://www.nabble.com/The-System-is-Down-tf4148588s16154.html#
> a11801857
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 


[fw-general] The System is Down

2007-07-25 Thread AHeimlich

http://www.homestarrunner.com/systemisdown.html

Wiki's down again
-- 
View this message in context: 
http://www.nabble.com/The-System-is-Down-tf4148588s16154.html#a11801857
Sent from the Zend Framework mailing list archive at Nabble.com.



Fw: [fw-general] Yahoo email problem

2007-07-25 Thread Jordan Raub
>Hi All,
>
>Since yesterday, all emails from ZF mail list went to
>my Yahoo! bulk box. 
>
>Does any of you encounter the same problem? Can we
>tell Yahoo! stop doing it?
>
>Jason.

I don't have that problem with my yahoo, but I did make a folder for
all my Zend mailig list messages and put a filter to forward all of
htem to that folder. Maybe it goes through the filters first then tests
for spam?
 
Jordan









[fw-general] Error Handling w/ Zend DB

2007-07-25 Thread Ryan Graciano

I'm trying to handle errors appropriately after an insert into MySQL with
Zend_DB and the MySQLi plugin, but I'm having a rough time determining the
cause of the error.

For example, I'd like my application to catch the exception, determine if
the exception occurred due to a unique key violation, and then if so,
identify the column that is causing the violation.  I noticed that the type
of the exception returned is Zend_Db_Statement_Mysqli_Exception, and here's
all of the information I could get out of it -

getCode(): 0
getFile(): D:\Apache224\htdocs\CK\library\Zend\Db\Statement\Mysqli.php
getLine(): 237
getMessage(): Mysqli statement execute error : Duplicate entry '1' for key 1

Does this mean that I need to parse the message to determine exactly what
caused the exception, or is there some other way for me to perform error
handling w/ Zend DB?

Thanks,
- Ryan


[fw-general] Re: [Bulk] [fw-general] Yahoo email problem

2007-07-25 Thread Paulo Nei

Have the same problem here too.

Jason Qi escreveu:

Hi All,

Since yesterday, all emails from ZF mail list went to
my Yahoo! bulk box. 


Does any of you encounter the same problem? Can we
tell Yahoo! stop doing it?

Jason.


   

Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433


  


Re: [fw-general] Yahoo email problem

2007-07-25 Thread Jordan Raub
>Hi All,
>
>Since yesterday, all emails from ZF mail list went to
>my Yahoo! bulk box. 
>
>Does any of you encounter the same problem? Can we
>tell Yahoo! stop doing it?
>
>Jason.

I don't have that problem with my yahoo, but I did make a folder for
all my Zend mailig list messages and put a filter to forward all of
htem to that folder. Maybe it goes through the filters first then tests
for spam?
 
Jordan





[fw-general] Yahoo email problem

2007-07-25 Thread Jason Qi
Hi All,

Since yesterday, all emails from ZF mail list went to
my Yahoo! bulk box. 

Does any of you encounter the same problem? Can we
tell Yahoo! stop doing it?

Jason.


   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433


[fw-general] Zend_Cache_Frontend_Page.php tags and lifetime support patch

2007-07-25 Thread Kononov Ruslan

I need to clear the cache only for pages with updated data.
I have not found an opportunity of use tags in current version
Zend_Cache_Frontend_Page.
Therefore I have written this small patch.


--- D:/httpd/library/Zend/Cache/Frontend/Page.php.ori   Mon Jul 23 23:21:01
2007
+++ D:/httpd/library/Zend/Cache/Frontend/Page.php   Wed Jul 25 21:56:55 2007
@@ -79,6 +79,8 @@
 'make_id_with_session_variables' => true,
 'make_id_with_files_variables' => true,
 'make_id_with_cookie_variables' => true,
+'tags' => array(),
+'lifetime' => false,
 'cache' => true
 ),
 'regexps' => array()
@@ -238,7 +240,7 @@
  */
 public function _flush($data)
 {
-$this->save($data);
+$this->save($data, null, $this->_activeOptions['tags'],
$this->_activeOptions['lifetime']);
 return $data;
 }
 
-- 
View this message in context: 
http://www.nabble.com/Zend_Cache_Frontend_Page.php-tags-and-lifetime-support-patch-tf4145302s16154.html#a11790983
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Announcing: HTTPS Proxy support in Zend_Http_Client

2007-07-25 Thread Shahar Evron
Good News Everyone!

After breaking my head a little bit over this, I managed to implement
the long-awaited HTTPS through proxy support in Zend_Http_Client. Those
of you who want to test it, are more than welcome to update to HEAD (r.
5843 and up) and try to connect to an HTTPS server through a proxy (that
supports the CONNECT method of course). 

The following code sample shows how to connect to an HTTPS server though
a proxy with Zend_Http_Client:

https://www.example.com/', array(
'adapter'  => 'Zend_Http_Client_Adapter_Proxy',
'proxy_host'   => 'myproxy.example.com',
'proxy_port'   => 8080,
'proxy_user'   => 'shahar',
'proxy_pass'   => 'secret'
));

$response = $client->request();
echo $response->asString();

?>

The configuration is similar to non-secure HTTP proxy client
configuration. 

Needless to say this code is lightly tested and is probably not finished
yet. I would like to get your feedback if you encounter troubles.

One strange behavior which should be mentioned is the fact that if your
proxy requires authentication and you provide the wrong credentials,
you'll get an exception thrown instead of a regular 407 response. This
is because of tunneling issues, and requires a bit of ugly hacking to
work around. I am still arguing with myself whether I should work on it
or not, so your thoughts about this are also welcome.

Enjoy!

Shahar.



signature.asc
Description: This is a digitally signed message part


Re: [fw-general] RE: ZF is ubeatable BUT...

2007-07-25 Thread Ed Finkler

I have to say, file size has never been a consideration for me, or
anyone I know, when it came to choosing a web application.

Strip the unnecesary bits from the distro, and you'll be fine.  What
constitutes a "lightweight" version of the ZFW is going to vary from
person to person, so attempting to create such a version is going to
be hair-pullingly complex.  It's something of an edge case anyway.  I
wouldn't expect it to happen.

--
Ed Finkler
http://funkatron.com
AIM: funka7ron
ICQ: 3922133
Skype: funka7ron


On 7/22/07, Zuhair <[EMAIL PROTECTED]> wrote:


Hi Andi,

I agree with you that breaking the distribution is not the solution. I also
agree that one can significantly reduce the size as you've mentioned by
deleting unwanted sections but then the concern would be that the person is
modifying the framework distribution and cannot be 100% sure that what he is
doing will not have a negative effect. What I'd rather propose is releasing
a light version of the framework that focuses only on the very basics of any
web application; you dont have to  to consider ajax or soa or web services
or internationalization or any of the overwhelming features that the full
framework has. The reason behind this opinion is that when someone sells web
products, they want the overall size of the application to be in proportion
with its function. For example, if the functionality of my product can be
achieved in 400Kb using naked coding, I wouldn't want its size to exceed 4Mb
using a framework. On the other hand I feel compelled to use ZendFramework
because I want my code to adhere to the standards it sets. And because using
a standard framework will make it easy for anyone to customize / tailor my
product to fit their needs because the framework is well documented. I hope
you can see the problem from my perspective.

Thanks,
Zuhair Naqvi.


[fw-general] Re: Zend_Session_SaveHandler_Db

2007-07-25 Thread Jordan Raub
> > 1) In Zend_Session there are the methods remember*. These
currently 
> > set cookie times. Would it be better to have a hook into the

> > SaveHandler so that the expire time could be changed as well? I know
> > with file system it doesn't really matter, but with this DB

> > implementation the future expire time is set instead of relying on the
> > modified time. So, maybe keep a reference to the SaveHandler and if it
> > is set, tell it to change its expire time.

> 1) I agree with your thoughts concerning the remember* methods. But I 
> think the point is not that this implementation relies on the expiration 
> time instead of the modification time because this could be changed very 
> easily.

> As Ralf Eggert already posted on 
> http://framework.zend.com/wiki/display/ZFPROP/Zend_Session_SaveHandler_Db+-+Jordan+Raub
>  
> it could be useful to be able to store permanent sessions which should 
> be done using remember* and forgetMe hooks.

While looking through the code, the remember* methods only change the time of 
the cookie sent to the user. There is nothing that is changed for the lifetime, 
which makes sense because the default file save handler only looks at 
modification time for garbage collection. Thats one of the strange bugs I used 
to get with multiple sites having different session expire times in the same 
session.save_path. The site with the least session.gc_maxlifetime deleted 
everything past the modification time. To get the functionality I wanted I had 
to change the session.save_path to a unique path and session.gc_maxlifetime to 
whatever it needed to be.

> > 2) What if session.save_path is used as the default for the

> > Zend_Session_SaveHandler_Db table name? I'm thinking a path in a 
> > file
system is analogous to a table in a database.

> 2) Would require the user to configure 'session.save_path' instead of 
> 'name' which doesn't make sense.

Well the session.save_path could be a default if it is setup. While the name 
key in the $config array passed to the __construct method would still take 
precedence. If an actual path is set for session.save_path then a 
Zend_Session_SaveHandler_Exception would be thrown IF the 'name' configuration 
is not set in the $config 

> > 3) This one might be more contrived, session.name could be the
default
> >  name of the data column in a Zend_Session_SaveHandler_Db
database table.

> 3) I think this shouldn't be implemented this way. If the user wants 
> this behaviour he can pass ini_get('session.name') to the configuration.

The same applies here as to before.

When I'm using what I've built I do the same thing I do with my 
Zend_Db::factory(). I use Zend_Config::toArray(), from an actual instance of 
course. So, if name or dataColumn is absent, the session ini directives could 
take over. If they fail, then throw exceptions.

Thanks,
Jordan








[fw-general] Re: Zend_Session_SaveHandler_Db

2007-07-25 Thread Felix Jendrusch
1) I agree with your thoughts concerning the remember* methods. But I 
think the point is not that this implementation relies on the expiration 
time instead of the modification time because this could be changed very 
easily.


As Ralf Eggert already posted on 
http://framework.zend.com/wiki/display/ZFPROP/Zend_Session_SaveHandler_Db+-+Jordan+Raub 
it could be useful to be able to store permanent sessions which should 
be done using remember* and forgetMe hooks.


2) Would require the user to configure 'session.save_path' instead of 
'name' which doesn't make sense.


3) I think this shouldn't be implemented this way. If the user wants 
this behaviour he can pass ini_get('session.name') to the configuration.


Jordan Raub schrieb:

I have a couple thoughts and concerns about The 
Zend_Session_SaveHandler_Interface in general and what the 
Zend_Session_SaveHandler_Db (see 
http://framework.zend.com/wiki/display/ZFPROP/Zend_Session_SaveHandler_Db+-+Jordan+Raub):

1) In Zend_Session there are the methods remember*. These currently set cookie 
times. Would it be better to have a hook into the SaveHandler so that the 
expire time could be changed as well? I know with file system it doesn't really 
matter, but with this DB implementation the future expire time is set instead 
of relying on the modified time. So, maybe keep a reference to the SaveHandler 
and if it is set, tell it to change its expire time.

2) What if session.save_path is used as the default for the 
Zend_Session_SaveHandler_Db table name? I'm thinking a path in a file system is 
analogous to a table in a database.

3) This one might be more contrived, session.name could be the default name of the data column in a Zend_Session_SaveHandler_Db database table. 


Thank you,
Jordan Raub
 
He that teaches himself hath a fool for his master. -- Benjamin Franklin

Poor is the pupil who does not surpass his master. -- Leonardo da Vinci.






--
Felix Jendrusch <[EMAIL PROTECTED]>


Re: [fw-general] XmlRpc "Calling parameters do not match signature" problem

2007-07-25 Thread Matthew Weier O'Phinney
-- Nilesh Ashra <[EMAIL PROTECTED]> wrote
(on Wednesday, 25 July 2007, 09:42 AM +0100):
> Ah - great, thanks a lot! Could you kindly point me to the documentation for
> this please?

It's the 'Conventions' section of the Zend_XmlRpc_Server documentation,
and it goes into some detail:


http://framework.zend.com/manual/en/zend.xmlrpc.server.html#zend.xmlrpc.server.conventions


> On 24 Jul 2007, at 18:21, Matthew Weier O'Phinney wrote:
> 
> 
> -- Nilesh Ashra <[EMAIL PROTECTED]> wrote
> (on Tuesday, 24 July 2007, 05:46 PM +0100):
> 
> Hi all,
> 
> I've created a Zend_XmlRpc_Server, like so:
> 
> require_once "Zend/XmlRpc/Server.php";
> function echoTest()
> {
> return "Hello, world";
> }
> $server = new Zend_XmlRpc_Server();
> $server->addFunction("echoTest");
> echo $server->handle();
> 
> Calling the "echoTest" method using Zend_XmlRpc_Client works fine like
> this:
> 
> require_once 'Zend/XmlRpc/Client.php';
> $client = new Zend_XmlRpc_Client('http://myhostname/index.php');
> print_r($client->call('echoTest'));
> 
> This definitely works, I get "Hello, world" in the browser.
> 
> However, if I add a parameter to the echoTest method like so:
> 
> function echoTest($textToEcho)
> {
> return "You said: " . $textToEcho;
> }
> 
> and call it using the client class like this this:
> 
> require_once 'Zend/XmlRpc/Client.php';
> $client = new Zend_XmlRpc_Client('http://myhostname/index.php');
> print_r($client->call('echoTest', array("HELLO WORLD!")));
> 
> I get the following exception:
> 
> Fatal error: Uncaught exception 'Zend_XmlRpc_Client_FaultException'
> with
> message 'Calling parameters do not match signature' in /usr/local/
> include/php/
> php-5.2.3/zend_framework_co/library/Zend/XmlRpc/Client.php:261 Stack
> trace: #0
> /private/var/www/VirtualHosts/myhostname/public/phpclient.php(5):
> Zend_XmlRpc_Client->call('echoTest', Array) #1 {main} thrown in /usr/
> local/
> include/php/php-5.2.3/zend_framework_co/library/Zend/XmlRpc/Client.php
> on line
> 261
> 
> It seems adding any parameter to a method or function causes this
> error.
> Functions/methods with no parameters always work.
> 
> I've been trying to get it to work for hours, and consulted the docs
> (even
> copied examples from the docs) but I always get this error. I'm using
> php 5.2.3
> and apache 2, but have also tried it on a different server with php
> 5.1.6.
> 
> I have tried using Zend Framework from svn trunk, but that doesn't fix
> it
> either.
> 
> Am I missing something very fundamental?
> 
> 
> Yes. You need to have docblocks in place:
> 
> /**
>  * Echo back a string
>  *
>  * @param string $textToEcho
>  * @return string
>  */
> function echoTest($textToEcho)
> {
> return "You said: " . $textToEcho;
> }
> 
> The docblocks are used to provide type hinting so that the XmlRpc server
> knows what variable types are allowed for a given parameter -- this is
> both as a security measure as well as to ensure that method signatures
> are properly generated.
> 
> -- 
> Matthew Weier O'Phinney
> PHP Developer| [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
> 
> 
> --
> Nilesh Ashra // POKE // Biscuit Building // 10 Redchurch Street // E2 7DD //
> 07736 283320
> 
> 

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


RE: [fw-general] About mysql adapter

2007-07-25 Thread Michael Raymond
Hi Jijo,

You need to install the mysql driver file: libmysql.dll into your
/php/installation/path


Regards,

> -Original Message-
> From: Jijo [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 25, 2007 5:44 PM
> To: fw-general@lists.zend.com
> Subject: [fw-general] About mysql adapter
> 
> 
> Hi,]
> 
> I am new to zend framework.I tried out an example of adding 
> entry into database and i got this error,
> 
> Uncaught exception 'Zend_Db_Adapter_Exception' with message 
> 'The mysql driver is not currently installed'
> 
> Can anybody help me to get the solution.
> 
> Thanks,
> Jijo Anthony
> --
> View this message in context: 
> http://www.nabble.com/About-mysql-adapter-tf4141350s16154.html
#a11780138
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 


--- 




Re: [fw-general] Zend_Search_Lucene and authentication

2007-07-25 Thread Ivo Jansch - Ibuildings.nl




Hi,

that's basically what mediawiki itself does, but its searchfeature is,
to be honest, quite rubish.

I like spider based approaches as they also cope with dynamically
rendered text. Such as templates in mediawiki that include  other
content etc.

Greetings,
Ivo

Peter Farafonov wrote:

  Hello, Ivo.

  
  
 I want to use Zend_Search_Lucene to build a small search feature
for our internal wiki, which is based on MediaWiki. The only problem
is that all content is behind a login. Is there a way to tell
Zend_Search_Lucene to login to a site before it starts spidering?

  
  
Since it's internal site, isn't it better to retrieve its content
directly from database?

  



-- 


  

  
  

  
 
  
  


  
  
 
  

  
  
  
  
  
  

  
 ing. Ivo
Jansch
Technical Director





  

   Ibuildings.nl
  information technology

  




  

  
  
  
  

  

tel. (direct)
mobile
e-mail
skype


+31 (0) 118 42 95 52 
+31 (0) 6 44 99 86 23 
[EMAIL PROTECTED]
ivo-ibuildings

 

tel.
web
blog
signatures


+31 (0) 118 42 95 50
www.ibuildings.nl
www.achievo.org/blog
Ibuildings
Certificates

  

  
  
  
  

  
 To all agreements with Ibuildings.nl BV, our general terms
and conditions apply. 
  

  
  

  






[fw-general] About mysql adapter

2007-07-25 Thread Jijo

Hi,]

I am new to zend framework.I tried out an example of adding entry into
database and i got this error,

Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql
driver is not currently installed'

Can anybody help me to get the solution.

Thanks,
Jijo Anthony
-- 
View this message in context: 
http://www.nabble.com/About-mysql-adapter-tf4141350s16154.html#a11780138
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Using zend framework

2007-07-25 Thread Andries Seutens


Artiom Lunev schreef:

Jijo wrote:

Hi,

I have installed zend framework.Can anybody help me how to run the ouick
start example.i am not getting the filesystem layout.
  

you can start here :
http://akrabat.com/zend-framework-tutorial/

- Artiom.





Or here:
http://andries.systray.be/blog/2007/06/18/zend-framework-just-get-me-started-okay/


Best,

--
Andries Seutens
http://andries.systray.be

Gecontroleerd op virussen door de JOJO Secure Gateway.


Re: [fw-general] Zend_Search_Lucene and authentication

2007-07-25 Thread Andries Seutens


Ivo Jansch - Ibuildings.nl schreef:

Hi,

I want to use Zend_Search_Lucene to build a small search feature for 
our internal wiki, which is based on MediaWiki. The only problem is 
that all content is behind a login. Is there a way to tell 
Zend_Search_Lucene to login to a site before it starts spidering?


Greetings,
Ivo


Hi Ivo,

Lucene itself is just an indexing and search library and does not 
contain a spider feature. You would have to write your own spider, which 
would spider all pages in the MediaWiki, and index them; using 
Zend_Search_Lucene.


You might want to have a look at the Nutch project, which provides this 
functionality as well:

http://lucene.apache.org/nutch/

Best,

--
Andries Seutens
http://andries.systray.be

Gecontroleerd op virussen door de JOJO Secure Gateway.


Re: [fw-general] XmlRpc "Calling parameters do not match signature" problem

2007-07-25 Thread Nilesh Ashra
Ah - great, thanks a lot! Could you kindly point me to the  
documentation for this please?



On 24 Jul 2007, at 18:21, Matthew Weier O'Phinney wrote:


-- Nilesh Ashra <[EMAIL PROTECTED]> wrote
(on Tuesday, 24 July 2007, 05:46 PM +0100):

Hi all,

I've created a Zend_XmlRpc_Server, like so:

require_once "Zend/XmlRpc/Server.php";
function echoTest()
{
return "Hello, world";
}
$server = new Zend_XmlRpc_Server();
$server->addFunction("echoTest");
echo $server->handle();

Calling the "echoTest" method using Zend_XmlRpc_Client works fine  
like this:


require_once 'Zend/XmlRpc/Client.php';
$client = new Zend_XmlRpc_Client('http://myhostname/index.php');
print_r($client->call('echoTest'));

This definitely works, I get "Hello, world" in the browser.

However, if I add a parameter to the echoTest method like so:

function echoTest($textToEcho)
{
return "You said: " . $textToEcho;
}

and call it using the client class like this this:

require_once 'Zend/XmlRpc/Client.php';
$client = new Zend_XmlRpc_Client('http://myhostname/index.php');
print_r($client->call('echoTest', array("HELLO WORLD!")));

I get the following exception:

Fatal error: Uncaught exception  
'Zend_XmlRpc_Client_FaultException' with
message 'Calling parameters do not match signature' in /usr/local/ 
include/php/
php-5.2.3/zend_framework_co/library/Zend/XmlRpc/Client.php:261  
Stack trace: #0

/private/var/www/VirtualHosts/myhostname/public/phpclient.php(5):
Zend_XmlRpc_Client->call('echoTest', Array) #1 {main} thrown in / 
usr/local/
include/php/php-5.2.3/zend_framework_co/library/Zend/XmlRpc/ 
Client.php on line

261

It seems adding any parameter to a method or function causes this  
error.

Functions/methods with no parameters always work.

I've been trying to get it to work for hours, and consulted the  
docs (even
copied examples from the docs) but I always get this error. I'm  
using php 5.2.3
and apache 2, but have also tried it on a different server with  
php 5.1.6.


I have tried using Zend Framework from svn trunk, but that doesn't  
fix it

either.

Am I missing something very fundamental?


Yes. You need to have docblocks in place:

/**
 * Echo back a string
 *
 * @param string $textToEcho
 * @return string
 */
function echoTest($textToEcho)
{
return "You said: " . $textToEcho;
}

The docblocks are used to provide type hinting so that the XmlRpc  
server

knows what variable types are allowed for a given parameter -- this is
both as a security measure as well as to ensure that method signatures
are properly generated.

--
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


--
Nilesh Ashra // POKE // Biscuit Building // 10 Redchurch Street // E2  
7DD // 07736 283320





Re: [fw-general] Zend_Search_Lucene and authentication

2007-07-25 Thread Shahar Evron
Hi Ivo,

You could use Zend_Http_Client to fetch the content and pass it as a
string to Zend_Search_Lucene. Zend_Http_Client can preform the login and
keep a stickey session cookie which will be sent on every request, so
your site will allow it to access the content.

It also supports HTTP authentication (Basic only) if you need it.

Shahar.

On Wed, 2007-07-25 at 09:36 +0200, Ivo Jansch - Ibuildings.nl wrote:
> Hi,
> 
> I want to use Zend_Search_Lucene to build a small search feature for
> our internal wiki, which is based on MediaWiki. The only problem is
> that all content is behind a login. Is there a way to tell
> Zend_Search_Lucene to login to a site before it starts spidering?
> 
> Greetings,
> Ivo
> 
> 
> 
> 
> 
> 
> 
> 
-- 
Shahar Evron [EMAIL PROTECTED]
Technical Consultant
Zend Technologies

Mobile: +972 54 30 99 446
Office: +972  3 75 39 500 ext. 9546



signature.asc
Description: This is a digitally signed message part


Re: [fw-general] Zend_Search_Lucene and authentication

2007-07-25 Thread Peter Farafonov
Hello, Ivo.

>  I want to use Zend_Search_Lucene to build a small search feature
> for our internal wiki, which is based on MediaWiki. The only problem
> is that all content is behind a login. Is there a way to tell
> Zend_Search_Lucene to login to a site before it starts spidering?

Since it's internal site, isn't it better to retrieve its content
directly from database?

-- 
Best regards,
 Peter  mailto:[EMAIL PROTECTED]



Re: [fw-general] Using zend framework

2007-07-25 Thread Alexei Yuzhakov

Hello ,

Jijo wrote:

Hi,

I have installed zend framework.Can anybody help me how to run the ouick
start example.i am not getting the filesystem layout.
Guys, maybe it's better to create something like "Symfony sandbox" to 
avoid such questions? And provide simple, but fully functional ZF-based 
demo application.


P.S. Description "Symfony sandbox" of can be found here: 
http://www.symfony-project.com/content/download.html



--
Best regards,
  Alexei "SibProgrammer" Yuzhakov,
  Architect, SiteBuilder for Unix,
  SWsoft.


[fw-general] Zend_Search_Lucene and authentication

2007-07-25 Thread Ivo Jansch - Ibuildings.nl




Hi,

I want to use Zend_Search_Lucene to build a small search feature for
our internal wiki, which is based on MediaWiki. The only problem is
that all content is behind a login. Is there a way to tell
Zend_Search_Lucene to login to a site before it starts spidering?

Greetings,
Ivo





  

  
  
  
  
  
  

  







Re: [fw-general] Using zend framework

2007-07-25 Thread Artiom Lunev

Jijo wrote:

Hi,

I have installed zend framework.Can anybody help me how to run the ouick
start example.i am not getting the filesystem layout.
  

you can start here :
http://akrabat.com/zend-framework-tutorial/

- Artiom.


[fw-general] Using zend framework

2007-07-25 Thread Jijo

Hi,

I have installed zend framework.Can anybody help me how to run the ouick
start example.i am not getting the filesystem layout.
-- 
View this message in context: 
http://www.nabble.com/Using-zend-framework-tf4140583s16154.html#a1129
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] how to start project development with zend framework

2007-07-25 Thread Martin Hujer

Read this: http://framework.zend.com/manual/en/introduction.installation.html
and links to the 'Front Controller', 'Model-View-Controller' and 'Get
started with Zend Framework MVC!' in the bottom.

Martin.


Rohit83 wrote:
> 
> Hello 
> I want to know how to start project development using Zend
> framework and PHP configuration directives
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-start-project-development-with-zend-framework-tf4140516s16154.html#a11777626
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] how to start project development with zend framework

2007-07-25 Thread Rohit83

Hello 
I want to know how to start project development using Zend
framework and PHP configuration directives
-- 
View this message in context: 
http://www.nabble.com/how-to-start-project-development-with-zend-framework-tf4140516s16154.html#a11777475
Sent from the Zend Framework mailing list archive at Nabble.com.