hoi,
Ik probeer een scriptje en ik krijg dit als melding :
Mijn specs:
- windows xp home
- precompiled Apache (http://www.indigostar.com...htm#About%20Indigo%20Perl) : Apache 2.0.48
- PHP 4.3.4
help?
Ik probeer een scriptje en ik krijg dit als melding :
Dus ik google wat rond en zie bijvoorbeeld op http://codewalkers.com/archives/phpcoding/7365.htmlHTTP/1.1 400
Date: Thu, 05 May 2005 09:48:42 GMT
Server: Apache/2.0.44 (Win32) mod_perl/1.99_08 Perl/v5.8.6
Content-Length: 643
Connection: close
Content-Type: text/html; charset=ISO-8859-1
<b>Security Alert!</b> The PHP CGI cannot be accessed directly.
<p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit
<a href="http://php.net/install.windows">the manual page</a>.</p>
Dus eerste wat ik deed was de php.ini in mijn php path hernoemen als .bak, zodat de php.ini in mijn windows path gebruikt word. In die php.ini (c:\windows\) heb ik de line :First thing you need to do is change the line in php.ini so it is cgi.force_redirect = Off
Then - and this is where I tore my hair out for a while - if you have your php.ini in the /windows directory, ensure there there isn't also a default php.ini in the PHP directory as it seems to read that one first.
veranderd naarcgi.force_redirect = 1
en heb me toen me script opnieuw gerunt. En toen kreeg ik dit als repsonse :cgi.force_redirect = 0
en dit gaat nog een tijdje door ;-)HTTP/1.1 200 OK
Date: Thu, 05 May 2005 09:54:08 GMT
Server: Apache/2.0.44 (Win32) mod_perl/1.99_08 Perl/v5.8.6
X-Powered-By: PHP/4.3.11
Connection: close
Content-Type: text/html; charset=ISO-8859-1
MZÿÿ¸@𺴠Í!¸LÍ!This program cannot be run in DOS mode.
$…˜SvÁù=%Áù=%Áù=%ºå1%Æù=%Bå3%Àù=%®æ7%Êù=%®æ9%Ãù=%£æ.%Çù=%Áù<%où=%÷ß7%Åù=%ÿ;%Àù=%>Ù9%Åù=%RichÁù=%PELõÆJBà``@jp@ÐP‚ä`txÀpÄ.text€[` `.rdata4p p@@.data(&@À.rsrcÀ @@SU‹l$VW‹|$…í‹õv‹\$SVWè2ƒÄ…Àt
ø+ðuë_‹Å^][Ãÿ´r@‹Å_+Æ^][Ãÿ8t@…Àu5¡°r@‹T$‹‹‹Lˆü‹‹L$‹P‹D$RPQÿ4t@ƒÄ3Ò…ÀžÂJ#ÂËD$=@r¸@‹
Ìp@‹T$ƒÁ QPjRÿÐp@ƒÄÃÿ8t@…Àu ‹D$…Àt‹@Pÿ<t@ƒÄƒøÿu$ÿ%´r@‹
Ìp@ƒÁ QÿÈp@ƒÄƒøÿuÿ%´r@Ãì¡°r@SV‹´$3Û‹‰\$‰\$‹‹DŜü€x1u^¸[ÄÃUL$W‹=r@Qh¸‘@ÿ׃ăøÿu‰\$T$Rh°‘@ÿ׋-”r@ƒÄƒøÿ¡°r@u‰\$ë9\$u‹‹‹LŜüytÈto9\$t9‹‹‹T‘ü‹Ŝ€;Ët'Qh¨‘@D$$hPÿ˜r@ƒÄ=~&¸ë‹‹‹DŜüT$‹HtQh˜‘@Rÿœr@ƒÄ
Mijn specs:
- windows xp home
- precompiled Apache (http://www.indigostar.com...htm#About%20Indigo%20Perl) : Apache 2.0.48
- PHP 4.3.4
help?