RE: [PHP] PHP Uptime error

2001-06-27 Thread scott [gts]
From: Peter Phillips [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] PHP Uptime error > > Thanks for everyone's help, it was the permissions on /proc that were > causing the problems. I changed it to 755 and everything is working > perfectly. > > Thanks again.

Re: [PHP] PHP Uptime error

2001-06-27 Thread Peter Phillips
Thanks for everyone's help, it was the permissions on /proc that were causing the problems. I changed it to 755 and everything is working perfectly. Thanks again. -- "Keyboard not detected, press F1 to continue..." ""Peter Phillips"" <[EMAIL PROTECTED]> wrote in message 9h9e9k$dti$[EMAIL PROTE

Re: [PHP] PHP Uptime error

2001-06-27 Thread billt
On Tue, Jun 26, 2001 at 05:40:07PM +1000, Peter Phillips wrote: > Thanks for your help, this is what I get when I try a uptime while logged in > as nobody. > > > host:/# su nobody > host:/$ uptime > Error: /proc must be mounted >

RE: [PHP] PHP Uptime error

2001-06-26 Thread scott [gts]
ect: Re: [PHP] PHP Uptime error > > > It sounds like it might be the permissions on /proc itself. > > What does 'ls -ld /proc' say? > > - Tim > http://www.phptemplates.org > > - Original Message ----- > From: "Peter Phillips" <[EMAIL

Re: [PHP] PHP Uptime error

2001-06-26 Thread infoz
It sounds like it might be the permissions on /proc itself. What does 'ls -ld /proc' say? - Tim http://www.phptemplates.org - Original Message - From: "Peter Phillips" <[EMAIL PROTECTED]> Subject: Re: [PHP] PHP Uptime error > Thanks for your help, th

Re: [PHP] PHP Uptime error

2001-06-26 Thread Peter Phillips
Thanks for your help, this is what I get when I try a uptime while logged in as nobody. host:/# su nobody host:/$ uptime Error: /proc must be mounted To mount /proc at boot you need an /etc/fstab line like: /proc /proc p

Re: [PHP] PHP Uptime error

2001-06-25 Thread Tim Zickus
Check the permissions on the files in /proc, which is where uptime gets its info from, most likely. You could probably even read the pseudo-file '/proc/loadavg' as 'nobody' directly from PHP given the appropriate file permissions. - Tim http://www.phptemplates.org > Richard Lynch's advice wa

Re: [PHP] PHP Uptime error

2001-06-25 Thread Andy Woolley
sage - From: "Richard Lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 8:34 AM Subject: Re: [PHP] PHP Uptime error > > I have a PHP script with the following code in it; > > > > $uptime = passthru ("/usr/bin/uptime

Re: [PHP] PHP Uptime error

2001-06-25 Thread Richard Lynch
> I have a PHP script with the following code in it; > > $uptime = passthru ("/usr/bin/uptime"); > > but when I load the PHP page I get the following; > > 8:26pm up 0 min, 0 users, load average: 0.00, 0.00, 0.00 > > which is wrong (I have checked the uptime via telnet). Can anybody please > help