mIRC Homepage
Posted By: Thomas_59 Problem sockopen ... - 12/06/06 08:54 AM
hello alll ... i ve got some probleme with script

Code:
 alias ms {
sockclose ms
sockopen ms depan-info.com 80
}

on *:sockopen:ms:{
sockwrite -n ms GET /ircmsg.php HTTP/1.1
sockwrite -n ms Host: depan-info.com $+ $str($crlf,2)
}

on *:sockread:ms:{
sockread %a
write ircmsg.php %a
compare
unset %a
}
 


when i read irgmsg.php ...

Code:
  HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
Date: Mon, 12 Jun 2006 08:41:25 GMT
Server: Apache
X-Powered-By: PHP/4.4.2
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html
61
Date: 12.06.2006 10.38



why it s repeat HTTP/1.1 200 OK ????? ths in advance
Posted By: DaveC Re: Problem sockopen ... - 12/06/06 11:45 AM
You sure they werent already in the file? maybe from attempts to read it previously that you had stuffed up or used an incomplete script?
Posted By: MikeChat Re: Problem sockopen ... - 12/06/06 04:48 PM
change the alias to add one line:

alias ms {
sockclose ms
sockopen ms depan-info.com 80
write -c ircmsg.php
}

the -c will clear the contents of the file
© mIRC Discussion Forums