[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

VB Script

37K

Solutions

20K

Contributors

VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

There is a server and I need to socket connection and execute some command and get output from there. Now it is connected working with w3sockets.dll of VB code. I wants to convert it to PHP but, I am not sure how to do it. Only telnet is enable there. Please help me regards this issue. Old code is as below.

 sSocketText = ""
  oSocket = CreateObject("Socket.TCP")
  oSocket.DoTelnetEmulation = True
  oSocket.TelnetEmulation = "TTY"
  oSocket.Host = IP + ":" + PORT
  oSocket.Open()

  login = "LGI: HLRSN =" + HLRSN(i) + ", OPNAME=" + Chr(34) + hlr_uname + Chr(34) + ", PWD=" + Chr(34) + hlr_pass + Chr(34) + ";"
  oSocket.SendLine(login)
  search = "LST MSCNUM: IMSI=" + Chr(34) + msisdn + Chr(34) + ";"
 oSocket.SendLine(search)

  This is vb code using w3sockets.dll. I wants to convert it to PHP.


 Your Comment
 by:Md. Hosny Mohashin
 ID: 42415968·22h
0
LVL 27

Expert Comment

by:Brian B
You have entered this as a post, but it looks like you are asking for help. To get the best response from the Experts, you should probably re-submit this as a question using the "ask a question" button at the top of the page, or this link: https://www.experts-exchange.com/askQuestion.jsp

If you do ask a question, please post the link to it back here so others can find your question and help you more quickly.

Please see here for further details: http://support.experts-exchange.com/customer/portal/articles/756544-how-to-succeed-at-ee-as-an-asker
0
Become a Certified Penetration Testing Engineer
LVL 12
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

in vb  there is a panel control. Can I put a word doc file in panel ?
0
LVL 36

Expert Comment

by:Rob Henson
You have created a Post here. You will get better responses from Experts if you raise a question. Use the big blue button at the top of the screen or this link:

Ask a Question
0
Hi everybody i need write  modbus tcp/ip with vb all version

some people can help me? Thank You.
 
0
LVL 36

Expert Comment

by:Rob Henson
You have raised a Post here rather than a Question. You will get better assistance from Experts by raising a question using the big blue button at the top of the screen.
0
Hello Team,

I created a VB Script. This script opens excel sheets and refresh data connections.  (Pivot)
Would anyone help me to get a code which will also apply filters from same pivot in the excel.

Thanks in advance!!
0
LVL 36

Expert Comment

by:Rob Henson
Vikram, you have raised a post here. To get more expert assistance it would be better to raise a question using the big blue button at the top of the screen and choosing relevant topic areas.
0

Author Comment

by:vikram bharadwaj
Thanks Rob, Raised a question as per your instructions.  Have a nice day!!
0

VB Script

37K

Solutions

20K

Contributors

VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic, but with some important differences. VBScript is commonly used for automating administrative and other tasks in Windows operating systems (by means of the Windows Script Host) and for server-side scripting in ASP web applications. It is also used for client-side scripting in Internet Explorer, specifically in intranet web applications.