Re: [PHP-DB] accessing system cmds w/ PHP

2002-02-28 Thread William Fong

NOT a good idea.  You would have to run Apache as root (or whatever that
SUID stuff is all about).  I've been able to manage keeping all the users
'virtual' and not needing to hand out shell accounts.

--
William Fong - [EMAIL PROTECTED]
Phone: 626.968.6424 x210  |  Fax: 626.968.6877
Wireless #: 805.490.7732|  Wireless E-mail: [EMAIL PROTECTED]




- Original Message -
From: "Jeremiah Jester" <[EMAIL PROTECTED]>
To: "William Fong" <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 11:45 AM
Subject: RE: [PHP-DB] accessing system cmds w/ PHP


: Is there a way around this? I want to be able to create system users from
my
: web site.
: JJ
:
: -Original Message-
: From: William Fong [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, February 28, 2002 11:30 AM
: To: [EMAIL PROTECTED]
: Subject: Re: [PHP-DB] accessing system cmds w/ PHP
:
:
: Just remember you will be running those commands as the web server, which
: usually have limited access rights.
:
:
: --
: William Fong - [EMAIL PROTECTED]
: Phone: 626.968.6424 x210  |  Fax: 626.968.6877
: Wireless #: 805.490.7732|  Wireless E-mail: [EMAIL PROTECTED]
:
:
:
:
: - Original Message -
: From: "Kevin Traas" <[EMAIL PROTECTED]>
: To: "Beau Lebens" <[EMAIL PROTECTED]>; "'Jeremiah Jester'"
: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
: Sent: Thursday, February 28, 2002 10:38 AM
: Subject: Re: [PHP-DB] accessing system cmds w/ PHP
:
:
: : Beau, you're such a l33t h4x0r  ;-)
: :
: : - Original Message -
: : From: "Beau Lebens" <[EMAIL PROTECTED]>
: : To: "'Jeremiah Jester'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
: : Sent: Wednesday, February 27, 2002 5:33 PM
: : Subject: RE: [PHP-DB] accessing system cmds w/ PHP
: :
: :
: : > JJ,
: : > I seem to recall most people saying that the shorthand works best
: : >
: : > $output = `chmod -R 777 *';
: : >
: : > HTH
: : >
: : > beau
: : >
: : > // -Original Message-
: : > // From: Jeremiah Jester [mailto:[EMAIL PROTECTED]]
: : > // Sent: Thursday, 28 February 2002 9:37 AM
: : > // To: [EMAIL PROTECTED]
: : > // Subject: [PHP-DB] accessing system cmds w/ PHP
: : > //
: : > //
: : > // Can anyone tell me how to access linux system commands using
: : > // php. Tried the
: : > // system() cmd but no luck. Does it require a wrapper to work?Thanks,
: : > // JJ
: : > //
: : > //
: : > // --
: : > // PHP Database Mailing List (http://www.php.net/)
: : > // To unsubscribe, visit: http://www.php.net/unsub.php
: : > //
: : >
: : > --
: : > PHP Database Mailing List (http://www.php.net/)
: : > To unsubscribe, visit: http://www.php.net/unsub.php
: : >
: :
: :
: : --
: : PHP Database Mailing List (http://www.php.net/)
: : To unsubscribe, visit: http://www.php.net/unsub.php
: :
:
:
:
: --
: PHP Database Mailing List (http://www.php.net/)
: To unsubscribe, visit: http://www.php.net/unsub.php
:
:
:



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] accessing system cmds w/ PHP

2002-02-28 Thread William Fong

Just remember you will be running those commands as the web server, which
usually have limited access rights.


--
William Fong - [EMAIL PROTECTED]
Phone: 626.968.6424 x210  |  Fax: 626.968.6877
Wireless #: 805.490.7732|  Wireless E-mail: [EMAIL PROTECTED]




- Original Message -
From: "Kevin Traas" <[EMAIL PROTECTED]>
To: "Beau Lebens" <[EMAIL PROTECTED]>; "'Jeremiah Jester'"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:38 AM
Subject: Re: [PHP-DB] accessing system cmds w/ PHP


: Beau, you're such a l33t h4x0r  ;-)
:
: - Original Message -
: From: "Beau Lebens" <[EMAIL PROTECTED]>
: To: "'Jeremiah Jester'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
: Sent: Wednesday, February 27, 2002 5:33 PM
: Subject: RE: [PHP-DB] accessing system cmds w/ PHP
:
:
: > JJ,
: > I seem to recall most people saying that the shorthand works best
: >
: > $output = `chmod -R 777 *';
: >
: > HTH
: >
: > beau
: >
: > // -Original Message-
: > // From: Jeremiah Jester [mailto:[EMAIL PROTECTED]]
: > // Sent: Thursday, 28 February 2002 9:37 AM
: > // To: [EMAIL PROTECTED]
: > // Subject: [PHP-DB] accessing system cmds w/ PHP
: > //
: > //
: > // Can anyone tell me how to access linux system commands using
: > // php. Tried the
: > // system() cmd but no luck. Does it require a wrapper to work?Thanks,
: > // JJ
: > //
: > //
: > // --
: > // PHP Database Mailing List (http://www.php.net/)
: > // To unsubscribe, visit: http://www.php.net/unsub.php
: > //
: >
: > --
: > PHP Database Mailing List (http://www.php.net/)
: > To unsubscribe, visit: http://www.php.net/unsub.php
: >
:
:
: --
: PHP Database Mailing List (http://www.php.net/)
: To unsubscribe, visit: http://www.php.net/unsub.php
:



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] accessing system cmds w/ PHP

2002-02-28 Thread Kevin Traas

Beau, you're such a l33t h4x0r  ;-)

- Original Message - 
From: "Beau Lebens" <[EMAIL PROTECTED]>
To: "'Jeremiah Jester'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 5:33 PM
Subject: RE: [PHP-DB] accessing system cmds w/ PHP


> JJ,
> I seem to recall most people saying that the shorthand works best
> 
> $output = `chmod -R 777 *';
> 
> HTH
> 
> beau
> 
> // -Original Message-
> // From: Jeremiah Jester [mailto:[EMAIL PROTECTED]]
> // Sent: Thursday, 28 February 2002 9:37 AM
> // To: [EMAIL PROTECTED]
> // Subject: [PHP-DB] accessing system cmds w/ PHP
> // 
> // 
> // Can anyone tell me how to access linux system commands using 
> // php. Tried the
> // system() cmd but no luck. Does it require a wrapper to work?Thanks,
> // JJ
> // 
> // 
> // -- 
> // PHP Database Mailing List (http://www.php.net/)
> // To unsubscribe, visit: http://www.php.net/unsub.php
> // 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] accessing system cmds w/ PHP

2002-02-27 Thread Dan Brunner

Hello...

Try exec()


I know it works moving files.


Dan



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 27, 2002 7:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] accessing system cmds w/ PHP

Can anyone tell me how to access linux system commands using php. Tried
the
system() cmd but no luck. Does it require a wrapper to work?Thanks,
JJ


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] accessing system cmds w/ PHP

2002-02-27 Thread Beau Lebens

JJ,
I seem to recall most people saying that the shorthand works best

$output = `chmod -R 777 *';

HTH

beau

// -Original Message-
// From: Jeremiah Jester [mailto:[EMAIL PROTECTED]]
// Sent: Thursday, 28 February 2002 9:37 AM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] accessing system cmds w/ PHP
// 
// 
// Can anyone tell me how to access linux system commands using 
// php. Tried the
// system() cmd but no luck. Does it require a wrapper to work?Thanks,
// JJ
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] accessing system cmds w/ PHP

2002-02-27 Thread Kearns, Terry

Have a look at trying backticks.

http://www.php.net/manual/en/language.operators.execution.php


[TK] 

> -Original Message-
> From: Jeremiah Jester [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, 28 February 2002 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] accessing system cmds w/ PHP
> 
> 
> Can anyone tell me how to access linux system commands using 
> php. Tried the
> system() cmd but no luck. Does it require a wrapper to work?Thanks, JJ
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php