Hey Freakz,
First of all, sorry for my bad english. Im from The Netherlands.
Im stuck with a problem i never had before. I think i have build some expiriences since im working for PHP almost 2 year now. The problem im having now i have never seen before.
My complete php has died. Everything i tried has run out on nothing. I'm out of idea's.
Okej, i'll try to give you an complete discription what i have done because i thing it might be important.
I was testing with the code below. I had just turned on the curl extension when PHP crashed.
<?php
$fp = fsockopen ("http://user@pass:127.0.0.1", 32323, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\nHost: [url]www.example.com\r\n\r\n[/url]");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}
$ch = curl_init ("http://user@pass:127.0.0.1:32323,");
$fp = fopen ("INDEX.HTML", "w");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
echo $fp;
fclose ($fp);
?>
PHP.exe had an error. I pressed OK. Then Microsoft Visual Studio came with the question if i would like to debug. Still clicking i pressed Yes. I closed Visual Studio (nothing edited). Since that time my PHP has died.
Ik have tried to reboot, but without any result. I have tried to install another PHPversion, I installed IIS 5.0.. etc. etc..
nothing worked...
The strange thing is that the HTML files work good. The PHP files gives a blank page.
My php.ini has been replaced, no result. I replaced the dlls, nothing.
When i run a script from the command line i get this:
C:\Inetpub\PHP\php.exe c:\Inetpub\wwwroot\index.php
content-type: text/html
X-powerd-by: PHP/4.3.1
When i do php -i i get the HTML source of the phpinfo().
Can anyone tell my what is going on here?!
plz hlp!
--Teye