hi,
i's got 2 questions:
#1: why this not work:
$fp=fsockopen("www.something.com",80,&$errno,&$errtext,4);
4 is the timeout given in seconds so that if the php script can't connect to www.something.com it raise an error that i could check (like this: if(!fp) { echo "*!!!! error!!!";} else { echo "connected!!! yeahh!!";})
but: if i unplug the network cable from the network card it don't stop after 4 seconds, it continue to search and after 30 secs it say "Fatal Error blah blah, can't connect" and therefore it don't reach the code that's responsible for error handling ('cause it's a Fatal Error)
so what's the prob? is my php misconfigured or what?
#2: anybody have a working dom xml extension under windows and pws? if yes, what version number of php you using?
thx,
skynet
- [mod-edit] No Badwords Please [/mod-edit]