Re: Questions Questions Questions

From: Date: Thu, 07 Sep 2000 00:12:51 +0000
Subject: Re: Questions Questions Questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15620@lists.php.net to get a copy of this message
> 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!! You probably don't have permission to get to the directory the file is in. Check perms on each directory in the path. > 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?? This should take you about 10 seconds to test and answer for yourself. But yes, it works fine. > 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 $browser = 0; if (ereg("MSIE ([0-9]+)",$HTTP_USER_AGENT,$version)) { $ver=(int)$version[1]; if ($ver>=4) $browser = 1; } elseif (ereg("Mozilla/([0-9]+)",$HTTP_USER_AGENT,$version)) { $ver=(int)$version[1]; if ($ver>=4) $browser = 0; } > 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. Uh, technically yes, it would be possible, but I would strongly advise to reconsider how you are doing this. -Rasmus

« previous php.general (#15620) next »