User Profile

Collapse

Profile Sidebar

Collapse
summer law
summer law
Last Activity: Mar 19 '12, 07:52 AM
Joined: Mar 7 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • summer law
    replied to How to create a telnet session using php?
    in PHP
    Thanks Dan,

    i had tried the following codes -->

    Code:
    <?php
    $ip = '192.168.x.x';
    $port = '23';
    $connect = fsockopen($ip,$port);
    
    if(!$connect){
        echo 'fail';
    }
    else{
        echo 'pass';
    }
    ?>
    But how can i input the username and password ?
    i had tried fwrite($connect , 'username'); but i dont seem to be working.
    See more | Go to post

    Leave a comment:


  • summer law
    started a topic How to create a telnet session using php?
    in PHP

    How to create a telnet session using php?

    Anyone can help me to do the following?
    Im new to php as i had did it using python but i not sure how to write it in php as it does not have any telnet module.

    Write a PHP code using proc_open()

    the commands are
    1. telnet 10.247.5.3
    2. when login prompt, type xxx
    3. when password prompt, type zzz.
    4. run the command sh run.

    thanks!
    See more | Go to post

  • This the code not sure how to continue it so that after i click the button some data will be passed to another page via GET method then the page will send the processed data back.
    Code:
    <script type="text/javascript">
                    var quot = ' " ';
                    function display(a){
                        alert("'" + a + "'")
                    }
                    $(document).ready(function()
    ...
    See more | Go to post
    Last edited by Dormilich; Mar 7 '12, 09:06 PM. Reason: Please use [CODE] [/CODE] tags when posting code.

    Leave a comment:


  • How Ajax can handle the on click event on button.

    i had a website with 2 drop down list and a few buttons depending on the selected item on the drop down list.
    For example i had a home page index.php and i had another two pages getBrand.php and getModel.php so the first drop down list i would need to choose which brand of mobile phone i wanted and then on the 2nd drop down list, a list of model of the mobile phone provided by the selected brand will be shown, everything is work fine until...
    See more | Go to post
No activity results to display
Show More
Working...