Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling PHP 5.3.3 From Source Into Apache
    primarykey
    data
    text
    <p>Just compiled 5.3.3 from source (win32). Trying to test some header() stuff but it looks like it won't work with CLI sapi. Any good docs on putting your compiled source into apache as a module, just like i'd normally do with the pre-compiled module.</p> <p>Basically my test would be from CLI</p> <pre><code>php -r "header('Content-Type: text/plain', true, 404); var_dump(headers_list());" </code></pre> <p>I get an empty array from headers_list() so I need to get this built source into apache so that i get a response from headers_list().</p> <p>Thanks in advance guys.</p> <p>------- UPDATE ------</p> <p>Configure command, yet no apache just yet? <a href="http://pastebin.com/qhFVR8A3" rel="nofollow noreferrer">http://pastebin.com/qhFVR8A3</a>:</p> <pre><code>E:\phpsdk\bin\php53dev\vc9\x86\php5.3.3&gt;configure --disable-all --enable-cli --enable-apache2-2handler --enable-apache2-2filter Enabled SAPI: ------------- | Sapi Name | ------------- | cli | ------------- </code></pre> <p>----- 2nd UPDATE ----</p> <p>Downloaded apache, stuck it in ../apache and tried the following command but can't find the headers.</p> <p><a href="http://pastebin.com/XyrzuZvu" rel="nofollow noreferrer">http://pastebin.com/XyrzuZvu</a>:</p> <pre><code>E:\phpsdk\bin\php53dev\vc9\x86\php5.3.3&gt; configure --disable-all --enable-cli --enable-apache2-2handler=../apache --enable-apache2-2filter --enable-cgi </code></pre> <p>---- 3rd Update ---</p> <pre><code>Enabled SAPI: -------------------- | Sapi Name | -------------------- | apache2_2filter | | apache2_2handler | | cgi | | cli | -------------------- I have it working now. E:\phpsdk\bin\php53dev\vc9\x86\php5.3.3&gt;configure --disable-all --enable-cli --enable-apache2-2handler --enable-apache2-2filter --enable-cgi --with-extra-includes=E:\phpsdk\bin\php53dev\vc9\x86\apache\include --with-extra-libs=E:\phpsdk\bin\php53dev\vc9\x86\apache\lib </code></pre> <p>Thanks for the link </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload