You are here: Re: please help in socket_send function in php « PHP Programming Language « IT news, forums, messages
Re: please help in socket_send function in php

Posted by Jerry Stuckle on 02/13/07 23:35

ranishobha21@gmail.com wrote:
> Dear all,
>
> i want to send some unix commands to remote unix machine in france
> through php.i am using socket communication in php, i have written a
> socket communication program so that it connects to the remote
> machine.
>
> i dont get any errors it says socket is connected.i dont know whether
> the socket is connected or not.
>
> now i want to send username and password to that remote machine.i am
> using socket_send function.
>
> $username='abcd';
> $output=socket_send($socket, $username, strLen($username),0);
> echo $output;
>
> what ever i send it returns the value integer.for example if i send
> $username ='abcd'; then it returns the length as 4,if i send abcde it
> returns 5.
>
> I think my username and password is not reaching to the remote machine
> when i use socket_send.
>
> can you please give some suggesions
>
> Regards
> shobha
>

Hi, Shobha,

It's hard to tell with the code you posted. Can you post the real code?
Or, if it's large, cut it down to the bare minimum and post it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация