Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


PHP: run a shell command?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Sun Jul 20, 2008 11:57 pm    Post subject: PHP: run a shell command? Reply with quote

is it possible to run a shell command in PHP?

like

<?php
$username = $_POST[´user´];
shell_command(´mkdir /home/ ¨ . $username . ¨/publci_html´);
?>
etc?

_________________
Back to top
View user's profile Send private message MSN Messenger
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Mon Jul 21, 2008 3:48 am    Post subject: Reply with quote

http://www.php.net/manual/en/ref.exec.php

Check out the contents on that page.
Back to top
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Mon Jul 21, 2008 10:14 am    Post subject: Reply with quote

and how can i use sudo in it? usually i have to enter a password after i type it in... ( like sudo... enter... password..)
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites