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...
User Profile
Collapse
-
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.
ThanksLeave a comment:
-
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:... -
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!Leave a comment:
-
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....Leave a comment:
-
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....Leave a comment:
-
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... -
So does that mean that i cant open up a pop up window at all in Visual Web Developer?...Leave a comment:
-
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.. -
print without javascript
is it possible to print pages without javascript?
im using visual web developer..VB.N ET -
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")
Leave a comment:
-
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 -
i found tat too but i do not want to install something else to achieve the results i want.Leave a comment:
-
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..
... -
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 -
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... -
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.....Leave a comment:
-
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! (:Leave a comment:
-
Is there a way of obtaining System information of a PC through IP address? in PHP of course..
ThanksLeave a comment:
-
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
No activity results to display
Show More
Leave a comment: