sf_dimitry Posted July 10, 2003 Report Posted July 10, 2003 vai kaads zin, kaadas PHP versijas atbalsta socket_create() un tamlidziigas funkcijas ?? man ir viens fake POP3 serveris jauzraksta. Bet mans PHP, 4.2.1 neatalsta taas funkcijas! :(
jannis Posted July 10, 2003 Report Posted July 10, 2003 nesaprotu - kaadas probleemas? manuaalii rakstic socket_create PHP 4 >= 4.1.0 mjaa taa iet, ka nokopee kaut ko un nekaa nerubii
sf_dimitry Posted July 10, 2003 Author Report Posted July 10, 2003 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:
jannis Posted July 10, 2003 Report Posted July 10, 2003 taadaa gadiijumaa - tev php.ini extension=php_sockets.dll cerams ir atkomenteets?
sf_dimitry Posted July 13, 2003 Author Report Posted July 13, 2003 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
Recommended Posts