Reply to Re: [PHP] Re: System specific information gathering

Your name:

Reply:


Posted by Vidyut Luther on 07/23/05 06:43

Ok,
If I use the file_get_contents.. how do I actually parse the
contents on /proc/uptime
cat /proc/uptime
1400293.13 1317047.64

What do I do with those two numbers ?

man uptime doesn't really talk about that file.. :/



On Jul 22, 2005, at 2:42 AM, Jasper Bryant-Greene wrote:

> Vidyut Luther wrote:
>
>> Hello,
>> I have a question on how to get Server side system specific
>> information via PHP, or just general direction on how to parse
>> some of the information found in /proc
>>
>
> I just use file_get_contents() on the files in /proc. I would
> expect that would be a lot faster than using system() to execute
> 'uptime' etc.
>
> Jasper
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация