Hello,
I am interested how you guys are setting the APPLICATION_ENV for staging.
For httpd is easy to set APPLICATION_ENV in vhost. For CLI can be used
OS environment variable.
But for cli scripts is much harder, especially if the same machine is
going to be used for multiple projects, some
Hi Christian,
https://github.com/markizano/markizano/blob/master/application/setup.php
https://github.com/markizano/markizano/blob/master/htdocs/.htaccess
I use a combination of .htaccess and $_ENV for setting up the application
environment.
You can create a bash wrapper (ENVIRONMENT=staging),
Try visiting http://framework.zend.com./ Works fine for me.
A dot at the end is not invalid (for hostnames) because it indicates the
explicit end of the domain name.
If no dot is available at the end and the given host cannot be found by your
dns server you (/your client) can use search domains
I usually wrap my cronjobs within bash scripts, which allows me to set
enviroment directly in the script...
That allows me to centralize and pipe the execution of multiple CLI PHP
commands :)
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com
On 8 June 2011 15:27, Markizano
I forgot to update this discussion. This is a bug that was introduced on recent
versions. Dots at the end are not valid as per RFC-2822.
I have reported and it was fixed yesterday ( very fast solution :) ):
http://framework.zend.com/issues/browse/ZF-11451
Regards,
Fernando Morgenstern
Thanks,
That was too easy :) Exactly what i missed and i needed...
Cristian
I usually wrap my cronjobs within bash scripts, which allows me to set
enviroment directly in the script...
That allows me to centralize and pipe the execution of multiple CLI
PHP commands :)
Marco Pivetta
Depending on the APPLICATION_ID my website adds different statict content
from a specific module.
F.e. APPLICATION_ID 1 catches content from /modules/content1 etc.
I would like to always call the static contents via
www.mydomain.de/content/foo.
I tried around using a plugin but I always get a
Sorry for barging in, but what do you do exactly with a PHP CLI access to
your app? I'm terribly interested in API enabled apps.
On Wed, Jun 8, 2011 at 5:05 PM, Cristian Bichis cri...@imagis.ro wrote:
Thanks,
That was too easy :) Exactly what i missed and i needed...
Cristian
I usually
@nevvermind any input output operation where you'll need both batch
processing power and piping...
As an example, I usually build web crawlers that are accessible as CLI
interfaces, which makes cronjob activity easier for me and allows me to
redirect output wherever I want :)
Marco Pivetta
Hi all, has any progress been made with Zend_PDF Canvases? I see that it is
half completed on the bug tracker, how much more work is needed to complete
it?
Also, has anybody managed to convert the TCPDF ImageEPS() function to
Zend_PDF to import legacy .ai/.eps files into a pdf?
Thank you
--
cronjobs, test scripts, aso...
Cristian
Sorry for barging in, but what do you do exactly with a PHP CLI access
to your app? I'm terribly interested in API enabled apps.
On Wed, Jun 8, 2011 at 5:05 PM, Cristian Bichis cri...@imagis.ro
mailto:cri...@imagis.ro wrote:
Thanks,
That was
-- Cristian Bichis cri...@imagis.ro wrote
(on Wednesday, 08 June 2011, 05:05 PM +0300):
Thanks,
That was too easy :) Exactly what i missed and i needed...
Another easy way:
prompt APPLICATION_ENV=cli ; php cli-endpoint.php
In your script, grab from $_SERVER:
My plugin:
?php
class Plugin_Content extends Zend_Controller_Plugin_Abstract
{
public function dispatchLoopStartup(Zend_Controller_Request_Abstract
$request)
{
I would remove that plugin all-together and push this to your bootstrap, like
so:
13 matches
Mail list logo