User Profile

Collapse

Profile Sidebar

Collapse
mirainc
mirainc
Last Activity: Sep 11 '08, 05:04 AM
Joined: Jul 25 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mirainc
    replied to Remote shutdown
    in PHP
    Ok. Actually when i echo "$remoteshutdow n"; the output i get is:
    c:\WINDOWS\Powe r\psshutdown.ex e \\172.16.223.21 3 -u sadmin -p studadmin -f -r -t 60

    so i actually copied n pasted tat echo line into cmd and it works. So now i donno why the shell_exec() won't execute the line.

    When i echo the shell_exec() function i get nothing. but if i don input any values i get the options for psshutdown (like, the...
    See more | Go to post

    Leave a comment:


  • mirainc
    replied to Remote shutdown
    in PHP
    hi Dan,
    Yes the echo output is correct but i cannot figure out why it does not execute in cmd.. any other way to execute the command in cmd? besides shell_exec() because its still not working.

    Thanks
    See more | Go to post

    Leave a comment:


  • mirainc
    started a topic Remote shutdown
    in PHP

    Remote shutdown

    Hi all,

    I want to do a remote shutdown to PC that is in the same domain as mine. I managed to do a command prompt version and it works but now i need to add it in my application, so i tried converting it to PHP, but i cannot seem to get the result i want. Can anyone tell me what i am doing wrong..

    In CMD:
    c:\WINDOWS\Powe r\psshutdown.ex e \\172.16.223.21 3 -u sadmin -p studadmin -f -k -t 1

    In PHP:...
    See more | Go to post

  • mirainc
    replied to Cmd in PHP?
    in PHP
    Oh awesome! it finally worked! thanks everyone.. Weird that it actually worked now.. considering that i was using the same codes..

    Thanks all who helped!
    See more | Go to post

    Leave a comment:


  • mirainc
    replied to Cmd in PHP?
    in PHP
    hmm.. i don know what XAMP is.. sorry... i'm new to this.. (: I donno if this will help but i'm using apache to run my php....
    See more | Go to post

    Leave a comment:


  • mirainc
    replied to Cmd in PHP?
    in PHP
    Oh.. when i run in cmd i get the output but when i run my php page the whole page will not load.. it just hangs..Still donno wadt the problem is.. i manage to do a ping in a similar way n display the output but the system info is still giving me problems....
    See more | Go to post

    Leave a comment:


  • mirainc
    started a topic Cmd in PHP?
    in PHP

    Cmd in PHP?

    Was wondering if i could run a cmd command in php. I want to display the PC's system information. i know that in cmd it is C:\>systeminfo. So how can i get that in PHP. Must use shell_exec()? really lost on how to do this. this is wad i have been trying but no success.

    [PHP]<?php
    $cmd = 'C:\>systeminfo ';
    $display = .shell_exec($cm d);
    echo "$display";
    ?>[/PHP]

    [PHP]<?php...
    See more | Go to post

  • mirainc
    replied to opening a pop-up window
    in .NET
    So does that mean that i cant open up a pop up window at all in Visual Web Developer?...
    See more | Go to post

    Leave a comment:


  • mirainc
    started a topic opening a pop-up window
    in .NET

    opening a pop-up window

    Hey all

    i want to open up a pop up window when i select a checkbox in the gridview..

    any suggestions?

    Using VB.NET language..
    See more | Go to post

  • mirainc
    started a topic print without javascript
    in .NET

    print without javascript

    is it possible to print pages without javascript?
    im using visual web developer..VB.N ET
    See more | Go to post

  • mirainc
    replied to selecting multiple records in checkbox
    in .NET
    Code:
    //Destination page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            'AddressEcc labels
            Label10.Text = Request.QueryString("Name")
            Label11.Text = "Admission No: " + Request.QueryString("Adm_No")
            'Display the value of Hidden column in a label control
            Label12.Text = Request.QueryString("TermAdd1")
    ...
    See more | Go to post

    Leave a comment:


  • mirainc
    started a topic selecting multiple records in checkbox
    in .NET

    selecting multiple records in checkbox

    hey all..

    i have a gridview with a checkbox in ItemTemplate..
    what i have already done is when i select any checkbox, it will direct me to another page.
    That other page contains a reminder letter in which i can just print it..

    But now i want to be able to select several checkbox and just print those letters..

    How can i achieve this?
    using VB.NET
    See more | Go to post

  • mirainc
    replied to Power saving
    in PHP
    i found tat too but i do not want to install something else to achieve the results i want.
    See more | Go to post

    Leave a comment:


  • mirainc
    started a topic Power saving
    in PHP

    Power saving

    is it possible to turn off the monitor on just the current PC? or PC in a network? Network as in the PCs connected by LAN. Coz my teacher wants a program that will shutdown, hibernate, shutdown hard disks and switch off monitors in the school network. But i really have no idea how to do that using PHP.. I'm new to PHP.. just learning it to do this project.. i managed to do a PC shutdown on my PC but i dunno how to do that on a LAN network..
    ...
    See more | Go to post

  • mirainc
    started a topic Obtaining System information
    in PHP

    Obtaining System information

    Is there a way of obtaining and displaying System information of the current PC through IP address? in PHP of course..

    Thanks
    See more | Go to post

  • mirainc
    started a topic Selecting from gridview
    in .NET

    Selecting from gridview

    Hey all

    I'm using a Gridview with Selection enabled to allow a user to select an item. When the user selects the item, I want to bring the user to another page where I will populate with the details of the selected item.

    How can i achieve this?

    This is what i did so far..
    Protected Sub CheckBox1_Check edChanged(ByVal sender As Object, ByVal e As System.EventArg s
    Dim CheckBox1 As...
    See more | Go to post

  • mirainc
    replied to Code to turn off monitor
    in PHP
    haha.. ya he's weird.. He gave me this for my final year project...

    OH.. can i ask 1 more thing? :D

    is it possible to turn off the monitor on just the current PC? or PC in a network? Network as in the PCs connected by LAN. Coz my teacher wants a program that will shutdown, hibernate, shutdown hard disks and switch off monitors in the school network. But i really have no idea how to do that using PHP.. I'm new to PHP.....
    See more | Go to post

    Leave a comment:


  • mirainc
    replied to Code to turn off monitor
    in PHP
    hmm.. ya i guess if wa websit could do that it would be bad.. My teacher is demanding too much i guess.. anyway thanks so much for all the help.. At least now i can tell my teacher why i cannot do it..

    Thanks guys! (:
    See more | Go to post

    Leave a comment:


  • mirainc
    replied to Obtaining power values
    in PHP
    Is there a way of obtaining System information of a PC through IP address? in PHP of course..

    Thanks
    See more | Go to post

    Leave a comment:


  • mirainc
    started a topic Network PC IP address view
    in PHP

    Network PC IP address view

    Any PHP code that can obtain and display all the IP addresses of all the PC in a network? So if this PC is running the application and the PC is connected to the LAN will i be able to view the IP addresses of all the PC in the network?

    Thanks
    See more | Go to post
No activity results to display
Show More
Working...