-
Posts
34 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Mahdi
-
-
In the name of GodHello guysI have installed jdk 6 on my windows 7 but when I run java files it demonstrates jdk7 demo.for watching message please visit "www.mehdiit.gigfa.com/jdk.png".what is problem?
-
thank you boen I come back here َ A few hours later
-
After "Path" ...\Stream->recive(4)#2{main}Socket error number:Socket error message:
-
It has two error in server side socket error numbersocket error messagewhy is this shown?
-
excuse me boen thanks for your help but I need a program that using it I can run a live dialogue between server and clientsome thing like chat room but just with two person |------------------| | server: | |-------- | | ----------------- | |----------------- | |------------------| |------------------| | client: | |-------- | | ----------------- | |----------------- | |------------------|
-
thank you boen. it works but there is no any dialog, it just shows "no oh no" .how can I change it ?
-
I run it and it showed some errors that you can visit it in following linkwww.mehdiit.gigfa.com/110.png
-
please describe to me how should I do that?It looks as if you've swapped the client and server. Only the client echoes stuff, and it does so after it sends a message. The server should never echo anything, but should remain on until it is explicitly shut down. So try to run things the other way around: First, from the command line (this is VITAL!) run the file that currently gives the execution time error, and then run the file that currently produces the "??"s. -
how should I write in command line (the file that currently gives the execution time error)? I tried it using D:\> bb.php but it didnt work.
-
oh server side gives following response ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? and client gives following error Fatal error: Maximum execution time of 30 seconds exceeded in D:\Program Filess\xampp 1.7.4\htdocs\socket\PEAR2\Net\Transmitter\Stream.php on line 303 what does it mean?
-
my firewall because this process is generally off man.
-
I put the libraries in both suitable places and now it is loading around 10 minutes.dont you think it is because port address or server address?
-
I did what you said and the error was changed like this Warning: require_once(PEAR2/Net/Transmitter/Autoload.php) [function.require-once]: failed to open stream: No such file or directory in D:\Program Filess\xampp 1.7.4\htdocs\socket\aa.php on line 2Fatal error: require_once() [function.require]: Failed opening required 'PEAR2/Net/Transmitter/Autoload.php' (include_path='.;D:\Program Filess\xampp 1.7.4\php\PEAR') in D:\Program Filess\xampp 1.7.4\htdocs\socket\aa.php on line 2Remove any whitespace or any other code you may have before the "<?php"... do so in both files. Also, if you're using Notepad, save the file with ANSI encoding. If you're using another editor, save it as UTF-8 without BOM (Notepad can only save as UTF-8 with BOM). -
Hi birbal where are you. Im glad to see you. I just tried it but I could not do it.
-
Thanks a lot boen but it has following error in both of them: Fatal error: Namespace declaration statement has to be the very first statement in the script in D:\Program Filess\xampp 1.7.4\htdocs\socket\aa.php on line 2 what does it mean?
-
Ok boen but I just want it for dealing with one client (very simple) please tell me from where should I start ?if possible please put code?
-
Excuse me boen_robot, I want to write just a simple Chat program using socket programming. And I dont know any thing about socket programing
-
Hello dear boenCould you please give me the source?
-
Oh I forgot to say that for running php I use Xampp for windows.
-
in the name of Godhello guysI want to create a socket program using php, but at the first it has following error : socket_bind() [function_socket-bind]: Host lookup failed [0]: The requested name is valid, but no data of the requested type was found. in line 19. Could not bind to address. And my source is: <?php // Set time limit to indefinite execution set_time_limit (0); // Set the ip and port we will listen on $address = ' 192.168.0.1'; $port = 8080; // Create a TCP Stream socket $sock = socket_create(AF_INET, SOCK_STREAM, 0); // Bind the socket to an address/port socket_bind($sock, $address, $port) or die('Could not bind to address'); // Start listening for connections socket_listen($sock); /* Accept incoming requests and handle them as child processes */ $client = socket_accept($sock); // Read the input from the client – 1024 bytes $input = socket_read($client, 1024); // Strip all white spaces from input $output = ereg_replace("[ \t\n\r]","",$input).chr(0); // Display output back to client socket_write($client, $output); // Close the client (child) socket socket_close($client); // Close the master sockets socket_close($sock); ?> Above code is my server side program source Please tell me about the error. what does it mean?
-
Hi Sachin First of all you should learn HTML an CSS for web designing then search about your favorite server script language for example php , jsp , c# and asp.net , and .....you should check which one is your favorite .without html no css , php , jsp , c# and asp.net
-
Thank you guyswhich one is most important and useful to web?
-
In the name of GOD
hi guys:which one is most important javascript , jquery or ajax ?for learning JQuery is necessary learning something befor learning JQuery for example javascript or ....?Do you know some books for Beginners ?Thanks for your helping.
-
Thanks for your helping Thescientist .but i wanted to know your opinion
Problem in the java files running by jdk
in Java/JSP/J2EE
Posted
cant anyone help me?