hey guys, i made my first web socket server in php and i run it in my localhost and it worked fine.. the problem is, i want to use it in my website... my website is in a shared server and i dont have shell access.. so how can i run my server there?? this is how i installed it in my localhost: [code] $ php -q htdocs/sockets/server/server.php [/code] but now i cant do this in my website and i tried to run it through the browser and nothing came out!(by opening the server.php on the web browser) is there …

Member Avatar
Member Avatar
+0 forum 2

Hello all. I've previously created a working socket program in C in a 32-bit machine and now I have to transfer it to a 64-bit machine. May I ask if there is anything I have to change in my program to make it work in a 64-bit machine? I did some research on how to do it and from what I've learned, it seems like I'll have no problem transferring the program and make it work except for one function I used. I used [B]htons[/B] in my program in the 32-bit machine and it seems that it has a 64-bit …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I'm trying to compile a socket program in DevC++ but everytime I do it I get a lot of linker errors like these: [CODE] [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `htons@4' [Linker error] undefined reference to `inet_pton' [Linker error] undefined reference to `socket@12' [/CODE] I have previously run the socket program successfully in Linux but I have to export it to WindowsXP, and I must admit I'm relatively new to programming in WindowsXP. These are the header files I used in the WindowsXP version: [CODE] #define WIN32_LEAN_AND_MEAN #include <windows.h> //#include <winsock.h> #include <winsock2.h> …

Member Avatar
Member Avatar
+0 forum 4

I created a C program that will make a connection to a website. I can compile it with no errors at all but when I run it, I still can't create a connection to my specified website. The errors that are shown in the terminal are: client: connect: Connection timed out client: connect: Connection timed out client: failed to connect Right now I can't find where the error might be. So may I ask anyone if there is something erroneous/missing in the program? Thank you. My program looks like the one below: [CODE] // get sockaddr, IPv4 or IPv6: void …

Member Avatar
Member Avatar
+0 forum 5

Hi everyone! I just want to ask, how do I use socket programming in C to open/go to web sites? I want to create a program that should look like this: the program asks for an integer input from the user and depending on the input number, the program invokes and tries to connect to a specific website. For example, if the input is 1, the program will try to connect to htttp://www.yahoo.com and if the input is 2, the program will try to connect to [url]http://www.google.com[/url]. The websites will be pre-determined, meaning if the input is 1, the program …

Member Avatar
Member Avatar
+0 forum 3

The End.