Search found 10 matches

by lemaire
Wed Oct 07, 2009 3:56 pm
Forum: General Discussion
Topic: adding a number to a string
Replies: 1
Views: 214

adding a number to a string

Hello,
I am trying to write a simple coding algo that will add 10 to every character in a file. When i do z+10, it just output 10. How can i get the ascii value of z so that it can be added to 10.

Thanks
by lemaire
Tue Mar 17, 2009 1:38 pm
Forum: PHP - Code
Topic: client-server programming
Replies: 1
Views: 127

client-server programming

I posted a few days ago about the inability of my php client to connect to my c server. I switched from a c server to a php server and still nothing. I desperately need someone to show me what is wrong in my codes. Please guys, i am learning and just need someone to show me. The following is the php...
by lemaire
Tue Mar 17, 2009 12:54 pm
Forum: PHP - Code
Topic: client-server programming
Replies: 0
Views: 104

client-server programming

I posted a few days ago about the inability of my php client to connect to my c server. I switched from a c server to a php server and still nothing. I desperately need someone to show me what is wrong in my codes. Please guys, i am learning and just need someone to show me. The following is the php...
by lemaire
Sun Mar 15, 2009 6:11 pm
Forum: PHP - Code
Topic: re: client-server programing
Replies: 1
Views: 176

re: client-server programing

I posted a few days ago about the inability of my php client to connect to my c server. I switched from a c server to a php server and still nothing. I desperately need someone to show me what is wrong in my codes. Please guys, i am learning and just need someone to show me. The following is the php...
by lemaire
Thu Mar 12, 2009 7:15 pm
Forum: PHP - Code
Topic: client-server
Replies: 10
Views: 545

Re: client-server

just compiled and run it again, still the same issue.
I have frankly never seen something behaving so strangely.
by lemaire
Thu Mar 12, 2009 6:44 pm
Forum: PHP - Code
Topic: client-server
Replies: 10
Views: 545

Re: client-server

still the same problem even with the provided correction.
Here is the link to the php client http://pdc-amd01.poly.edu/~zcouli01/aform.php
by lemaire
Thu Mar 12, 2009 6:07 pm
Forum: PHP - Code
Topic: client-server
Replies: 10
Views: 545

Re: client-server

I know this is a php forum but if possible could you guys please take a look at the following c server that was supposed to be listening. /***** inetserver.c *****/ #include <stdio.h> #include <unistd.h> #include <stdlib.h> /* for getenv */ #include <sys/types.h> #include <sys/socket.h> #include <ne...
by lemaire
Thu Mar 12, 2009 5:55 pm
Forum: PHP - Code
Topic: client-server
Replies: 10
Views: 545

Re: client-server

Since the c server and php client are written in two different languages, could that be the problem?
by lemaire
Thu Mar 12, 2009 5:20 pm
Forum: PHP - Code
Topic: client-server
Replies: 10
Views: 545

Re: client-server

well i wrote a c server that is supposed to be listening on that port. Can it be that the port(10022) is closed?
by lemaire
Thu Mar 12, 2009 3:19 pm
Forum: PHP - Code
Topic: client-server
Replies: 10
Views: 545

client-server

Greetings, i have a php client side that is trying to connect to a server written in c. When i try to connect, i receive the following warning message: Warning: socket_connect() [function.socket-connect]: unable to connect [111]: Connection refused. Here is the code in question and i would really ap...