Re: Questions Questions Questions

From: Date: Thu, 07 Sep 2000 00:16:22 +0000
Subject: Re: Questions Questions Questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15621@lists.php.net to get a copy of this message
Sid writes: > Firstly I have a problem renaming a file through php. It says permission > denied though i chmod ed the file to 777. It's worked fine on other servers > though!! Make sure the PHP process has permission to write to the directory in question. > I'd also like to know if multiple includes work. For example I include a > file and that file includes another file. Will it work?? Yup. > I'd also like to know a script or a command that detects your browser and > if it is IE 4.0 or above / netscape 4.0 or abour it sets $browser to 1 and > for any other browser $browser to 0 http://www.php.net/manual/function.get-browser.php > Is it possible to run shell commands. Like commands we type in telnet. I > will also need to login as root so please consider how I would enter the > password. The following functions can be used to run shell commands. http://www.php.net/manual/function.exec.php http://www.php.net/manual/function.system.php http://www.php.net/manual/language.operators.execution.php However, I'm not quite sure what you're after as far as the reference to telnet goes, and what you mean by logging in as root--can you clarify what you're trying to do? P.S.--not to say RTFM, but most of these questions would have been answered by the manual, unless I've misunderstood. Cheers, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#15621) next »