Jump to content

php/html scripts to control a Host pc system?


Recommended Posts

Posted

Hey Hack.5 team!

Even though i only found out about your site and videos last night i must say i am already hooked :D , so much so im inspired to make my own sort of iptv (but thats a diffrent story)

Anyways to my question!

I just watched the season 1 episode where I think Darren(Dont shoot me if i got name wrong), was showing us how to make a web enabled object act as a remote for Vlc, and this got me thinking how can i make a script of somesort that can act more like a media center remote eg(Shut down task on pc, open a diffrent program, and even Turn off the pc), is this even possible? and could someone be kindenough to point me into the direction on how to achive the effect i want?

Thanks so much for you time, keep up the good work

Matthew

Posted

NAH not knowledgeable enough to be able to use any *nix distro yet im still on windows would i have to use perl or something like that to achive the effect im after?

Posted

Havn't coded any php in a month or two, but I remember it been very similare to C++ (or C), so it's probably some thing like:

sy stem("shutdown -r");

but it might not be, but apparently it is.

WTF?!

I spent 20 minets trying to work out why this post wouldn't submit... and it turns out that the server returns a 503 error if you put valid php syntax in your post...

btw. That "sy stem" in that block of code is ment to read "system", but if you write valid php code and try to submite it, the server returns a 503 error.

Posted

hey guys well i tried to start the script is this code right?

<?

$fire = sy stem("C:Program FilesMozilla Firefoxfirefox.exe");



php echo "<a href="$fire">Run fire fox </a>";

?>

thanks alot

matt

Posted

Yes... except, there is a problem with that... php on a windows box runs as system... so firefox will run as system... or are you just using that as an example program?

Posted

That would be becasuew apache, by default, is not allowed (as a service) to interacte with the desktop. If you open task manager, you should see that firefox is running as system.

Posted

What are you trying to do with firefox? If you want to use a PDA or phone to remotely control what you see on the monitor you might have a hard time. If you have a windows pocket pc, there is a vncviewer available for it, so you could control some of the stuff you see on the host monitor. If you are using firefox to try to download a webpage, take a look at curl--it is a library in php.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...