--- Bob <[EMAIL PROTECTED]> wrote:
> Hi Mike,
> Sorry to me so naive. How do I know if I have shell access.
> Do you mean using telnet?
> Bob.
If your host is wise, they won't allow telnet because it offers no encryption
for either the login
or the data transfer (port 23). Secure shell (ssh) is considerably safer
because it uses 2-key
encryption and provides a similar interface (port 22). Either would provide
you with access to
the operating system (often Linux) shell.
Most hosts don't allow users shell access however. There are some things you
can often do with
PHP functions like exec() or passthru() to achieve the effect of running a
command as the
webserver user (often apache or nobody).
<pre>
<?php
passthru("some linux command");
?>
</pre>
Of course, many hosts disable these commands because they are somewhat risky
since you don't know
how a client will use them and they provide a little too much access to the
system, even though
the commands run as the webserver user.
James
_____
James D. Keeline
http://www.Keeline.com http://www.Keeline.com/articles
http://Stratemeyer.org http://www.Keeline.com/TSCollection
http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester January-June 2006. Two new class topics.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/