Jump to content
php.lv forumi

Php And Sockets


sf_dimitry

Recommended Posts

ja esi tik gudrs pamegini:

<code><font color="#000000">
<font color="#0000CC"><?

 $sock </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/socket_create]socket_create[/url]</font><font color="#006600">(</font><font color="#0000CC">AF_INET</font><font color="#006600">, </font><font color="#0000CC">SOCK_STREAM</font><font color="#006600">, </font><font color="#0000CC">0 </font><font color="#006600">);

</font><font color="#0000CC">?></font>
</font>
</code>

 

un php 4.2.1 raxta:

 

<code><font color="#000000">
X-Powered-By: PHP/4.2.1
Content-type: text/html

<br />
<b>Fatal error</b>:  Call to undefined function:  socket_create() in <b>C:tmpn.php</b> on line <b>3</b><br /></font>
</code>

 

 

jaa nesaproti, nevajag uzreiz braukt citiem virsu! saprati? :angry:

Link to comment
Share on other sites

Hurra :lol: es uzrakstiju mazo Fake POP3 serveri uz PHP. Taas ir loti parasts blocking-socket server, kursh apstrada pa vienam kliemtam pec kartas. Galvenais taa merkis ir - sanemt atguut aizmirsto paroli no POP3 akkaunta. (Jo zem win2000 un winXP "openpass" nedarbojas :(

 

Lai to nokofigureet vajag tikai funkcija main() ielikt vajadfziigo portu un IP adresi.

Kommentu daudz nav, kods pats par sevi sapratams.

:)

 

Fake POP3 server v0.5

Link to comment
Share on other sites

×
×
  • Create New...