<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Zend Server, 500 Internal Error Server</title>
	<atom:link href="http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/</link>
	<description>Mi vida y cosas relacionadas</description>
	<lastBuildDate>Thu, 24 Jun 2010 07:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Pablo Viquez</title>
		<link>http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/comment-page-1/#comment-12232</link>
		<dc:creator>Pablo Viquez</dc:creator>
		<pubDate>Wed, 02 Jun 2010 20:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/#comment-12232</guid>
		<description>Hola Luigi,

Lo que no funciona con PHP en CGI, son las instrucciones en el archivo .htaccess php_value.

En el caso anterior, la instruccion &quot;ForceType application/x-httpd-php&quot; si se puede hacer en el archivo .htaccess ya que es una instruccion de apache no de PHP. Lo que fallaria son las instrucciones php_value, que en este caso es posible poner en el registro de windows.

Quedaria algo asi:


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\Per Directory Values\C\public_html]
&quot;auto_prepend_file&quot;=&quot;gzip-js.php&quot;



Por cierto, esta muy bonita la manera de comprimir archivos JS.

Saludos

Pablo</description>
		<content:encoded><![CDATA[<p>Hola Luigi,</p>
<p>Lo que no funciona con PHP en CGI, son las instrucciones en el archivo .htaccess php_value.</p>
<p>En el caso anterior, la instruccion &#8220;ForceType application/x-httpd-php&#8221; si se puede hacer en el archivo .htaccess ya que es una instruccion de apache no de PHP. Lo que fallaria son las instrucciones php_value, que en este caso es posible poner en el registro de windows.</p>
<p>Quedaria algo asi:</p>
<p>Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\Per Directory Values\C\public_html]<br />
&#8220;auto_prepend_file&#8221;=&#8221;gzip-js.php&#8221;</p>
<p>Por cierto, esta muy bonita la manera de comprimir archivos JS.</p>
<p>Saludos</p>
<p>Pablo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luigi</title>
		<link>http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/comment-page-1/#comment-12229</link>
		<dc:creator>Luigi</dc:creator>
		<pubDate>Wed, 02 Jun 2010 11:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/#comment-12229</guid>
		<description>Hola excelente explicación respecto a cuando PHP esta como CGI. Pero incluso sigo estando perdido de como puedo realizar esta acción con el registro.

en el .htacces en otros servidores (sin zend server) manejo esto.
  
    ForceType application/x-httpd-php
    php_value auto_prepend_file gzip-js.php
  

El gzip-js.php Contiene lo siguiente.
&lt;?php
// $Id: gzip-js.php $
// initialize ob_gzhandler function to send and compress data
ob_start (&quot;ob_gzhandler&quot;);
// send the requisite header information and character set
header (&quot;Content-Type: application/javascript; charset: UTF-8&quot;);
// check cached credentials and reprocess accordingly
header (&quot;Cache-Control: must-revalidate&quot;);
// set variable for duration of cached content
$offset = 60 * 60;
// set variable specifying format of expiration header
$expire = &quot;expires: &quot; . gmdate (&quot;D, d M Y H:i:s&quot;, time() + $offset) . &quot; GMT&quot;;
// send cache expiration header to the client broswer
header ($expire);

Alguna solución para este acción de comprimir los .js a gzip encode?</description>
		<content:encoded><![CDATA[<p>Hola excelente explicación respecto a cuando PHP esta como CGI. Pero incluso sigo estando perdido de como puedo realizar esta acción con el registro.</p>
<p>en el .htacces en otros servidores (sin zend server) manejo esto.</p>
<p>    ForceType application/x-httpd-php<br />
    php_value auto_prepend_file gzip-js.php</p>
<p>El gzip-js.php Contiene lo siguiente.<br />
&lt;?php<br />
// $Id: gzip-js.php $<br />
// initialize ob_gzhandler function to send and compress data<br />
ob_start (&quot;ob_gzhandler&quot;);<br />
// send the requisite header information and character set<br />
header (&quot;Content-Type: application/javascript; charset: UTF-8&quot;);<br />
// check cached credentials and reprocess accordingly<br />
header (&quot;Cache-Control: must-revalidate&quot;);<br />
// set variable for duration of cached content<br />
$offset = 60 * 60;<br />
// set variable specifying format of expiration header<br />
$expire = &quot;expires: &quot; . gmdate (&quot;D, d M Y H:i:s&quot;, time() + $offset) . &quot; GMT&quot;;<br />
// send cache expiration header to the client broswer<br />
header ($expire);</p>
<p>Alguna solución para este acción de comprimir los .js a gzip encode?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Viquez</title>
		<link>http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/comment-page-1/#comment-6874</link>
		<dc:creator>Pablo Viquez</dc:creator>
		<pubDate>Sat, 12 Dec 2009 21:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/#comment-6874</guid>
		<description>Hola Alejandro,

Si es posible cambiar la configuracion siempre pero no usando .htaccess. La manera de hacerlo seria con código (tiempo de ejecución) con la función &quot;ini_set&quot; o si querés cambiar la ruta de inclusion de archivos por ejemplo podes usar tambien &quot;set_include_path&quot;.

Las funciones para cambiar la configuracion serían:


http://php.net/manual/function.ini-set.php
ini_set - Asigna un valor a las opciones de configuración.


Para ver la lista de configuraciones que podés usar:
http://php.net/manual/function.ini-set.php


Otra útil es set_include_path que asigna el valor de &quot;include_path&quot; y retorna el valor anterior si el cambio fue exitoso ó falso (false) en caso que no lo cambio.
http://php.net/manual/function.set-include-path.php

Otras funciones útiles:
ini_restore() - http://php.net/manual/function.ini-restore.php
ini_get() - http://php.net/manual/function.ini-get.php

Espero que te ayude</description>
		<content:encoded><![CDATA[<p>Hola Alejandro,</p>
<p>Si es posible cambiar la configuracion siempre pero no usando .htaccess. La manera de hacerlo seria con código (tiempo de ejecución) con la función &#8220;ini_set&#8221; o si querés cambiar la ruta de inclusion de archivos por ejemplo podes usar tambien &#8220;set_include_path&#8221;.</p>
<p>Las funciones para cambiar la configuracion serían:</p>
<p><a href="http://php.net/manual/function.ini-set.php" rel="nofollow">http://php.net/manual/function.ini-set.php</a><br />
ini_set &#8211; Asigna un valor a las opciones de configuración.</p>
<p>Para ver la lista de configuraciones que podés usar:<br />
<a href="http://php.net/manual/function.ini-set.php" rel="nofollow">http://php.net/manual/function.ini-set.php</a></p>
<p>Otra útil es set_include_path que asigna el valor de &#8220;include_path&#8221; y retorna el valor anterior si el cambio fue exitoso ó falso (false) en caso que no lo cambio.<br />
<a href="http://php.net/manual/function.set-include-path.php" rel="nofollow">http://php.net/manual/function.set-include-path.php</a></p>
<p>Otras funciones útiles:<br />
ini_restore() &#8211; <a href="http://php.net/manual/function.ini-restore.php" rel="nofollow">http://php.net/manual/function.ini-restore.php</a><br />
ini_get() &#8211; <a href="http://php.net/manual/function.ini-get.php" rel="nofollow">http://php.net/manual/function.ini-get.php</a></p>
<p>Espero que te ayude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alejandro</title>
		<link>http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/comment-page-1/#comment-6872</link>
		<dc:creator>alejandro</dc:creator>
		<pubDate>Sat, 12 Dec 2009 17:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/#comment-6872</guid>
		<description>hola pablo,
has encontrado una solucion a esto? yo tengo el mismo problema ( zendserver =&gt; php como CGI=&gt;.htaccess php_flag directivas no funcionan)
he probado con ponerlas en php.ini en el directorio, pero nada. Lo de ponerlas en el registro voy a probar aunque ya con lo que dices de que es como php_admin_value y no deja cambiar los valores en tiempo de ejecusion y gual no me valen.
Buen Blog ! (siempre compartir ideas es bueno) salu2</description>
		<content:encoded><![CDATA[<p>hola pablo,<br />
has encontrado una solucion a esto? yo tengo el mismo problema ( zendserver =&gt; php como CGI=&gt;.htaccess php_flag directivas no funcionan)<br />
he probado con ponerlas en php.ini en el directorio, pero nada. Lo de ponerlas en el registro voy a probar aunque ya con lo que dices de que es como php_admin_value y no deja cambiar los valores en tiempo de ejecusion y gual no me valen.<br />
Buen Blog ! (siempre compartir ideas es bueno) salu2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo Viquez Blog &#187; php set_include_path() function returns false</title>
		<link>http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/comment-page-1/#comment-2678</link>
		<dc:creator>Pablo Viquez Blog &#187; php set_include_path() function returns false</dc:creator>
		<pubDate>Mon, 15 Jun 2009 01:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pabloviquez.com/2009/06/zend-server-500-internal-error-server/#comment-2678</guid>
		<description>[...] que cuando se usa el registro de windows (windows registry) para modificar la configuracion de PHP (Ver: Registro de windows y la configuracion de PHP), es como utilizar php_admin_value la cual no deja que se modifiquen en tiempo de [...]</description>
		<content:encoded><![CDATA[<p>[...] que cuando se usa el registro de windows (windows registry) para modificar la configuracion de PHP (Ver: Registro de windows y la configuracion de PHP), es como utilizar php_admin_value la cual no deja que se modifiquen en tiempo de [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
