[PHP] Help with Posting Data

2001-03-26 Thread Peter Phillips

Hi,
I need a way to POST data to another script on another server, without using
a form and without using GET (i.e. foobar.php?name=value), I then need the
user to be sent to that page (which now has the data).

Is that possible? I found some functions (PostToHost), but they only POST
the data and do now direct the user to the site.

Any help would be appreciated.

Thanks

BTW: I can't use sessions or anything like that.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP Uptime error

2001-06-24 Thread Peter Phillips

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 me try and fix this?

Thanks.

--
"Keyboard not detected, press F1 to continue..."




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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   procdefaults
  In the meantime, mount /proc /proc -t proc
Error: /proc must be mounted
  To mount /proc at boot you need an /etc/fstab line like:
  /proc   /proc   procdefaults
  In the meantime, mount /proc /proc -t proc
  2:38am  up 0 min,  1 user,  load average: 0.00, 0.00, 0.00


These are the permissions is /proc:
-r--r--r--   1 root root0 Jun 26 02:39 loadavg
-r--r--r--   1 root root0 Jun 26 02:33 uptime

What should they be to enable nobody to access uptime?

Thanks again.

--
"Keyboard not detected, press F1 to continue..."

""Tim Zickus"" <[EMAIL PROTECTED]> wrote in message
002901c0fd67$2c251360$0401a8c0@lan">news:002901c0fd67$2c251360$0401a8c0@lan...
>
> 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 was correct, I cannot run uptime under nobody for
> > some reason.  Does anyone know how to change this?  The permissions are
> set
> > to allow everyone to execute it.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 PROTECTED]">news:9h9e9k$dti$[EMAIL PROTECTED]...
> 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   procdefaults
>   In the meantime, mount /proc /proc -t proc
> Error: /proc must be mounted
>   To mount /proc at boot you need an /etc/fstab line like:
>   /proc   /proc   procdefaults
>   In the meantime, mount /proc /proc -t proc
>   2:38am  up 0 min,  1 user,  load average: 0.00, 0.00, 0.00
> 
>
> These are the permissions is /proc:
> -r--r--r--   1 root root0 Jun 26 02:39 loadavg
> -r--r--r--   1 root root0 Jun 26 02:33 uptime
>
> What should they be to enable nobody to access uptime?
>
> Thanks again.
>
> --
> "Keyboard not detected, press F1 to continue..."
>
> ""Tim Zickus"" <[EMAIL PROTECTED]> wrote in message
> 002901c0fd67$2c251360$0401a8c0@lan">news:002901c0fd67$2c251360$0401a8c0@lan...
> >
> > 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 was correct, I cannot run uptime under nobody
for
> > > some reason.  Does anyone know how to change this?  The permissions
are
> > set
> > > to allow everyone to execute it.
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]